XavierAndreu

MQL5 Crear RSI

Mar 25th, 2022
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. // https://www.youtube.com/watch?v=gwn4IpVA5DU
  2.  
  3. void OnTick()
  4. {
  5.  
  6. Comment(MOMENTUM(1,14));
  7.  
  8. }
  9.  
  10.  
  11. double MOMENTUM(int posicion,int periodos)
  12. {
  13. double MOMENTUMArray[];
  14. CopyBuffer(iMomentum(_Symbol,PERIOD_CURRENT,periodos,PRICE_CLOSE),0,0,3,MOMENTUMArray);
  15. ArraySetAsSeries(MOMENTUMArray,true);
  16.  
  17. return(NormalizeDouble(MOMENTUMArray[posicion],_Digits));
  18. }
  19.  
Advertisement
Add Comment
Please, Sign In to add comment