Questions from a "dummy" - page 47

 
uncleVic:

After completing the Wizard, the Expert Advisor sourcebook opens in the Editor. Find lines similar to:

To remove some patterns, you need to add a line to call the PatternsUsage method with the parameter<some number>. It will look like this:


what does this certain number mean?
 
kirill-demo:
what does this certain number mean?
It goes something like this.
 
uncleVic:

After completing the Wizard, the Expert Advisor sourcebook opens in the Editor. Find lines in the source code similar to:

I don't have these lines. I have these
//--- Creating filter CSignalMACD
   CSignalMACD *filter0=new CSignalMACD;
   if(filter0==NULL)

и

//--- Creating signal

   CExpertSignal *signal=new CExpertSignal;

   if(signal==NULL)

After I add these:

//--- отключаем модель "двойная дивергенция"
   filter.PatternsUsage(31);

the Expert Advisor is not tested. What do I do?

 
kirill-demo:
I don't have these lines. I have these.
//--- Creating filter CSignalMACD
   CSignalMACD *filter0=new CSignalMACD;
   if(filter0==NULL)

и

//--- Creating signal

   CExpertSignal *signal=new CExpertSignal;

   if(signal==NULL)

After I add this:

the EA does not test. What to do?

Then after:

   signal.AddFilter(filter0);

insert:

//--- отключаем модель "двойная дивергенция"
   filter0.PatternsUsage(31);

get:

   signal.AddFilter(filter0);
//--- отключаем модель "двойная дивергенция"
   filter0.PatternsUsage(31);
 
uncleVic:
There is no opportunity to get into a multi-page theoretical debate.
Thank you for that decision, I also don't have time for such verbal research to the detriment of practice.
 
Примерно вот это.
Thanks for the clarification, that makes more sense. But if I want to remove another model or even several, what should be <some number>? Explain how it works out?
 
kirill-demo:
Thanks for the clarification. But if I want to remove a different model or even a few, what should be <some number>? Explain how it is obtained?

Let's put it this way. You write:

1. I want such models to be used (list of specific models).

2. I want such models to be used (list of specific models).

...

N. I want to use these models (list of specific models).

And I will substitute numbers for you. Ok?

 
uncleVic:

Let's put it this way. You write:

1. I want such models to be used (list of specific models).

2. I want such models to be used (list of specific models).

...

N. I want to use these models (list of specific models).

And I'll give you the numbers. All right?

I tried inserting like 000100, 110001. It seems to work)) As I understood in this number the number of digits=number of models. If the number 1 is the third from the end, it means the second model is included. If the third and fourth from the end of 1, it means that only the second and third model will work. Have I got it right? Except where you got 31 from I don't understand.

P.S. I'd rather learn myself than ask you what numbers to use when making each EA.

 
kirill-demo:

I tried inserting like 000100, 110001. It seems to work)) As I understood in this number the number of digits=number of models. If number 1 is third from the end, it means that the second model is included. If the third and fourth from the end of 1, it means that only the second and third model will work. Have I got it right? Except where you got 31 from I don't understand.

P.S. I'd rather learn myself than ask you what numbers to use when making each EA.

You are right. Bits are numbered from right to left, starting with 0.

Decimal 31 = binary 011111 (all models work except the fifth).

 
i.e. can it be either 31 or011111 ? makes no difference?
Reason: