Questions from Beginners MQL4 MT4 MetaTrader 4 - page 167
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
That is, if modification is unsuccessful, then we turn on the flag, and on the next tick we go through and check everything, if everything was successful then we reset the flag... Otherwise it will be checked again on a new tick.
If you trade with stops and never without them. Then you can run through the positions on every tick and if there are any without stops, then set them. There are not many open positions in any case. So, the excessive overshooting will not increase the load of the Expert Advisor too much.
Hello.
Can you please tell me how to test an EA for two currency pairs?
When enabled on a demo, it opens no matter what pair is enabled on. When testing, it opens only if the testing is carried out on a certain pair.
Unknown symbol name GBPUSD for OrderSend function
OrderSend error 4106 -
Unknown symbol
Hello.
Can you please tell me how to test the Expert Advisor for two currency pairs?
When enabled on a demo, it opens no matter what pair is enabled on. When testing, it opens only if the testing is carried out on a certain pair.
Unknown symbol name GBPUSD for OrderSend function
OrderSend error 4106 -
Unknown symbol
MetaTrader 5 helps!
MetaTrader 5 to the rescue!
Thank you.
No, mt4 does not support multicurrency
You didn't specify what kind of "insurance" you want.
I gave an example in the third line from the bottom.
That is, the Breakeven function will modify an order when the price moves to profit according to the market
And it will place Stop Loss and Take Profit to the order where there was no Take Profit and Stop Loss before due to a failure.
We can also create a function that will handle a critical situation described in the
on the second line from the bottom.
So my question is this: Who among programmers who write fighting EAs, and how does he deal with
with such situations or handles them?
But if no one bothers with such little things, just write it that way.
As they say, thank you.
I gave an example in the third line from the bottom.
In other words, the Breakeven function will modify an order according to the market if the price has turned to profit
and places Stop Loss and Take Profit in an order where there was no Take Profit and Stop Loss before because of a failure.
We can also create a function that will handle a critical situation described in the
on the second line from the bottom.
So my question is this: Who among programmers who write fighting EAs, and how does he deal with
with such situations or handles them?
But if no one bothers with such little things, just write it that way.
As the saying goes, thank you.
This doesn't happen if you do a minimum check and it's "Acceptable order placement distance".
If you trade with stops and never without them. Then you can run through the positions on every tick and if there are any without stops, then set them. There are not many open positions in any case. So, the excessive overshoot will not increase the load of the Expert Advisor.
Good idea! But in practice you do it yourself, or have you done it for a market Expert Advisor?
Or it is not worth bothering with?
I am writing a classic Expert Advisor that trades a single position.
What would you advise?
This does not happen if you do a minimum check on "Acceptable order placement distance".
Please tell me if you mean freeze zone or time?
I am describing the situation of trading with one order.
What is the "tolerance range of an order" from?