Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 184
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
This is the way to control...either the number of orders or just the first call to the function...
So there is more than one line like yours.
I'm probably too late, but anyone can use my solution anyway:
Obviously I'm late, but my solution may be useful to someone anyway:
Thank you. More universally if
bool NewBar( datetime SecondsAfterTheBar = 0 )
Then you can specify the lag in seconds when calling it.
Hello friends. Can you please tell me how to get the indicator colour value from the previous candlestick and write it in a variable, e.g. if it is red then double col =1, if it is yellow then 2, if it is green then 3. I tried different variants, but it didn't work. I understand the value of colour depends on the availability of units in the buffer, but for some reason I can not get exactly the last fixed value, ie, the active candle, it constantly changes colour with the appearance of a new previous candle closes the last acting colour. How do I know it ?)
this colour:
Thanks for the reply.
Hello friends. Can you please tell me how to get the indicator colour value from the previous candlestick and write it in a variable, e.g. if it is red then double col =1, if it is yellow then 2, if it is green then 3. I tried different variants, but it didn't work. I understand the value of colour depends on the availability of units in the buffer, but for some reason I can not get exactly the last fixed value, ie, the active candle, it constantly changes colour with the appearance of a new previous candle closes the last acting colour. How do I know it ?)
Is this a condition for opening orders??? Do I understand it correctly?
Is this a condition for opening orders??? Do I understand it correctly?
This condition is for everything you need, because we can only guess what these user-defined functions do by their names
Hi all... Can you guys tell me what this says?
int start()
...
return(0);
Everything is purely on my guess and only presumably:
Good afternoon.
I need the EA to quit after a certain event.
I understand this is the deinit() function , I need to call it somehow. This is a quote from the tutorial:
"The special function deinit() is called for execution by the client terminal also when the client terminal is shut down, when the financial instrument window is closed, just before changing a financial instrument and/or chart period, when the program is successfully recompiled in the MetaEditor, when input parameters are changed, and when the account is changed. "
So I have to close the terminal manually, for example, for this function to be called?
I tried to call this function when a condition triggered, it was executed, but a new tick came and the start function was started again.
How do I still terminate the program?
Thank you.