How to set take profit 2x the stoploss (from the last swing low)?
5件の返信
Hi-
I am trying to set the stop loss at the lowest of the last 10 bars – 1 * the ATR to give it a little room.
Then, I want to set the take profit 2x of that stop loss.
I tried writing the stoploss into a variable, then multiplying by that and it’s not working.
Any help would be very much appreciated by everyone, since this is a very common way of trading.
Please see template attached.
0
こんにちは、,
you do it right by the variable but you need to “move” the variable calculation in front of the EnterAtMarket order. You need to calculate the value first then use it 🙂
もし何かお手伝いが必要なことがあればお知らせください。
0
Thanks Tomas-
YES, I definitely need help since I am not a programmer.
I did notice that I probably need to use the “convertpipstoprice” function as well on the stoploss.
Please advise-
0
Tomas-
I have moved it above the order and I believe I “corrected” the price levels (making them both prices) and it still won’t place any trades.
Can you please take a look and see what I am missing?
Thanks in advance!!
0
こんにちは、,
you have mixed ConvertPips with price values.
When you use that function you get number of pips which cannot be subtracted or mixed with price values. see the example
0
Thanks so much Tomas!
I definitely would not have figured that out!
Very much appreciated!!!
0
5件の返信を表示中 - 1 - 5件目 (全5件中)