My afl collection

Status
Not open for further replies.

sr114

Well-Known Member
shivangi,

do one thing , tweak for the index futures and most volatile stock. then you will succed in tweaking for other scrips

this chart is for silver. its most volatile in commodities. see the chart



if any help needed just pm me

sr
 

shivangi77

Well-Known Member
Scalping (Intraday)





Code:
_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); 
_SECTION_END();
 
_SECTION_BEGIN("EMA");
P = ParamField("Price field",-1);
Periods = Param("Periods", 5, 2, 300, 1, 10 );
Plot( EMA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") ); 
_SECTION_END();
 
_SECTION_BEGIN("EMA1");
P = ParamField("Price field",-1);
Periods = Param("Periods",13, 2, 300, 1, 10 );
Plot( EMA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") ); 
_SECTION_END();
 
Buy = 
 ( RSI( 14 ) > Ref( RSI( 14 ) , -1 )
    AND RSI( 14 ) > 50
    AND Cross (EMA (Close,5), EMA ( Close,13)))
 OR
 ( Cross ( RSI (14) , 50 ) AND EMA ( Close,  5 ) > EMA ( Close, 13 ));
 
 
 
Sell =  
  
         ( RSI( 14 ) < Ref ( RSI (14 ) , -1 )
        AND RSI( 14 ) < 50
        AND Cross (EMA (Close,13) , EMA ( Close,5)))
      OR  ( Cross ( 50 , RSI (14)) AND EMA ( Close , 13) >  EMA( Close , 5 ) );
 
shape = Buy * shapeUpArrow + Sell * shapeDownArrow;
PlotShapes(IIf(Buy, shapeUpArrow, shapeNone),colorGreen, 0,L, Offset=-10);
PlotShapes(IIf(Sell, shapeDownArrow, shapeNone),colorRed, 0,H, Offset=-10);
AlertIf( Sell, "SOUND C:\\Windows\\Media\\Ding.wav", "Audio alert", 2 );
AlertIf( Buy, "SOUND C:\\Windows\\Media\\Ding.wav", "Audio alert", 2 );
Two simultaneous Buy or Sell signal are worth to trade!
 
Status
Not open for further replies.

Similar threads