Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 1055

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
iTime() to help you
Can you tell me if the condition triggers an order at 13:00, which closes at 19:00. However, at 16:00 the same condition is triggered again, but the order is not opened because the condition stipulates Total==0 (where Total=OrdersTotal(), in order to avoid constantly opening orders). What function, if any, should be used to make the second order also open?
Similarly, at 13:00, Condition_1 triggers Buy_1 order at 13:00, which will close at 19:00. At 17:00, Condition_2 is triggered to open another Sell_2 order, but the second order is not opened again due to condition Total==0 (where Total=OrdersTotal()).
Hello!
How to reset all Buy_OpenNr[50] variables ? Just by looping, or is there an easier way?
Hello!
How to reset all Buy_OpenNr[50] variables ? Just by looping, or is there an easier way?
ArrayInitialize
Can you tell me if the condition triggers an order at 13:00, which closes at 19:00. However, at 16:00 the same condition is triggered again, but the order is not opened because the condition stipulates Total==0 (where Total=OrdersTotal(), in order to avoid constantly opening orders). What function, if any, should be used to make the second order also open?
Similarly, at 13:00, Condition_1 triggers Buy_1 order at 13:00, which will close at 19:00. At 17:00, Condition_2 is triggered to open another Sell_2 order, but the second order is not opened again due to condition Total==0 (where Total=OrdersTotal()).
Please help me, I can't find an answer to a simple question.
intTimeSeconds(,,,,,)Returns the number of seconds elapsed since the start of the minute of the specified time.
If I insert the bar open time into the function
TimeSeconds(iTime(NULL,PERIOD_M5,0))
how can I know that there is 10 seconds left before the bar closes?
ArrayInitialize
Hello!
How to reset all Buy_OpenNr[50] variables ? Just with a loop, or is there an easier way?
Why does it say "array required"?
Why does it say "array required"?
Because you have to read the documentation all the way through. And there's an example
Please help me, I can't find an answer to a simple question.
intTimeSeconds(,,,,,)Returns the number of seconds elapsed since the beginning of the minute of the specified time.
If I insert the bar open time into the function
TimeSeconds(iTime(NULL,PERIOD_M5,0))
how can I know that there is 10 seconds left before the bar closes?
Well, subtract the elapsed time from the number of seconds in the period...