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

ReEntry Coding



PureBytes Links

Trading Reference Links

I need help on coding in a reentry:

If the last trade went flat on an exit signal but the
Moving Average still points up I want to TS to:

1. Look for a close that is higher than the high of
the lowest bar since the exit.

2.  Reenter Long one tick above that day's high.

Below is the idea written out for more clarity:

If @MarketPosition = +1 then prevtrade = +1; 

If MarketPosition=0  and  MA> MA[1]  AND
(PREVTRADE=+1)   and Close > Higher than the High of
the Lowest Bar since Exit  then buy("LRentry")  at the
High of that bar + 1 point stop;

thanks in advance,

Mike Kittelson


=====
Regards,
Mike Kittelson