OsMA with Moving average line (signal) please
Paste this in:
//+------------------------------------------------------------------+
//| OsMA.mq4 |
//| Copyright © 2004, MetaQuotes Software Corp. |
//| http://www.metaquotes.net/ |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2004, MetaQuotes Software Corp."
#property link "http://www.metaquotes.net/"
//---- indicator settings
#property indicator_separate_window
#property indicator_buffers 3
#property indicator_color1 Silver
#property indicator_color2 PowderBlue
#property indicator_color3 Red
#property indicator_width1 2
//---- indicator parameters
extern int FastEMA=12;
extern int SlowEMA=26;
extern int SignalSMA=9;
//---- indicator buffers
double OsmaBuffer[];
double MacdBuffer[];
double SignalBuffer[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- 2 additional buffers are used for counting.
IndicatorBuffers(3);
//---- drawing settings
SetIndexStyle(0,DRAW_HISTOGRAM);
SetIndexStyle(1,DRAW_LINE);
SetIndexStyle(2,DRAW_LINE);
SetIndexDrawBegin(0,SignalSMA);
IndicatorDigits(Digits+2);
//---- 3 indicator buffers mapping
Thanks Phy for your kind help
I will see if it does the trick
Regards
FxNorth
I will see if it does the trick
Regards
FxNorth
Forex Trader:
Paste this in:
I tried this but it did not work. There seems to be a whole lot of code missing when I compared it to the code of the standard OSMA indicator. Please help.
Paste this in:
Has anyone seen or can anybody assist with alteration of the standard MT4 OsMA by adding a 'signal' line (moving average) of the histogram values similar to what is done on the MaCD?
Many thanks
FxN