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
Acronis True Imidge software to create and restore Back Up . Back up your C drive.
Back Up and the system is as it was when it was created.
Back Up time is 4 min.
Thank you too.
>> Thank you too.
Dear rid, could you help me with a question here) https://forum.mql4.com/ru/15972/page145
I'm not really good at it.
But I suppose that if after 1st signal you "hang" the flag, let it hang.
Even if the 1st signal has already exhausted itself!
Then the 2nd signal will give a signal to open without any problem.
If I understand the question correctly...
Dear rid, could you help me out here with a question) https://forum.mql4.com/ru/15972/page145
Is that where you ask about closure? Look here.
'Closing positions. On a signal from an indicator.'
//------------------------
I, in my time, got into the subject there.
But in the code you posted - it's hard to understand there and I don't see any section on closing at all.
Here is a sample closing block for you:
I'm not really an expert on this.
But the assumption is that if after the 1st signal you 'hang' the flag, then let it hang.
Even if the 1st signal is already exhausted!
Then the 2nd signal will give a signal to open without any problem.
If I understand the question correctly...
if the second signal comes after the first one, ..... and only so, but... maybe by checking the 2nd signal to open the 1st signal will already turn from false to true then it will be necessary to finish the calculation of the 2nd signal, and proceed to the passage of the first signal !
Is that where you ask about closure? Look here.
'Closing positions. On a signal from an indicator.'
//------------------------
I, in my time, got into this subject there.
But in that code, which you posted - it's hard to understand there and I don't see the section on closing at all.
Well, it's not there, .... I can't get the number of an open order to close the order, it keeps giving me an error... even if the number is found through other functions.
Look above. I added an example there.
Only instead of MagicNum you insert your mn
In external parameters add
extern bool AutoClose = true;
Only instead of MagicNum you insert your mn
In the external parameters add
extern bool AutoClose = true;
>> >> yeah yeah thanks, I got it.)
Well, it's not there, .... I can't get the number of an open order to close it, it keeps showing an error... even if the number is found through other functions.
Try to select the order by position: the function gives a ticket t position of the order in the list of the trading orders.
t = OrdersTotal() and decrease with each order processed.Try selecting an order by position: the function gives the ticket t position of the order in the list of trade orders.
t = OrdersTotal() and decrease with each processed order.Thanks for the help! that would probably work too!!! I'll be sure to check it out!
The closing code worked.... Everything works now, the problem was really with the definition of the open order. Thanks again everyone!