XavierAndreu

Crear RSI

Mar 26th, 2022
395
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. // https://youtu.be/gwn4IpVA5DU
  2.  
  3. void OnTick()
  4. {
  5.  
  6. Comment(RSI(1,14));
  7.  
  8. }
  9.  
  10.  
  11. double RSI(int posicion,int periodos)
  12. {
  13. double RSIArray[];
  14. CopyBuffer(iRSI(_Symbol,PERIOD_CURRENT,periodos,PRICE_CLOSE),0,0,3,RSIArray);
  15. ArraySetAsSeries(RSIArray,true);
  16.  
  17. return(NormalizeDouble(RSIArray[posicion],_Digits));
  18. }
  19.  
Advertisement
Add Comment
Please, Sign In to add comment