[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

marketposition in 2000i


  • Date: Sun, 29 Nov 2009 06:21:12 -0600
  • From: nevi <nevi@xxxxxxx>
  • Subject: marketposition in 2000i

PureBytes Links

Trading Reference Links

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