Re: Moving Average indicators for MT4

342
mladen wrote: Fri May 19, 2017 4:11 am That was the most up-to-date version as far as I know too
Here is this version :
- new mtf mode
- automatic candles width


averages channel.png
Hi Mladen,

Hopping not being annoying can you put the scale as the below(I use it for mt4 Heinken Ashi and works with the same scale as the mt4 candlestick), if not I will be OK already with this 2.06 version ;).
void OnChartEvent(const int id,const long& lparam,const double& dparam,const string& sparam)
{
int chartscale=ChartGetInteger(0,CHART_SCALE);
if(chartscale==5)body_candle=12;
if(chartscale==4)body_candle=6;
if(chartscale==3)body_candle=3;
if(chartscale==2)body_candle=2;
if(chartscale==1)body_candle=2;
if(chartscale==0)body_candle=2;
SetIndexStyle(2,DRAW_HISTOGRAM,0,body_candle,ExtColor3);
SetIndexStyle(3,DRAW_HISTOGRAM,0,body_candle,ExtColor4);
}


BTW do you have plans to code the averages channel candlestick to MT5?

Re: Moving Average indicators for MT4

343
mntiwana wrote: Fri May 19, 2017 4:19 am Averages Channel Candles + alerts 2.05
The last latest version of Averages Channel Candles with 33 Averages - 20 prices - interpolated mtf - double smoothed - full alerts package - show candles true/false - bar and body width option - candle on first
picture with Ahrens Moving Average and HA median body price
Hi mntiwana, would you mind sharing the "preset" file with the setups you have in your picture??? Thank you...

Re: Moving Average indicators for MT4

345
nmgvs wrote: Fri May 19, 2017 5:21 am Hi Mladen,

Hopping not being annoying can you put the scale as the below(I use it for mt4 Heinken Ashi and works with the same scale as the mt4 candlestick), if not I will be OK already with this 2.06 version ;).
void OnChartEvent(const int id,const long& lparam,const double& dparam,const string& sparam)
{
int chartscale=ChartGetInteger(0,CHART_SCALE);
if(chartscale==5)body_candle=12;
if(chartscale==4)body_candle=6;
if(chartscale==3)body_candle=3;
if(chartscale==2)body_candle=2;
if(chartscale==1)body_candle=2;
if(chartscale==0)body_candle=2;
SetIndexStyle(2,DRAW_HISTOGRAM,0,body_candle,ExtColor3);
SetIndexStyle(3,DRAW_HISTOGRAM,0,body_candle,ExtColor4);
}


BTW do you have plans to code the averages channel candlestick to MT5?
You can use much simpler (and faster) code for that
Something like this :

Code: Select all

int _candleWidths[] = {2,2,2,3,6,12}, _width = _candleWidths[(int)ChartGetInteger(0,CHART_SCALE)];
    //
    // for each buffer that needs to be adjusted then the following can go
    //
    SetIndexStyle(nnn,EMPTY,EMPTY,_width);


Re: Moving Average indicators for MT4

348
jjventural wrote: Fri May 19, 2017 5:51 pm Post 343... thank you...
I think this should be it - with used indicators
Indicator is just a tool.

Use it only if it can benefit you. Leave it if you don't know how to use it optimally.


Who is online

Users browsing this forum: Applebot [Crawler], ChatGPT [Bot], talaate, Tradehunter, TransparentTrader and 53 guests