XavierAndreu

Parabolic SAR

Apr 15th, 2022
655
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. //https://youtu.be/USYFuL3NOc4
  2.  
  3. int Parabolic=0;
  4.  
  5. int OnInit()
  6. {
  7. Parabolic=iSAR(_Symbol,PERIOD_CURRENT,0.02,0.2);
  8. return(0);
  9. }
  10.  
  11.  
  12. void OnTick()
  13. {
  14. Comment( "Parabolic= ",IndicadorParabolic());
  15. }
  16.  
  17. double IndicadorParabolic()
  18. {
  19. double ParabolicArray[];
  20. ArraySetAsSeries(ParabolicArray,true);
  21. CopyBuffer(Parabolic,0,0,2,ParabolicArray);
  22.  
  23. return(NormalizeDouble(ParabolicArray[1],_Digits));
  24. }
Advertisement
Add Comment
Please, Sign In to add comment