Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1551
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
Hello all, help please!
I have a problem like this. I bought a vpc from mql5 everything is working fine, installed an expert, set up 8 charts and put an expert. And i transferred the whole thing to vpc.
I had to uninstall metatrade from my computer because it was not mine.
And now when I go in from my computer.
Everything works, the expert. It works, but I cannot see it to make any changes in the settings. How can I return the EA and schedules so that I can manage them from my computer?
Thank you!
You need to save profiles for this case. To upload it later under the UPU.
Who knows how to export all data from the report to exel without distortion?
if i just copy some of the data in the column "profit" is exported as date e.g. january 94 instead of 1.94
No matter how I try to save, I can't get rid of this problem.
Who knows how to export all data from the report to exel without distortion?
if i just copy some of the data in the column "profit" is exported as date e.g. january 94 instead of 1.94
No matter how I try to save, I cannot get rid of this problem.
Before uploading, or before opening the exported file, replace the separator between integer part and fractional part in Excell with a dot.
Who knows how to export all data from the report to exel without distortion?
if i just copy some of the data in the column "profit" is exported as date e.g. january 94 instead of 1.94
No matter how I try to save it, I cannot get rid of the problem.
So
Maybe you should also take into account the number of stops triggered. For example, the EA will find a stop in the history, and if there are two of them, it should add them both to three or four, it all depends on the external setting "number of stop losses".
The best thing in your case, and not only in your case, but in most cases, instead of turning to the trading history with a search of closed orders, keep tickets of open orders in an array. Periodically, going through the array, check if this order was closed by a simple condition.
If the order has closed, it can be selected by the ticket and checked whether it closed with a profit or not. You may also check the distance from the open position to the stop and add to this distance as much as your mother allows.
After all those manipulations, we should reset the array size to 0 and fill it anew with the ticks of the orders opened at the current moment in the loop, increasing the array size.
you have to save profiles for this occasion. To upload it later under the UPU.
Hello
Help me understand the code
Attached a piece of code that has classes and everything is working fine but
I want to connect some functions from the classes into a separate function of my own and writes errors
example
it works like this
and this doesn't work
this function works
void StrategyTrader::DoEntryTrade(TradeDirection tradeDir)
and this one doesn't
OpenHandPosition(int tp)
help
I've come to the conclusion that it's difficult to implement, your code is much simpler, clearer and more logical, but ..... somehow doesn't add up either. The main thing is not to give up.
It seems to be OK. Try it, ask...
It seems to be OK. Try it, ask...
Thanks for the help, only next week I will be able to write the correctness of the EA, today is Friday and I am not looking for market entry prices anymore.
What if I turn off the VPN and put it all back on and then turn it back on again and transfer everything to you, the graphics and the expert?