[ARCHIVE]Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Can't go anywhere without you - 5. - page 226
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
Please.
The problem with logic - I can't think of one.
Indeed, you have a problem with logic. First you allow pending orders as much as you like, then you want to delete all of them after the opening of one of them, and then you are surprised that all new pending orders are deleted. Then keep thinking about what should happen after the next pending order is triggered. The algorithm will depend on that.
Thank you for correcting my thoughts, I'm already stuck.
After the first pending order (let's say baillimit) more pending orders may be placed in the same direction, but how do we delete all of the buy positions and orders when the signal appears in the opposite direction (let's say selimit)?
Good evening! Excuse me, I would like to get back to an unresolved issue.
'Buy' - incompatible types D:\TeleTRADE\experts/experts/clean.mq4 (102, 53)
'Sell' - incompatible types D:\TeleTRADE\experts\clearlist.mq4 (102, 79)
Hello. Could you please tell me how to write a global variable bool e.g. bool=uroven_1=false; how to write this in a global variable so it has a new value after a terminal restart, thanks.
https://book.mql4.com/ru/variables/globals
The logic is correct - there should be as many position numbers in orders as there are orders, once one is closed, all the others are recalculated. Try this construction
Response.
Hello.
Unfortunately, the above described construction does not give us the required result. I would like to give you the code of the program and the tester journal entries.
Respectfully. Shurkin
March 18, 2013.
When testing the WOC0.1.2 Expert Advisor in the MT4 tester (application to MT4 from Forex Club), order labels on the chart are above the prices, i.e. deals were executed at the prices which did not occur. Is this a tester glitch? Can it be corrected in some way?
http://s017.radikal.ru/i405/1303/61/959038aaf1a9.jpg
And another thing: in the visualization mode of the tester, the deals are executed, but not without it.
I figured it out on my own. It's because of increased spread (81) on the tester at weekends.