Need perfect afl for crude

#1
Hi friends

can anybody, give perfect (more than 80 % accuracy enough) afl for trading 5 min intraday mcx crude..

I tried with many indicators/charts/mt4 platforms

any useful indicator there?

Sreeram.v
 
#5
Hi

The afl is called GMMA Guppy multiple moving average.It is a part of Pattern explorer software.
Guppy Multiple Moving Average (GMMA) for Amibroker (AFL)
Here it is
==============================================
HTML:
//gmma simple Code

SetChartOptions(0, chartShowArrows | chartShowDates);

FastMAColor = ParamColor("Fast Group MA Color", colorGreen);
SlowMAColor = ParamColor("Slow Group MA Color", colorRed);

Plot(EMA(C, 3), _DEFAULT_NAME(), FastMAColor, styleLine);
Plot(EMA(C, 5), _DEFAULT_NAME(), FastMAColor, styleLine);
Plot(EMA(C, 8), _DEFAULT_NAME(), FastMAColor, styleLine);
Plot(EMA(C, 10), _DEFAULT_NAME(), FastMAColor, styleLine);
Plot(EMA(C, 12), _DEFAULT_NAME(), FastMAColor, styleLine);
Plot(EMA(C, 15), _DEFAULT_NAME(), FastMAColor, styleLine);

Plot(EMA(C, 30), _DEFAULT_NAME(), SlowMAColor, styleLine);
Plot(EMA(C, 35), _DEFAULT_NAME(), SlowMAColor, styleLine);
Plot(EMA(C, 40), _DEFAULT_NAME(), SlowMAColor, styleLine);
Plot(EMA(C, 45), _DEFAULT_NAME(), SlowMAColor, styleLine);
Plot(EMA(C, 50), _DEFAULT_NAME(), SlowMAColor, styleLine);
Plot(EMA(C, 60), _DEFAULT_NAME(), SlowMAColor, styleLine);

Plot(C,"close",IIf(Close > Open,colorBlue,colorRed),styleCandle);
 

KelvinHand

Well-Known Member
#7
Here the Rainbow MMA:
Code:
//-- Author : KelvinHand
//-- Modified from http://www.wisestocktrader.com/indicators/769-rainbow

side = 1;

From = Param("Start" , 3, 1, 120, 1 );
To   = Param("End" , 120, 1, 120, 1 );
incr = Param("Step" ,2, 1, 10, 1 );

WhichMA = ParamList("Which MA ?" , "SMA|EMA|WMA|WILDERS",1);
WhichStyle = ParamToggle("Cloud Style", "No|Yes",1);
Effect3D = ParamToggle( "3D effect?", "No|Yes", 1 );
Saturation = Param("Saturation" , 199, 0, 255 );
Brightness = Param("Brightness" , 255, 0, 255 ) ;


if (WhichStyle)
   iStyle = styleCloud;
else
   iStyle = styleLine;

for( i = From; i <To; i += incr)
{
 
  switch (WhichMA)
  {
    case "SMA":
      up = MA( C, i );
      down = MA( C, i + incr );
      break;

    case "WMA":
      up = WMA( C, i );
      down = WMA( C, i + incr );
      break;

     case "WILDERS":
      up = Wilders( C, i );
      down = Wilders( C, i + incr );
      break;

    default:
      up = EMA( C, i );
      down = EMA( C, i + incr );
      break;


  }

  if( Effect3D )
   side = IIf(up<=down AND Ref( up<=down, 1 ), 1, 0.6 );

   PlotOHLC( up,up,down,down, "", ColorHSB( 3*(i - 10),Saturation,side * Brightness), iStyle|styleNoLabel );

}
 
Last edited:

ajeetsingh

Well-Known Member
#8
Code:
_SECTION_BEGIN("Main price chart with Rainbow & SAR");
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
//
//  The price chart will change color according to sar().
//
//  The red line= 20ma and Blue line = 50MA
//
//  For better visual effect.
//
//  Could someone add volume chart in this chart(like the original price chart
//  does)?
//
//------------------------------------------------------------------------------
 
/*Main Chart with Rainbow and SAR*/
 
 
MaxGraph = 15;
 
Graph0 = Close;
Graph1 = MA(C,2);
Graph2 = MA(MA(C,2),2);
Graph3 = MA(MA(MA(C,2),2),2);
Graph4 = MA(MA(MA(MA(C,2),2),2),2);
Graph5 = MA(MA(MA(MA(MA(C,2),2),2),2),2);
Graph6 = MA(MA(MA(MA(MA(MA(C,2),2),2),2),2),2);
Graph7 = MA(MA(MA(MA(MA(MA(MA(C,2),2),2),2),2),2),2);
Graph8 = MA(MA(MA(MA(MA(MA(MA(MA(C,2),2),2),2),2),2),2),2);
Graph9 = MA(MA(MA(MA(MA(MA(MA(MA(MA(C,2),2),2),2),2),2),2),2),2);
Graph10 = MA(MA(MA(MA(MA(MA(MA(MA(MA(MA(C,2),2),2),2),2),2),2),2),2),2);
 
Graph0Style =64;
Graph1Style=Graph2Style=Graph3Style=Graph4Style=Graph5Style=Graph6Style=Graph7Style=Graph8Style=Graph9Style=Graph10Style = 1;
Graph0BarColor=IIf(SAR(0.05)<C,2,1);
Graph1Color = 3;
Graph2Color = 5;
Graph3Color =7;
Graph4Color = 6;
Graph5Color =15;
Graph6Color = 8;
Graph7Color =16;
Graph8Color = 10;
Graph9Color = 11;
Graph10Color = 12;
Graph11=MA(C,20);
Graph11Style=1;
Graph11Color=5;
Graph12=MA(C,50);
Graph12Style=1;
Graph12Color=7;
 
Title=Name() +"  "+Date()+"  Open="+WriteVal(O)+
        ",  High ="+WriteVal(H)+",  Low ="+WriteVal(L)+
        ",  Close="+WriteVal(C)+",  Change="+WriteIf((C-Ref(C,-1))>0," +"," -")+
         WriteVal(C-Ref(C,-1))
        +"  ("+WriteIf((C-Ref(C,-1))>0," +"," -")+WriteVal((C-Ref(C,-1))/Ref(C,-1)*100)+"%  )";
 
 
_SECTION_END();
 

Similar threads

Broker Special Offers

Intraday Higher Leverage

Save up to 90% in brokerage and get higher leverage for intraday trades.

Name:Phone:
Email:City:
State:
Are you a day trader?