This code help to decide fast what trades respects your ratio requirements.
First Version: Red Line = StopLoss and green = TakeProfit. The calculations are made based in the bid value.
Version 0.1 = we can decide if the open position is the bid value or specify the open level. Legend added.
The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.Average Directional Movement Index (ADX)
The Average Directional Movement Index Indicator (ADX) helps to determine if there is a price trend.