Help with code for Envelopes article
4 replies
Oliver
3 years ago #257425
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
tomas262
3 years ago #257428
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
Oliver
3 years ago #257430
Thanks. That has worked great.
can you provide the code also for the force index so i can test that as well?
Oliver
3 years ago #257599
tomas262
3 years ago #257673
Viewing 4 replies - 1 through 4 (of 4 total)