PureBytes Links
Trading Reference Links
|
{I could use some help on how to correctly code the
situation below:
1. The position that just went flat was a short
trade.
2. The exit used was ExitShort at Highest(h,8);
3. I want the LowSignal to be the value of the low on
the exit date.
4. If a new higher high occurs then I want the
LowSignal to be the low of the new high.
5. If two days after a Highest(h,8) the close of the
current day is < LowSignal then the
instructions are to go short 1 tick below of
today's low.
What I wrote below does not work, can anyone help on
this?}
Var:Prevtrade(0),HighPrice(0),LowSignal(0)
If @MarketPosition = +1 then prevtrade = +1;
If @MarketPosition = -1 then prevtrade = -1;
If (prevtrade=-1) and High=Highest(h,8) then
LowSignal=low;{If the previous trade
was a short trade and the High was the highest(h,8)
then LowSignal=low of that bar.}
{If two days later the Close is < LowSignal then go
short 1 tick below the low of today.}
If (prevtrade=-1) and Close < LowSignal[2]
then sell("se.ReEnter") at low - 1 point stop;
=====
Regards,
Mike Kittelson
|