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.