작업 종료됨
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
명시
Looking to take the visual aspects of the ADR indicator and apply alerts, arrows upon candle close, and EA buy/sell signal buffer. Will send sample code to selected developer. Exclusive rights with MQL4 codebase required.
Overall simple breakdown of the sequence of events for a buy position example (opposite for a sell position):
· ADR is exceeded because the price goes below the ADR Low (below the ADR Days Prior number setting) on the current candle
· The ADR Low line on the chart changes from dotted to solid because that ADR level was reached for the day
· Crossover BUY arrow is painted on chart at the end of the current candle closure
· Trigger is met and the indicator sends BUY_ORDER to EA (with buffer setting provided to selected developer)
· EA manages trade
Inputs:
· ADR Section
o ADR Start Time - Time to reset the Averaging calculations each day (Default=00:00)
o ADR Days Prior - Number of days in past used to calculate ADR (Default = 15)
o ADR Back Paint - How many days to paint to the chart (Example, if the user selects 50 days in the past to paint, the ADR would be calculated from the ADR Days Prior input and show up as horizontal lines (dotted or solid - if the ADR low/high was reached on that day or not) and the calculations)
o ADR Not Reached Color (Default = Red)
o ADR Not Reached Line thickness (Default = 2)
o ADR Reached Color (Default = Green)
o ADR Reached Line thickness (Default = 2)
o ADR Percentage (Default = 100%) This refers to if the user wants to allow trades to initiate (paint arrow and send buffer to EA) if the price comes within X percentage of the high/low level of the ADR
· Visual Settings
o From right side of chart, how far down from top offset setting (Similar to stats.ex4)
o Box Color
o Text Color
o Text size
o Buy Arrow Color
o Buy Arrow Size
o Sell Arrow Color
o Sell Arrow Size
· Alerts
o Buy/Sell Signal Buffer for EA
o Buy Signal Message
o Sell Signal Message
o Alert Popup Text
Visuals on the chart similar to the screenshot:
· Average Daily Range is hit or close (within user defined % or pip count) - alert triggered (Main settings from ADR.ex4)
o Line style/thickness/color 1 (prior to limit reached)
o Line style/thickness/color 2 (post limit reached)
o Display ADR Value
o Reached? Calculated from current start of day to the ADR high/low
o Today's Range
o Count of pips to ADR High and Low