Announcement

Collapse
No announcement yet.

How to code a trailing stop in EFS

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to code a trailing stop in EFS

    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
    Last edited by Rocket130713; 08-18-2008, 04:37 AM.

  • #2
    Re: How to code a trailing stop in EFS

    Rod

    My question is, how do I call or calculate the "number of bars since entry"?
    See my reply to the same question you posted in this thread
    Alex


    Originally posted by Rocket130713
    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

    Comment

    Working...
    X