Reply

Help with code for Envelopes article

4 replies

Oliver

Customer, bbp_participant, community, sq-ultimate, 121 replies.

Visit profile

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

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

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

Attachments:
You must be logged in to view attached files.

0

Oliver

Customer, bbp_participant, community, sq-ultimate, 121 replies.

Visit profile

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?

0

Oliver

Customer, bbp_participant, community, sq-ultimate, 121 replies.

Visit profile

3 years ago #257599

Hi Ive noticed this on my builder

 

 

Is this an issue?

 

thanks

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

3 years ago #257673

Hi,

this is the data values export code for the ForceIndex indicator

Attachments:
You must be logged in to view attached files.

0

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