Not logged in
Viewing 5 posts - 1 through 5 (of 5 total)

Forums>StrategyQuant>Application Support>Help with code for Envelopes article

  • #257425 |
    Oliver
    Customer
    117 Posts

    When following the article

    https://strategyquant.com/codebase/adding-envelopes-indicator-step-by-step/

    I have managed to get a pass on upper but fail on lower.

     

     

    when running the mt4 backtester for the second time, I think im not making the correct changes in the code, for the helper script, provided in the article to extract the lower envelope data correctly.

     

    Other than changing the highlighted word below to lower  what else needs to be changed?

     

     

    Thanking you in advance

    #257428
    tomas262
    Administrator
    1827 Posts

    Hello,

    changing the file name is not enough. You also need to export correct data (for Envelopes.Lower output) into that file. So you “disable” this line by adding double slash “//” in the beginning

    value = iEnvelopes(NULL, 0 , 14 , 0 , 0 , 0 , 0.1 , 1 , 1); // upper value

    and “activate” this line by removing the double slash “//”

    value = iEnvelopes(NULL, 0 , 14 , 0 , 0 , 0 , 0.1 , 2 , 1); // lower value

    Check the screenshot attached

    Attachments:
    You must be logged in to view attached files.
    #257430
    Oliver
    Customer
    117 Posts

    Thanks. That has worked great.

    can you provide the code also for the force index so i can test that as well?

    #257599
    Oliver
    Customer
    117 Posts

    Hi Ive noticed this on my builder

     

     

    Is this an issue?

     

    thanks

    #257673
    tomas262
    Administrator
    1827 Posts

    Hi,

    this is the data values export code for the ForceIndex indicator

    Attachments:
    You must be logged in to view attached files.
Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.