Stop Loss according to the Max, Min of the day.
-
Hi fxDreema
I would like to know how I do for the trailing stop of buy follow the maximum of the day, and vice versa to sell.
I would like to calculate the distance between the maximum and the minimum of the day. This result will be the value of the pips away from the trailing stop.
-
You can get the maximum and the minimum in different ways. High - Low from the Daily candle or Highest/Lowest price somewhere in Condition. But you should know this, so I guess this is not the problem.
In the Trailing stop block you have different options for Trailing Stop, I think price fraction would work: http://prntscr.com/eq3vrc But maybe you need to put the difference into a Variable and use that variable there.
But if you find the difference from the current day, don't forget that at 00:00 all the levels (O, H, L and C) are equal and the difference between High and Low would be very small for some minutes, if not for long hours.
-
Almost worked. Still with flaws.
Look here: shared/JuO9OfHWb
-
For me the above project seems to be right, but it does not work the way I need it. Where should I be going wrong?
-
@tcanuto, please, take some time to learn how to make things easier! What you are showing me is an example that I need to see... that's ok. But do you think that this example should contain both, Buy and Sell blocks + 2 blocks of TS...
Here I simplified it a bit. I just want to see the calculated value actually, that's why I added this "Comment" block. But are you sure you want it to be that value? From what I see, in "Formula" block you are calculating the half of the size of the Daily candle. And again, the current candle has 0 size when created and starts to grow from there. I don't think you want to work with that candle.
-
@fxDreema said in Stop Loss according to the Max, Min of the day.:
@tcanuto, please, take some time to learn how to make things easier! What you are showing me is an example that I need to see... that's ok. But do you think that this example should contain both, Buy and Sell blocks + 2 blocks of TS...
Oops .. Truth! I'd forgotten about this.
Here I simplified it a bit. I just want to see the calculated value actually, that's why I added this "Comment" block. But are you sure you want it to be that value? From what I see, in "Formula" block you are calculating the half of the size of the Daily candle.
I need the total value of the daily candle for the TS value. Only that.
And again, the current candle has 0 size when created and starts to grow from there. I don't think you want to work with that candle.
Okay. Corrected too.