which is the best perfomance ?- Copy value from Indicator

To add comments, please log in or register
Bilal Said
526
Bilal Said  

Hi. i've write an EA to send me signals based on rsi.


I need to get the rsi of H1,H4,D1 timeframe in 20 symbols,so i'm initializating 60 indicators and getting the value of them.


the question is : what is the method that gives best perfomance ?


1- Initializate the indicators once inside OnInit and then CopyBuffer each Hour.

2-Initializate the indicators each hour,CopyBuffer and then release them, each Hour.

nicholi shen
2261
nicholi shen  
Bilal Said:

Hi. i've write an EA to send me signals based on rsi.


I need to get the rsi of H1,H4,D1 timeframe in 20 symbols,so i'm initializating 60 indicators and getting the value of them.


the question is : what is the method that gives best perfomance ?


1- Initializate the indicators once inside OnInit and then CopyBuffer each Hour.

2-Initializate the indicators each hour,CopyBuffer and then release them, each Hour.

Option 1.

And even more efficient if you are using CiRSI since it only copies the missing data, but if your strategy only runs once an hour a couple extra microseconds aren't going to make a difference. 

To add comments, please log in or register