Also find experts log for ver 1.0.7Please find attached the journal tab for 1.0.7. It has also not closed orders after reaching the set floating loss
Also find experts log for ver 1.0.7Please find attached the journal tab for 1.0.7. It has also not closed orders after reaching the set floating loss
I was using // for each line that you had asked that I comment out. is that ok? I commented out a total of 6 linesAlso find experts log for ver 1.0.7
Should be fine. I cannot reproduce the bug on my local computer. Does it work when you test it on your local PC?I was using // for each line that you had asked that I comment out. is that ok? I commented out a total of 6 lines
But it would also need a different action for that timer. Did you consider using a separate instance of AP or better of AutoTrading Scheduler which would enable autotrading at 01:00?hi, is it possible to make DoNotResetTimer ?
so this is the scenario, if the condition meet then it will disable auto trading, but will starting on 01.00 server time
it just like auto trading scheduller with condition
But it would also need a different action for that timer. Did you consider using a separate instance of AP or better of AutoTrading Scheduler which would enable autotrading at 01:00?
Oh, I see. I will consider adding an input parameter for not to reset the timer, but I guess the AutoTrading Scheduler should work in your case.yes, so I will load 2 differents AP
First one only do timer with enabling auto trading on 01.00
Second one will disabling auto trading if meet my condition
the problem is that the first AP timer will reset if it executed
Oh, I see. I will consider adding an input parameter for not to reset the timer, but I guess the AutoTrading Scheduler should work in your case.
I see. No, the Scheduler won't help you here. The problem with making Timer checkbox non-resetting is that it will keep triggering as the time (in hours + minutes) won't change fast.actually for autotrading scheduler little bit not ok for me, didnt find a correct set for it
for example if I used AP and my condition is meet and AP disable autotrading but it will be enabled again by AT if its still on AT time range
and also if I used AP and my condition is not meet and its not on AT time range then it will disabled by AT
AutoTrading Schedule logic is checking time that on it set right ? if its not then AT will disabled autotrading
I see. No, the Scheduler won't help you here. The problem with making Timer checkbox non-resetting is that it will keep triggering as the time (in hours + minutes) won't change fast.
Account Protector can already do this.Dear @Enivid Could you please add a feature to Close all positions (include/exclude pending) while the MT4 server time at specific time?
Regards
PS: if there is already EA available to close all order at specific time, please let me know.
Hi Enivid.@Artattack So, you want equity trailing stop checkbox to remain ticked after the trailing stop is triggered?
Do you still have the log output in the Experts tab?Hi Enivid.
In my last post I said that I was having an issue with Account Protector not triggering correctly. I have this running on Demo account.
If you look at the time and in the following photo the profit status.
Actions set are CLOSE 100% OF ALL TRADES and RECAPTURE SNAPSHOTS
NOTE AUTO TRADING IS DISABLED AT THIS TIME. (the status of Account Protector does not reflect this it normally says auto trading disabled)
View attachment 21649
This image is the current profit total equity you can see that it was triggered to a new equity of 4043.22 Balance 4046.17 at the time of the photo.
View attachment 21650
On another chart I also have account protector running and this disables auto trading if floating loss rises to 1 point. Basically what I am trying to do here is just allow one trade to open. it immediately goes into to loss and disables auto trading just what I expect it to do. While in a negative points state this Account Protector on the second chart disables auto trading every 1 second.
This next image shows the issue.
A new equity total of 4046.47 (Balance remains at 4046.17) has been set but the trade did not close as instructed by CLOSE 100% of all trades.
Snapshots were recaptured
View attachment 21651
This image shows current equity total.
The balance has not changed because Account Protector did not close all trades when it was triggered.
NOTE AUTO TRADING IS STILL DISABLED
View attachment 21652
Could it be due to 2 copies of account protector running?
I do have Account protector running on a chart XAUUSD and I have it running on a second XAUUSD (the same pair I have just realised). Could that be causing a conflict and Account Protector should be on separate pairs?
At one time I also had a 3rd Account Protector running that it enabled auto trading when floating profit rises to 1 point but that has been removed.
It also was running a separate chart but still XAUUSD.
Regretfully I don't have the log file because I have not enabled it.
Arthur.
Could it be that your other AP disables autotrading just when the first AP tries to close the trades? It won't be able to do it if autotrading is disabled by another AP.Before you do any work on it Enivid, let me see if putting the 2nd Account protector on a different currency pair solves the problem.
It may take a while for a trade to open and get into profit before I can get back to you.