PureBytes Links
Trading Reference Links
|
Try:
if MarketPosition <> 0 then
Buy next bar at market;
Bob Fulks
At 07:21 AM 11/29/2009, nevi wrote:
>Hello omega-list
>Trying to get alternating buy/sell signals in 2000i,
>This code works fine in TS4
>but using 2000i it doesn't appear to do anything
>
>if marketposition(1)<>1 then begin
>buy next bar at market;
>end;
>
>I have tried several combinations
>if marketposition(1)=-1 or marketposition(0)=0 then
>if marketposition(1)<>1 and marketposition(1)=-1 or marketposition(0)=0 then
>none of them work
>Can anyone suggest a way to stop multiple buy signals.
>thanks
>best regards
>nevi
|