Advertisement
saisri

ob os ind

Jul 15th, 2012
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. Plot(100,"",7,styleLine);
  2. Plot(-100,"",7,styleLine);
  3. n=9;
  4. ys1=(High+Low+Close*2)/4;
  5. rk3=EMA(ys1,n);
  6. rk4=StDev(ys1,n);
  7. rk5=(ys1-rk3)*100/rk4;
  8. rk6=EMA(rk5,n);
  9. UP=EMA(rk6,n);
  10. DOWN=EMA(up,n);
  11. Oo=IIf(up<down,up,down);
  12. Hh=Oo;
  13. Ll=IIf(up<down,down,up);
  14. Cc=Ll;
  15. barcolor2=IIf(Ref(oo,-1)<Oo AND Cc<Ref(Cc,-1),colorBlue,IIf(up>down,colorGreen,colorRed));
  16. PlotOHLC( Oo,hh,ll,Cc, "Modified " + Name(), barcolor2, styleCandle );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement