[Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2. - page 463

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
Hi all!
Can you tell me how to teach the Expert Advisor to remember that there was a fact of opening an order (after closing the order). Global logical variables are suitable, but only for one instrument. If I have more than one symbol in one terminal, the variables will change and will not work as expected.
Hi all!
Can you tell me how to teach the Expert Advisor to remember that there was a fact of opening an order (after closing the order). Global logical variables are suitable, but only for one instrument. If I have more than one symbol in one terminal, the variables will change and will not work as expected.
So each tool has its own global variable.)
So each tool has its own global variable.)
Hi all!
I'm having difficulties... I've been working on this, I've been trying to open a short order on EUR/USD for a long time, I've been trying to open a short once before the MA and the close of the previous candle was below the MA, but the order didn't open, I've been working in the tester now and the order opened like a nice guy,
Where is the error in the code - I do not understand, I have specifically inserted the condition, if the order has not opened - try to open it 10 times, but it does not seem to help, please help a beginner ...
Hi all!
I'm having difficulties... I've been working with the EA on the chart 24 hours a day, today on EUR/USD I had a condition to open a short, (previous candle's open was higher than MA, and its close was lower than MA), but the order didn't open, I've tried to open this section in the tester, the order opened like a nice one,
If the order hasn't opened, I tried to open it 10 times, but it didn't help, please help a beginner ...
It is very possible that the problem is in this area
Signals with such a condition may be skipped. But in the tester they will work for sure.
There is no tick skipping in the tester
It is very possible that the problem is in this section
Signals with this condition may be missed. But they will definitely work in the tester.
No tick skipping in the tester
Thank you, could you tell me how to set the condition differently?
Thank you, could you tell me how to set the condition differently?
You can use TimeCurrent() instead of Time[0]
Hi all!
Can you tell me how to teach an Expert Advisor to remember that there was an order open (after the order was closed). Global logical variables are suitable, but only for one instrument. If there are several symbols in one terminal, the variables will change and will not work as expected.
So, does the Expert Advisor trade several symbols at once?
If he/she trades only one instrument, the Magic number of Expert Advisor can be added to the name of the global variable.
Does the Expert Advisor trade more than one instrument at a time?
If it only trades one, the Magic number of the Expert Advisor can be added to the global variable name.
You can use TimeCurrent() instead of Time[0]
thanks, I will apply and test....