Home › Forums › Tickstory Lite › General Discussion › Bactest multiple timeframe
Hi Ea.maxpro.vn,
We have tried the following code and it works fine:
double rsi5; double rsi15; double rsi60; rsi5 = iRSI(NULL,5,14,PRICE_CLOSE,0); rsi15 = iRSI(NULL,15,14,PRICE_CLOSE,0); rsi60 = iRSI(NULL,60,14,PRICE_CLOSE,0); Print("RSI 5m: " + DoubleToStr(rsi5, 4) + ", RSI 15m: " + DoubleToStr(rsi15, 4) + ", RSI 60m: " + DoubleToStr(rsi60, 4));
Regards.
Thanks!
It works for me now!
Hi
In what way should we use that code? Should it be inserted into the EA code? Thanks a lot.
Hi Experienced_tester,
Put the code into the main start() block of your EA.
Thanks.
You must be logged in to reply to this topic.