abosliman2005m.afl
上传用户:shiqiang
上传日期:2009-06-12
资源大小:1289k
文件大小:2k
源码类别:

金融证券系统

开发平台:

Others

  1. //------------------------------------------------------------------------------
  2. //
  3. //  Formula Name:    abosliman2005m
  4. //  Author/Uploader: ali 
  5. //  E-mail:          abosliman2005m@hotmail.com
  6. //  Date/Time Added: 2006-09-26 19:01:15
  7. //  Origin:          abosliman2005m
  8. //  Keywords:        
  9. //  Level:           advanced
  10. //  Flags:           indicator
  11. //  Formula URL:     http://www.amibroker.com/library/formula.php?id=718
  12. //  Details URL:     http://www.amibroker.com/library/detail.php?id=718
  13. //
  14. //------------------------------------------------------------------------------
  15. //
  16. //  abosliman2005m
  17. //
  18. //------------------------------------------------------------------------------
  19. ScriptVersion = " explorativo del Main al 12 de set 2005";
  20. //////////////////// PRECIO //////////////////////////////////////////////
  21. Plot(C,"",colorBlack,styleCandle|styleNoLabel);
  22. Filter = Close > 5;
  23. AddColumn(Close,"Close");
  24. PositionSize = 50;
  25. /////////////////////// MEDIAS MOVILES///////////////////
  26. slope = Param("slope",2,2,100,1);
  27. Color20= IIf(LinRegSlope(MA(C,20),slope)<0,colorRed,colorBrightGreen);
  28. event1= LinRegSlope(MA(C,20),slope)<1;
  29. Plot( MA( C,  20), "",Color20 , styleLine);
  30. //Plot( event1, "", colorRose, styleArea|styleOwnScale);
  31. Color50= IIf(LinRegSlope(MA(C,50),slope)<0,colorRed,colorBlue); 
  32. Plot( MA( C, 50), "",Color50  , styleLine);
  33. Color100= IIf(LinRegSlope(MA(C,100),slope)<0,colorRed,colorYellow);
  34. Plot( MA( C,  100), "",Color100 , styleLine);
  35. Color150= IIf(LinRegSlope(MA(C,150),slope)<0,colorRed,10); 
  36. Plot( MA( C, 150), "",Color150  , styleLine);
  37. event1=Cross(MA(C,20),MA(C,50));
  38. PlotShapes( IIf(event1 ,shapeDigit1,0) ,5, 0, L,-30);
  39. event2=Cross(MA(C,50),MA(C,100));
  40. PlotShapes( IIf(event2 ,shapeDigit2,0) ,6, 0, L,-30);
  41. event3=Cross(MA(C,100),MA(C,150));
  42. PlotShapes( IIf(event3 ,shapeDigit3,0) ,7, 0, L,-30);
  43. event4=Cross(MA(C,50),MA(C,20));
  44. PlotShapes( IIf(event4 ,shapeDigit4,0) ,5, 0, H,30);
  45. event5=Cross(MA(C,100),MA(C,50));
  46. PlotShapes( IIf(event5 ,shapeDigit5,0) ,6, 0, H,30);
  47. event6=Cross(MA(C,150),MA(C,100));
  48. PlotShapes( IIf(event6 ,shapeDigit6,0) ,7, 0, H,30);
  49. event7=Cross(MA(C,5),MA(C,20));
  50. PlotShapes( IIf(event7 ,shapeDigit7,0) ,9, 0, L,-30);