I need a Metatrader MT4 dashboard style indicator built. The aim of the dashboard is to show both the number of bars/candles since bid price has touched a specified moving average and the distance in pips that current bid price is from that moving average. I also need the font for the number of bars/candles to change color when the count reaches specified numbers (e.g. at >=400 the font displays green, at >=800 the font diplays blue, at >=1200 the font displays red. Thus, on one screen, I want to be able to see this data for several currency pairs, as well as various timeframes for each pair.
The data in the dashboard needs to be presented in tablular form. Each row of data will therefore need the following columns:
1) the currency pair
2) the time frame (would like to have as many as 5 time frames displayed at once), where each time frame consists of two sub-columns:
a) the real-time count of bars/candles since bid price last touched the MA (with changing font color)
b) the real-time distance in pips between current bid price and the MA (displayed as positive or negative whole pips -- positive if bid price is above the MA and negative if bid price is below the MA)
There should be two sets of column headers. The main header needs to display each time frame, such as "M1", "M5", "M15", "H1", "D1", etc. Below the main header for each time frame, there needs to be a sub-header for: a) "Bars" & b) "Pips".
The attached file presents my vision for what the completed dashboard should look like.
Required user-modifiable Variables:
1. currencies to display
2. timesframes to display
3. a default font name, font color, and font size for the entire dashboard, as well as three definable numerical thresholds and a font color for each, which upon reaching, the bar count font changes to the specified color.
4. The moving average: a) period, and b) calc method (e.g. simple, exponential, linear weighted, etc.)
5. Screen position (X,Y) for dashboard
Also, the coding needs to account for the fact that some brokers display pips using 2 & 4 decimal places (whole pips) and others use 3 & 5 decimal places (fractional pips). Regardless of decimal places used by the broker, the dashboard should display the pip distance rounded up to whole pips. My current broker uses 3 & 5 decimal places, but if I change brokers in the future to one that uses 2 & 4, I want to be able to modify a line or two inside the coding to accommodate this so the dashboard displays whole pips (e.g. a pip distance in the dashboard of "25" is eqaul to 25 pips, not 2.5 or 250.