Close my longs when either crossover MA or ADR14 daily value hit
4件の返信
こんにちは、,
I’d like to exit my longs only if in profits and under the following conditions:
Either a crossover of the moving average occurs (already got that one right) or price hits the ATR14 for the day (I am struggling on how to give this order).
Could you please provide assistance?
Find my screenshot.
よろしくお願いします。.
0
こんにちは,
you can use BarRange as you showed in your previous topic. If BarRange[1] >= ATR(14) – Exit position
0
トーマス、,
BarRange[1] only looks at size of bar from high to low.
What I need is the following:
When I am long, I will exit either when I get Xover of MAs against my position (this part is easy)
または
If the Daily ATR14 (expected range for the day) is hit.
ご覧ください image for a graphical illustration.
0
こんにちは,
you could setup the condition for exit as shown in the example attached.
BarRange can be used for that too.
0
Great. I made the changes.
I understand that since the bar range is still the current day’s one, that’s why Shift is 0…
ありがとう。.
0
4件の返信を表示中 - 1 - 4件目 (全4件中)