|
chicago+il/usa
Posts: 1 since May 2014
Thanks Given: 0
Thanks Received: 0
|
Good Morning Everybody,
First post
wondering how do i add the lines of code into my program if over $100 made, the program stop trading automatically. code is below.
thanks
Inputs: Price( Open ),
Length1 ( 50 ),
Cts ( 2 ),
TGT ( 30 ),
STP ( 20 );
Vars: ExpAv1 ( 0 );
ExpAv1 = XAverage ( Price, Length1 ) ;
{Buy or short sell contracts at exponential average crossovers}
If time > 0800 and time < 1500 and Price[1] crosses above ExpAv1[1] then
begin
buy ( "buy") Cts contracts next bar at market ;
End;
setprofittarget (TGT);
setstoploss (STP);
value97 = text_new ( D, T, ExpAv1, "*" );
text_setcolor (Value97, Cyan);
|