Specification
I have something to get coded in MQ4 as a dashboard.
I have this indicator attached in : the indicator draws a median line + bands channel around candles and it keep redraw/readjust the channel as new candles get created on chart.
the indicator redraw/repaint/readjust itself as new candles get created which is what i want to keep.
now to the job:
I want to build dashboard for all instruments (about 45-50) with different timeframes to show where is the price in relative to the (median line/bands) of the channel indicator.
so the dashboard will be like a table with 50 rows for symbol names (exported from txt file) and 7 columns of timframes (5min , 15min , 1hr .. etc etc).
the cells of the table get filled with number codes that represent where is the current price in relative to the BANDS.
columns must be able to arrange/sort them in ascending/descending order.
the dashboard show where is each symbol current price location in each timeframe with regard to the indicator bands.
-0 , +0 , -1 , +1 , -2 , +2 , -3 , +3 , -4 , +4 , -5 , +5
the numbers explanation is in the attached screenshot of a chart i made.
is the price above/below mid line or above/below bands.
bands are created using different "bandsdeviation" variable as shown in the screenshot.
attached screenshot.
attached indicator.
here is clear explanation if you could not get the idea
the indicator will read (symbols + personal values ) from txt file and show this in columns 1+2+3 then in columns between 4-10 it shows where is the current candle price is relative to the channels indicator bands I share in the post in all different timeframes (5m,15m,30m,1hr,4hr,d,w) and give a value in each cell for each symbol in each timeframe of (+0 -0 +1 -1 +2 -2 +3 -3 +4 -4 +5 -5) according to where is the current price in the timeframe relative to the bands
do you understand that ?
bro ; can you make it ?
the table just read the indicator value (the indicator i share in my post) and return a value according to the current price location relative to the bands of that indicator in all different timeframe
with the columns able to sort them ascending/descending when i click on the the header.
table will show these values for any symbol in any timeframe relative to price in the bands:
0<p<1 = 0
1<p<2 = 1
2<p<3 = 2
3<p<4 = 3
4<p<5 = 4
5<p<6 = 5
6<p = 6
0>p>-1 = 0
-1>p>-2 = -1
-2>p>-3 = -2
-3>p>-4 = -3
-4>p>-5 = -4
-5>p>-6 = -5
-6>p = -6
ps.s if the attached indicator does not work with you just edit it by delete the lines 311-318