XavierAndreu

Indicador Ichimoku

Apr 5th, 2022
446
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. //https://youtu.be/FoRMGEabDe4
  2. int Ichimoku=0;
  3.  
  4. int OnInit()
  5. {
  6. Ichimoku=iIchimoku(_Symbol,PERIOD_CURRENT,9,26,52);
  7. return(0);
  8. }
  9.  
  10. void OnTick()
  11. {
  12. Comment( "TENKANSEN_LINE= ",IndicadorIchimoku(0),
  13. "\nKIJUNSEN_LINE= ",IndicadorIchimoku(1),
  14. "\nSENKOUSPANA_LINE= ",IndicadorIchimoku(2),
  15. "\nSENKOUSPANB_LINE= ",IndicadorIchimoku(3),
  16. "\nCHIKOUSPAN_LINE= ",IndicadorIchimoku(4)
  17. );
  18. }
  19.  
  20. double IndicadorIchimoku(int Buffer)
  21. {
  22. double IchimokuArray[];
  23. ArraySetAsSeries(IchimokuArray,true);
  24. CopyBuffer(Ichimoku,Buffer,0,2,IchimokuArray);
  25.  
  26. return(NormalizeDouble(IchimokuArray[1],_Digits));
  27. }
  28.  
  29.  
Advertisement
Add Comment
Please, Sign In to add comment