cazador Posted March 23, 2010 Report Share Posted March 23, 2010 Moving Average Candles MT4 Indicator :-? http://www.massmirror.com/1847de5b4d03183c53beabeb4ebdb537.html http://img714.imageshack.us/img714/1456/eurusd22.gif http://img511.imageshack.us/img511/9351/eurusd2.gif http://img153.imageshack.us/img153/1879/eurusd.gif Kudos for the sharerr pleaseee! [-O< hermes and pavlus777 2 Quote Link to comment Share on other sites More sharing options...
jdsim1 Posted March 24, 2010 Report Share Posted March 24, 2010 Re: @ Moving Average Candles MT4 Indicator @ Moving Average Candles MT4 Indicator :-? http://www.massmirror.com/1847de5b4d03183c53beabeb4ebdb537.html http://img714.imageshack.us/img714/1456/eurusd22.gif http://img511.imageshack.us/img511/9351/eurusd2.gif http://img153.imageshack.us/img153/1879/eurusd.gif Kudos for the sharerr pleaseee! [-O< //+------------------------------------------------------------------+ //| MA Candles.mq4 | //| Code adapted by cja | //+------------------------------------------------------------------+ #property copyright "Code adapted by cja" //---- indicator settings #property indicator_chart_window #property indicator_buffers 4 #property indicator_color1 RoyalBlue//wicks #property indicator_color2 Red//wicks #property indicator_color3 RoyalBlue #property indicator_color4 Red #property indicator_width1 1 #property indicator_width2 1 #property indicator_width3 3 #property indicator_width4 3 //MODE_SMA 0 Simple moving average, //MODE_EMA 1 Exponential moving average, //MODE_SMMA 2 Smoothed moving average, //MODE_LWMA 3 Linear weighted moving average. //PRICE_CLOSE 0 Close price. //PRICE_OPEN 1 Open price. //PRICE_HIGH 2 High price. //PRICE_LOW 3 Low price. //PRICE_MEDIAN 4 Median price, (high+low)/2. //PRICE_TYPICAL 5 Typical price, (high+low+close)/3. //PRICE_WEIGHTED 6 Weighted close price, (high+low+close+close)/4. //---- indicator parameters extern string IIIIIIIIIIIIIIIIIIIII=">>> MA Settings >>>>>>>>>>>>>>>>>"; extern int MA1 = 5.0; extern int MA2 = 25.0; extern int MA1_MODE = 0; extern int MA2_MODE = 0; extern int MA1_PRICE = 0; extern int MA2_PRICE = 0; extern int MA1_SHIFT = 0; extern int MA2_SHIFT = 0; extern string IIIIIIIIIIIIIIIIIIIIIIIII=">>> Candle/Wick Display Settings >>>>>>>>>>>>>>>>>"; extern int BarWidth = 1, CandleWidth = 3; extern bool Show_Comment = true; //---- indicator buffers double Bar1[], Bar2[], Candle1[], Candle2[], Candle3[], Candle4[], Candle5[], Candle6[]; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { IndicatorShortName("MA Candles"); IndicatorBuffers(4); SetIndexBuffer(0,Bar1); SetIndexBuffer(1,Bar2); SetIndexBuffer(2,Candle1); SetIndexBuffer(3,Candle2); SetIndexStyle(0,DRAW_HISTOGRAM,0,BarWidth); SetIndexStyle(1,DRAW_HISTOGRAM,0,BarWidth); SetIndexStyle(2,DRAW_HISTOGRAM,0,CandleWidth); SetIndexStyle(3,DRAW_HISTOGRAM,0,CandleWidth); SetIndexLabel(0, "MA"+MA1+" + MA"+MA2); SetIndexLabel(1, "MA"+MA1+" + MA"+MA2); SetIndexLabel(2, "MA"+MA1+" + MA"+MA2); SetIndexLabel(3, "MA"+MA1+" + MA"+MA2); return(0); } int deinit() { //---- Comment(""); //---- return(0); } double MA_1 (int i = 0){return(iMA(NULL,0,MA1,MA1_SHIFT,MA1_MODE, MA1_PRICE,i));} double MA_2 (int i = 0){return(iMA(NULL,0,MA2,MA2_SHIFT,MA2_MODE, MA2_PRICE,i));} void SetCandleColor(int col, int i) { double high,low,bodyHigh,bodyLow; bodyHigh = MathMax(Open,Close); bodyLow = MathMin(Open,Close); high = High; low = Low; Bar1 = low; Candle1 = bodyLow; Bar2 = low; Candle2 = bodyLow; Bar1 = low; Candle3 = bodyLow; Bar2 = low; Candle4 = bodyLow; Bar1 = low; Candle5 = bodyLow; Bar2 = low; Candle6 = bodyLow; switch(col) { case 1: Bar1 = high; Candle1 = bodyHigh; break; case 2: Bar2 = high; Candle2 = bodyHigh; break; case 3: Bar1 = high; Candle3 = bodyHigh; break; case 4: Bar2 = high; Candle4 = bodyHigh; break; case 5: Bar1 = high; Candle5 = bodyHigh; break; case 6: Bar2 = high; Candle6 = bodyHigh; break; } } int start() { for(int i = MathMax(Bars-1-IndicatorCounted(),1); i>=0; i--) { double Ma1 = MA_1(i); double Ma2 = MA_2(i); if(Ma1 > Ma2) SetCandleColor(1,i); else if(Ma1 < Ma2) SetCandleColor(2,i); string Label1="",Label2=""; if(MA1_MODE==0)Label1="MA";if(MA2_MODE==0)Label2="MA"; if(MA1_MODE==1)Label1="EMA";if(MA2_MODE==1)Label2="EMA"; if(MA1_MODE==2)Label1="SMMA";if(MA2_MODE==2)Label2="SMMA"; if(MA1_MODE==3)Label1="LWMA";if(MA2_MODE==3)Label2="LWMA"; if(Show_Comment==true){ Comment("\n","MA Candles "+Label1+" "+MA1+" & "+Label2+ " "+MA2+""); } } return(0); } paws 1 Quote Link to comment Share on other sites More sharing options...
gopala Posted September 24, 2010 Report Share Posted September 24, 2010 link not working please upload new link thanks Quote Link to comment Share on other sites More sharing options...
THANKS Posted September 24, 2010 Report Share Posted September 24, 2010 MA candles http://www.4shared.com/file/k7JyzzHq/MA_Candles.html Could someone add a third MA feature to this indicator? Thanks in advance Quote Link to comment Share on other sites More sharing options...
dark_messiah_fall Posted September 24, 2010 Report Share Posted September 24, 2010 (edited) hi i need option for use 2 and 3 moving average cross Edited September 25, 2010 by dark_messiah_fall Quote Link to comment Share on other sites More sharing options...
anton1713006147 Posted May 18, 2012 Report Share Posted May 18, 2012 Hi Bro and Sis, Please re-upload the indicator. Thanks, Anton Quote Link to comment Share on other sites More sharing options...
mtuppers Posted May 20, 2012 Report Share Posted May 20, 2012 post #2 has the code, just need to copy and paste on text file and rename to ma candle.mq4 Quote Link to comment Share on other sites More sharing options...
manu94 Posted May 20, 2012 Report Share Posted May 20, 2012 The links https://hotfile.com/dl/156399559/5570337/MM_CANDLES.mq4.html Good Trade hermes, peterpiak, pavlus777 and 1 other 4 Quote Link to comment Share on other sites More sharing options...
hermes Posted May 20, 2012 Report Share Posted May 20, 2012 Looks impressive for entries but never exit on that color sign because you would give lot of money back. Hermes Quote Link to comment Share on other sites More sharing options...
tonnychen Posted May 21, 2012 Report Share Posted May 21, 2012 Thanks for sharing. Quote Link to comment Share on other sites More sharing options...
shabz Posted May 21, 2012 Report Share Posted May 21, 2012 hi i need option for use 2 and 3 moving average cross Just add the highest MA onto the chart as a moving average line, if the coloured candles agree with the trend direction then enter. Quote Link to comment Share on other sites More sharing options...
hermes Posted May 21, 2012 Report Share Posted May 21, 2012 It would exploit more volatile pairs like GN, GJ, EN, EJ, GA, AJ, GC or CJ. Hermes Quote Link to comment Share on other sites More sharing options...
gopala Posted January 19, 2013 Report Share Posted January 19, 2013 link not work please reupload thanks in advanceThe links https://hotfile.com/dl/156399559/5570337/MM_CANDLES.mq4.html Good Trade Quote Link to comment Share on other sites More sharing options...
atxb Posted January 19, 2013 Report Share Posted January 19, 2013 can download from here: http://www.4shared.com/file/oIIdfMod/MM_CANDLES.html hermes 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.