|
你可以這樣寫
inputs: Price1( Close of data1 ), Price2(Close of data2), Length( 10 );
variables:Value1(0),Value2(0);
//Value1 = close of data1;
//Value2 = close of data2;
if price2 > price2[1]
and Price2 > AverageFC(price2,Length)
then
Buy ( "TX" ) next bar at market ; |
|