Download MetaTrader 5

Ask about iRSI() and inputs for tester

To add comments, please log in or register
sonthanhthuytu
359
sonthanhthuytu  

1. supposing I call this function:

iRSI (NULL,0,14,PRICE_CLOSE,0)

how many bars are calculated to return the result ? 14 or 15 ? Does the calculation include the current bar (bar 0) ?

In other words:

 Data calculated ?

A. { Close[0] == Bid, Close[1] ... Close[13] } or 

B. { Close[0] == Bid, Close[1] ... Close[14] } or

C. { Close[1] , Close[2] ... Close[14] } or 

D. Else

Question 2:

Tab inputs for extern variable in tester: Value / Start / Step / Stop

What is start/step/stop ? How should I fill these fields ?

Thanks for answers

Alain Verleyen
Moderator
31192
Alain Verleyen  
sonthanhthuytu:

1. supposing I call this function:

iRSI (NULL,0,14,PRICE_CLOSE,0)

how many bars are calculated to return the result ? 14 or 15 ? Does the calculation include the current bar (bar 0) ?

In other words:

 Data calculated ?

A. { Close[0] == Bid, Close[1] ... Close[13] } or 

B. { Close[0] == Bid, Close[1] ... Close[14] } or

C. { Close[1] , Close[2] ... Close[14] } or 

D. Else

Question 2:

Tab inputs for extern variable in tester: Value / Start / Step / Stop

What is start/step/stop ? How should I fill these fields ?

Thanks for answers

This forum is about MT5/mql5 so iRSI only takes 4 parameters and not 5. And then you have to use CopyBuffer to get the data you want.

Start/step/stop are used for Optimization.

To add comments, please log in or register