- Credits
- 5
What time do you want to trade? You want to trade 0:00 to 06:00, for example?
View attachment 85057
For example, by this setting, EA will stop between 10;00 to 18;00, just stop EA and not close orders.
OK, I fixed.I'd like the EA to operate continuosly from 00:00 until it reaches the target profit (also in the next days if necessary) and, after the profit is reached and the orders closed, it starts again at the next 00:00![]()
Sorry I have no idea about MT5 code.tanaka akiko please help convert this my MT4 indicator to MT5
OK, I fixed.
View attachment 85061
profit target is $1 and close at 4:00 and EA re-start next day (00:00:00)
Please test with attached set file.
I saw order send error 4051 in your original EA, so what happens?View attachment 85069
Mr. Tanaka, this is what happened during the test.. the sign "Now today's profit reached..." appeared only when I stopped the test..I also verified that the EA always stops after the first few trades with my original set![]()
Can you test with my set (EU H1 )?View attachment 85069
Mr. Tanaka, this is what happened during the test.. the sign "Now today's profit reached..." appeared only when I stopped the test..I also verified that the EA always stops after the first few trades with my original set![]()
It looks this EA has sometimes lot size is zero due to set file. That is why invalid lot error.View attachment 85069
Mr. Tanaka, this is what happened during the test.. the sign "Now today's profit reached..." appeared only when I stopped the test..I also verified that the EA always stops after the first few trades with my original set![]()
Can you test with my set (EU H1 )?
Can you test this?I tested it with your set file at EURUSD H1 and other timeframes, that was the result..with my original set file I did't see that error..this is the snapshot
View attachment 85070
Is there a way to simply let the EA restart at 00:00 after concluding the first row of orders? As you could see, then the EA stops trading with my set file..it would be perfect if it could start again from scratch the day after the closure..
Can you test this?
Can you test this?
MainLot1 = NormalizeDouble(LotsOptimized(Risk1, Deposit1), 2);
RefillLot1 = LotsOptimized(Risk1 - CurrentRisk(CountLotsAllOrders(Magic1, TypeOrder1), Deposit1), Deposit1);
Code:MainLot1 = NormalizeDouble(LotsOptimized(Risk1, Deposit1), 2); RefillLot1 = LotsOptimized(Risk1 - CurrentRisk(CountLotsAllOrders(Magic1, TypeOrder1), Deposit1), Deposit1);
yes, order lot size is decided based on 2 parameters. Deposit and Risk, so please optimize them.
Hi tanakaI used the latest Tanaka template adn I added a new function.
If the order was closed with loss, then EA will be paused for xx hours and restart again.
View attachment 84835
I think if possible Master Tanaka can make separate script to reload the EA after profit reachedI worked many hours to obtain that set, I don't think I can change those parameters without compromising the strategy..can you make the EA restart anyway?
Sound good. I can try separately EA, which you can attach on the any chart and that EA will control an another EA.I think if possible Master Tanaka can make separate script to reload the EA after profit reached