Advertisement
saisri

OSCILLATOR 517_535_1070 Combined

Jul 22nd, 2012
394
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. _SECTION_BEGIN("OSCILLATOR 517_535_1070 Combined");
  2. A1 = MA(C,5);
  3. B1 = MA(C,17);
  4. D1 = A1-B1;
  5.  
  6. Colorm=IIf(D1>Ref(D1,-1),colorBrightGreen,colorDarkGreen);
  7.  
  8. Plot( D1, "517", Colorm, styleHistogram|styleNoLabel );
  9.  
  10.  
  11.  
  12. PlotOHLC( 0, D1, 0 , 0 , "517",Colorm, styleCloud | styleNoLabel);
  13.  
  14.  
  15.  
  16. //////////////////////////////////////////////////////////////////////////////////////
  17. A2 = MA(C,5);
  18. B2 = MA(C,35);
  19. D2 = A2-B2;
  20.  
  21.  
  22. Colorm=IIf(D2>Ref(D2,-1),colorRed,colorDarkRed);
  23. Plot( D2, "535", Colorm, styleHistogram|styleNoLabel );
  24.  
  25.  
  26.  
  27. PlotOHLC( 0, D2, 0 , 0 , "535",Colorm, styleCloud | styleNoLabel);
  28.  
  29.  
  30.  
  31. //////////////////////////////////////////////////////////////////////////////////////
  32. /////////////////////////////////////////////////////////////////////////////////
  33. A3 = MA(C,10);
  34. B3 = MA(C,70);
  35. D3 = A3-B3;
  36.  
  37.  
  38. Colorm=IIf(D3>Ref(D3,-1),colorPaleBlue,colorBlue);
  39. Plot( D3, "1070", Colorm, styleHistogram|styleNoLabel );
  40.  
  41.  
  42.  
  43. PlotOHLC( 0, D3, 0 , 0 , "1070",Colorm, styleCloud | styleNoLabel);
  44.  
  45.  
  46.  
  47. //////////////////////////////////////////////////////////////////////////////////////
  48. _SECTION_END();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement