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

dangling stop code ?



PureBytes Links

Trading Reference Links

 Hello, I am trying to code an exit stop which will be initiated once
the close reaches a high x points above the entryprice  and then place a
stop order  y bars above the entryprice but I want the stop to stay
there and not change unless the next day's close is higher,  Using a
highest(c,length) statement isnt what I want because the stop will not
remain if the next day's close  is  lower then the day this stop is
created.  and I dont want the highest close of the last  Length bars,
but  the highest close from the entry like this.Then I want the stop to
stay on the system until either it is hit, because the market took it
out or if the market continues higher and makes a new high, and then
raises the stop.

if  c> entryprice + 50 points then exitlong entryprice + 10 points stop;

This will only protect me if the next day's action comes down and takes
out my stop, but not if the action  n days later takes out the stop.

I could not find any reference to a highestclose term in easylanguage,
but that is the closest thing to what I want that I can think of,

Any Ideas?  Thanks in advance

d