[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 522

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
And how do you implement an order change if its take profit is not equal to a specific price. I have done it like this
For example buytakeprofit equals 1.2555It turns out that if take profit of the order is NOT equal to 1.2555, then there is a modification of the order which gives out error 1, which means that I am trying to set the same value. But if take profit is already equal to this price, then why does the OrderTakeProfit() condition kick in = buytakeprofit?
Because it's not normalised
How would you better organise the maximum drawdown of the EA, at which it stops working, can you set a static variable that will accumulate the amount of losses?
The Expert Advisor should stop working, but it will start working again after restarting or changing parameters.
After that, you start to doubt the correctness of the program's behaviour, can you please explain what the trick is?
The program after the generated error accessed the historical centre and got the necessary quotes, but it turns out that not all of them? Or what is the meaning of this?
After that, you start to doubt the correctness of the program's behaviour, can you please explain what the trick is?
The program after the generated error accessed the historical centre and got the necessary quotes, but it turns out that not all of them? Or what is the meaning of this?
Comrades, we need some advice. What to fix so that prices are written to the file correctly. Now the EA sometimes outputs what's in the red circle, see the image below. I am pasting the code of the Expert Advisor and a picture of what is written to the file)
As a result, we have:
(red circle - it takes the price as a date and this is very inconvenient for further work)
And this is a problem with your Excel settings. And don't blame the Expert Advisor, look up the file in Notepad and it's fine.
I've been struggling with the 2007 set, but have not been able to conquer this problem completely. The only way out: for Excel to see your data as numeric values, add "+" before the positive numbers, and with negative numbers, and so it is clear.