Advertisement
XavierAndreu

Alligator

Mar 11th, 2023
386
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. //Youtube--> https://youtu.be/Rm1JhIim4po
  2.  
  3. int Alligator=0;
  4.  
  5. void OnInit()
  6. {
  7. Alligator= iCustom(_Symbol,PERIOD_CURRENT,"Alligator.ex5",13,8,8,5,5,3,MODE_SMMA,PRICE_MEDIAN);
  8. }
  9.  
  10. void OnTick()
  11. {
  12. Comment("Jaws: ", IndicadorAlligator(0),
  13. "\nTeeths: ", IndicadorAlligator(1),
  14. "\nLips: ", IndicadorAlligator(2));
  15. }
  16.  
  17. double IndicadorAlligator(int buffer)
  18. {
  19. double AlligatorArray[];
  20. ArraySetAsSeries(AlligatorArray,true);
  21. CopyBuffer(Alligator,buffer,0,500,AlligatorArray);
  22.  
  23. return(NormalizeDouble(AlligatorArray[0],_Digits));
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement