Trabajo finalizado
Tarea técnica
Create a custom Indicator (MT4/MT5) based on the Supply and Demand tool of blahtech
I attach a sample code for the call of the data from the underlying indicator.
It should provide an overview of all selected timeframes of a Chart it is attached to.
The indicator should on mt4 and mt5 as well!
The Indicator should have 2 functions.
1)create a clean Overviewpanel with the data
2) map the data to buffers
Panel with data
Input options:
Show panel: true/false
Draw data on chart: true/false
Highlight active zones : true/false
Timeframes to use: Current,M1,M5,M15,M30,H1,H4,D1,WN
Qpoints divisor: 4
Data for each timeframe:
supBarNum, hasSup, supPriceHigh, supPriceLow, supScore, supIsStrong, supRetouch, demBarNum, hasDem, demPriceHigh, demPriceLow, demScore, demIsStrong, demRetouch, RiskRewardRatio, trend1, engulfing1, qTop1, qHi(qTop1-(qTop1- qBottom1)/ Qpoints divisor), qLo (qBottom1+ (qTop1- qBottom1)/ Qpoints divisor), qBottom1
Map Data to buffers
Map Data to buffers: true/false
modification of an existing indicator (https://www.mql5.com/en/code/1806) with the same signals.
At the moment the indicator displays the signal on the opening of the second bar after the arrow.
I would like to get the signal on the first bar after the arrow (with the close price).
Since i want to use it on a renko chart there is no need to wait for one more bar to open.
Because a renko chart shows only completed bars.
Furthermore i need an extra buffer, which should be the first buffer.
This buffer should show -1 if a bearish divergence is completed at this bar and +1 for a bullish and 0 if there is none. It should be therefore one bar after the arrow.