Forumsee logo

MA dashboard indicator

Platform Tech @ Forex Factory - www.forexfactory.com
I wrote the attached indicator a few years ago. I'm not doing any programming requests, hence it's offered on a "take it or leave it" basis. I've included source code in the ZIP file, but it was written using the MetaEditor/compiler build 509, hence it compiles with errors in the latest MT4 builds. But it's there in case any programmer wants to modify it; the ZIP file includes the necessary MQH library files, and the build 509 MetaEditor/compiler.

Attached File MA Dashboard.ex4   31 KB | 3 downloads Attached File Source code (for programmers only).zip   2.5 MB | 2 downloads Attached Image (click to enlarge)

ParameterFile: to keep things simple, leave this as NONE

Currencies: all of these currencies will be paired against each other, to create the list that is displayed (dashboard rows)

CurrencySuffix: this will be attached to each currency pair, e.g. if you type pro, symbol names will be GBPUSDpro, EURUSDpro, etc

TimeFrames: determines the dashboard columns, in the order you want them displayed

MAParameters: five entries separated by commas:

1. MA period

2. MA shift

3. MA method: 0=simple (SMA), 1=exponential (EMA), 2=smoothed, 3=linear weighted

4. Applied price: 0=close, 1=open, 2=high, 3=low, 4=median (H+L)/2, 5=typical (H+L+C)/3, 6=weighted (H+L+C+C)/4

5. Shift

FontNameSizeColor: used for the column/row labels, three entries separated by commas:

1. Must be the valid name of an installed Windows font

2. Font size

3. Font color: must be either a valid color token (e.g. Red, LimeGreen, DodgerBlue, Goldenrod, etc) or RnGnBn (e.g. R30B0G255 for red=30, blue=0, green=255)

WindingsSymbol: used to plot the symbols in the body of the dashboard, see the table below

Attached Image (click to enlarge)

BullishColor: symbol will be plotted using this color, if price is above the MA

BearishColor: symbol will be plotted using this color, if price is below the MA

PositionSettings: seven entries separated by commas:

1. Subwindow number: 0=main chart window, 1=next lower subwindow (must already exist), etc

2. Corner: TL=top left, TR=top right, BL=bottom left, BR=bottom right

3. Starting horizontal position

4. Horizontal adjustment (space between label and first symbol in the row)

5. Horizontal spacing (between symbols)

6. Vertical starting position

7. Vertical spacing (between rows)

Visibility: which chart TFs you want the indicator to display on

RefreshPeriod: This controls how often the files are to be output (overwritten) with fresh data:

+0 means on the first price tick of a new candle on the current chart

+1 means on the first price tick of a new candle on the next higher TF

+2 means on the first price tick of a new candle two TFs higher

-1 means on the first price tick of a new candle on the next lower TF

etc; or

T means on every new price tick

I means perform once only, i.e. on init()

M1 means on the first price tick of the each new M1 candle

M5 means on the first price tick of the each new M5 candle

etc

The rest of the settings should be self-explanatory. I haven't used the indicator for many years, hence I can't remember how it works, but feel welcome to experiment.
Date: Jun 19, 2017   


Last videos:

CSV/LiveTicks to chart application
CSV/LiveTicks to chart application
Offline Renko Chart Generator for MT4
Offline Renko Chart Generator for MT4
Russel Waves. Trading the way Nature flows.
Russel Waves. Trading the way Nature flows.
Fast optimization by indicators ranges. 1K results for 1 sec.
Fast optimization by indicators ranges. 1K results for 1 sec.
indicators we use
indicators we use
Live Prices into Excel from IB
Live Prices into Excel from IB
CityTrader for futures trading
CityTrader for futures trading
Scroll Chart Bar-By-Bar
Scroll Chart Bar-By-Bar

Cars ·
Travel ·
Pets ·
production-frontend