IsParticipant
New
Hi, I want a target profit equal to the EMA, and I want that the target change every candle as the EMA does. If the EMA is higher the target higher and if the EMA is lower the target lower.
If I type: Set target profit EMA20
The Target doesn`t change and I need that.
Thanks for the help.
PereParticipant
Veteran
You can try to do this (not tested) in case, for example, of longs:
mm=ExponentialAverage[20](close)
SELL AT mm STOP
or even that:
tp = abs(close-average[20,1])
set target profit tp
Petrus, assuming we talk about an ema not reached yet in the direction of more gains than with current close, I’d use “sell at mm limit” instead of “sell at mm stop”. And “sell at mm stop” could be a good way to dynamically preserve gains if the ema is above entry and on the side of lower gain than with current close.
As you all talked in English in this topic in the Spanish forum (haha, gotcha Nicolas), I’ll move it from Spanish forum to English forum, thanks for your understanding.
PereParticipant
Veteran
Yes, you are right Noobywan. It depends if the EMA is above close or if you want to preserve gains.
I didn’t see that this was the spanish forum, hahaha!