Condition to open trade - Help Please
-
I'm trying to add a condition to take a long trade when the following is met.
((Highest20 - (ATR14 x 0.25)) - (Yesterday high + ATR14 x 0.05)) > (((Yesterdays High + ATR14 x 0.05) - (Yesterday Low - ATR14 x 0.05)) x 2)
Hopefully that makes sense? In words what I'm trying to do is look to take a trade where the distance between (a) the highest high in the past 20 days less a buffer and (b) the highest price of yesterdays bar plus a buffer is at least 2 times the the range of yesterdays bar plus a buffer. i.e. I am looking for a greater than 1:2 risk:reward ratio.
Is this possible to do with fxDreema? If so I would really appreciate some help in how to do it.
-
for this complex formula you can use custom code block
atr and other values you can store into variables using Modify variable block
I am sure, with little efforts you create this well with fxdreema
-
Well, for such conditions I added second alternative Condition block that accepts code. You can define few Variables, then set values to them in "Modify Variables" and then write the condition with them in this Condition. Of course, regular Condition and Formula blocks can be used, but it will take more blocks to do the same.