[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 396

 
Figar0:


It's hard to understand what you mean by inserting it after int Start(), aren't you inserting it inside Start?

Insert it just at the end of your code


That's it, it's working. Thank you very much.
 
MaxZ:

1). Need to copy the function into the code.

2). And where you need to call the function, write, for example:


That's it, it's working. Thank you very much.
 
How do I call the function that returns the opening and closing price of a bar? Thank you.
 
kolaider:
How do I call the function that returns the opening and closing price of a bar? Thank you.

Open[ ] and Close[ ]
 
kolaider:
Can you tell me how to call the function that returns the open and close price of a bar? Thank you.

https://docs.mql4.com/ru/series/iClose

https://docs.mql4.com/ru/predefined/variables/close

https://docs.mql4.com/ru/predefined/variables/open

 

Can the indicator be called as a function or as a #include ?

 
001:

Can the indicator be called as a function or as a #include ?

No. You can move the calculations to the EA code and call it as a function. Do you need it?
 
artmedia70:
No. The calculations can be pasted into the Expert Advisor's code and called as a function. Do you need it?

The indicator draws MA in segments from each bar down to the price encounter ( parabolic type), there is only one buffer. The idea is not to make a mess with a lot of buffers for each segment of MA, but to call it every time as a function. I do not know yet how to do it better.

 
001:

The indicator draws MA in segments from each bar down to the price encounter (parabolic type), there is only one buffer. The idea is not to create a bunch of buffers for each MA segment, but to call it every time as a function. I don't know how to do it better yet.

iCustom();
 
artmedia70:

It's as simple as that. Let's use the flags as a semaphore. There will be three blocks of code, each of which will be executed only if the previous one is already executed.

Initially all flags ==false.

As soon as the first one has been executed, we put first flag=true; Now the second code block is executed. As soon as its condition is fulfilled, set second flag=true;
Now the third code block is executed. As soon as its condition is met, set the third flag=true; And so on.



Can I see an example?
Reason: