Hi everyone,
I would like to have an ema/ma trailing stop for my trades.
I found a few useful examples like
and
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
I would like to have an ema/ma trailing stop for my trades.
I found a few useful examples like
and
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
Comment