PureBytes Links
Trading Reference Links
|
> I don't remember the post but to exit long < your entry:
>
> If barssinceentry > X and C{H,L, whatever} < entryprice
> then exitlong at {whatever};
Or, if you want a more stringent test, you could use something like:
if BarsSinceEntry > X and MaxPositionProfit(0) < Y then ...
That way a brief dip into unprofitable territory wouldn't bounce you
out. It would only enter if the position NEVER got more than $Y into
profitability after X bars.
Gary
|