saisri

main afl (supported 1)(watch price bar touched yellow line )

Nov 3rd, 2012
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. _SECTION_BEGIN("Background_Setting");
  2. SetChartBkGradientFill( ParamColor("BgTop", colorBlack),
  3. ParamColor("BgBottom", colorBlack),ParamColor("titleblock",colorLightGrey ));
  4. _SECTION_END();
  5.  
  6. Plot(100,"",7,styleLine);
  7. Plot(70,"", colorRed, styleDots, styleLine);
  8. Plot(-100,"",1,styleLine);
  9. Plot (30, "", colorRed, styleDots, styleNoLabel);
  10. Plot(0,"",7,styleLine);
  11.  
  12. _SECTION_BEGIN("Stoch K");
  13. SetChartOptions(0,0,ChartGrid30 | ChartGrid70 );
  14. r = StochK(15);
  15. Plot( r, "StochK", colorLightYellow );
  16. PlotOHLC( r,r,50,r, "", IIf( r > 50, colorGreen, colorRed ), styleCloud | styleClipMinMax, 30, 70 );
  17. _SECTION_END();
  18.  
  19. Plot( Volume, "Volume", colorLightBlue, styleHistogram | styleOwnScale );
  20.  
  21. _SECTION_BEGIN("trend");
  22. uptrend=PDI(20)>MDI(10)AND Signal(26)<MACD(13);
  23. downtrend=MDI(10)>PDI(20)AND Signal(26)>MACD(13);
  24.  
  25.  
  26. Plot( 2, /* defines the height of the ribbon in percent of pane width */"ribbon",
  27. IIf( uptrend, colorGreen, IIf( downtrend, colorRed, 0 )), /* choose color */
  28. styleOwnScale|styleArea|styleNoLabel, -0.5, 100 );
  29.  
  30. _SECTION_END();
Add Comment
Please, Sign In to add comment