Home Forums Tickstory Lite General Discussion Bactest multiple timeframe

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • imported_tickstory
    Participant
    Post count: 1479

    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.

    ea.maxpro.vn
    Participant
    Post count: 6

    Thanks!

    It works for me now!

    experienced_tester
    Participant
    Post count: 17

    Hi

    In what way should we use that code?
    Should it be inserted into the EA code?
    Thanks a lot.

    imported_tickstory
    Participant
    Post count: 1479

    Hi Experienced_tester,

    Put the code into the main start() block of your EA.

    Thanks.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.