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

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
Better still the first option, place before attempting to open an order (OrderSend)
All these conditions may not follow immediately one after another (may be in an hour or two or three), therefore we should make it so that as soon as the indicator reaches 1.0000, this condition is not checked at every tick, and wait until one bar closes with fall, and after that these 2 conditions are not checked at every tick, and wait until the indicator reaches 0.9980 or equal. As soon as all conditions are fulfilled we open a market order to sell 0.1 lot with a stop loss of 400p and take profit of 400p.
In general it's OK, but I would pay close attention to the values returned by the indicator.
Overall it's OK, but I would pay close attention to the values returned by the indicator.
When the value reached 1.0000, at each tick the following message was displayed: " Indicator value >= 1.0000".Tried in real time via Alert the value of the indicator, the message was displayed normally:
Tried the real time value of the indicator via Alert, the message was displayed normally:
Then what the tester doesn't like, you need to add alerts and look in the logbook.
Well is the code correct?
What does it mean?
2011.12.06 01:07:55 HMR MULTI Indicator EURUSD,M15: removed
2011.12.06 01:07:57 TestGenerator: unmatched data error (volume limit 603 at 2011.12.01 00:00 exceeded)
2011.12.06 01:07:57 2011.12.01 00:00 HMR MULTI Indicator EURUSD,M15: unknown subwindow number -1 for ObjectCreate function
What does it mean?
2011.12.06 01:07:55 HMR MULTI Indicator EURUSD,M15: removed
2011.12.06 01:07:57 TestGenerator: unmatched data error (volume limit 603 at 2011.12.01 00:00 exceeded)
2011.12.06 01:07:57 2011.12.01 00:00 HMR MULTI Indicator EURUSD,M15: unknown subwindow number -1 for ObjectCreate function
... indicator.
Try the "gut feeling" method with an empty Expert Advisor,
verify in the indicator that ObjectCreate finds its subwindow (or why draw it IF we test OR OPTIMIZE it)
That is, if there is no parameter transfer, then:
Thank you for your answers !
Good afternoon!
Can you please tell me how to prevent the EA from writing repetitions to the file using the "Tool" parameter (_OrderSymbol). I've seen on the forum how to delete repetitions https://forum.mql4.com/ru/5814 in an array, but I haven't figured out how to apply it to my situation. And with repeats it starts stamping 200 identical lines into a file even in one loop.