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

simple easy language question



PureBytes Links

Trading Reference Links

Hi,

I haven't had this problem before in 2000i.

I have a reversing system that is always in the market.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
condition1= ......;
condition2= ......;

If condition1 and condition2 then buy at market;

condition3= .....;
condition4= .....;

If condition3 and condition4 then sell at market;
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
I have pyramiding set to off and number of contracts max is one.  The system
is reversing fine but keeps buying or selling when it sees more instances of
the conditions being met before  it sees the conditions met to trade in the
opposite direction.  I only want one trade in the same direction.

I have tried adding "if marketposition(0)=1 and if currentbar>1 then begin
statements" but it doesn't help.  Testing is at tick level.

Thanks for any pointers