Announcement

Collapse
No announcement yet.

real time ema / ma trailing stop

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

  • real time ema / ma trailing stop

    Hi everyone,

    I would like to have an ema/ma trailing stop for my trades.

    I found a few useful examples like

    http://kb.esignal.com/display/2/kb/a...=1&docid=10498

    and

    http://kb.esignal.com/display/2/kb/a...=1&docid=10609

    A I even wrote my own efs formula that does this.

    However it does not seem to work for me.

    I try to set my stop using
    Strategy.doSell( "Exit Long Signal", Strategy.STOP, Strategy.THISBAR , Strategy.ALL, nStop);
    But it does not do anything. Also, Strategy.isLong() returns false even when I am in a long position (e.g. Buy market in some MM strategy).

    I figured this might have to do with this message I keep seeing everywhere
    "The Strategy Object is for back testing purposes only and is not intended for real time trading. "

    Currently in eSignal you can only set very simple trailing stops for MM strategy, how can I use the ema/ma trailing stop formula in real time trading?

    Regards,

    Omri

  • #2
    OmriBashari,

    The functions like Strategy.doSell and Strategy.doLong are used for backtesting purposes and not actual trading.

    For real trading functions you may want to look on the Knowledge Base for articles on Generic Broker Functions. Hope this helps, please let me know if we can be of further assistance.

    AveryH
    eSignal Supports

    Comment

    Working...
    X