hello,
i need to code a trailing stop in EFS. To do this, for example for a buy order, i need to know how to calculate the highest high price since the bar i entered on. to do this i need to calculate the number of bars elapsed since entry and put this value in the "Highest(X,high())" command, where "X" would be equal to the number of bars elapsed since entry. My question is, how do I call or calculate the "number of bars since entry"?
Thanks in advance. Any help would be very much appreciated.
Regards
Rod
i need to code a trailing stop in EFS. To do this, for example for a buy order, i need to know how to calculate the highest high price since the bar i entered on. to do this i need to calculate the number of bars elapsed since entry and put this value in the "Highest(X,high())" command, where "X" would be equal to the number of bars elapsed since entry. My question is, how do I call or calculate the "number of bars since entry"?
Thanks in advance. Any help would be very much appreciated.
Regards
Rod
Comment