Page 1 of 1

close_all_at_total_equity

PostPosted: Thu Nov 01, 2018 4:20 pm
by Apprentice
Based on request.
viewtopic.php?f=27&t=66868
close_all_at_total_equity.mq4
(3.06 KiB) Downloaded 744 times


An EA which looks for the profit/loss accumulated by the running orders.
after reaching the desired value (profit/loss), all the running orders should be closed.
close all positions at profit target.mq4
(6.76 KiB) Downloaded 450 times

80

PostPosted: Thu Nov 01, 2018 4:21 pm
by Apprentice
Based on request.
viewtopic.php?f=27&t=66868
80.mq4
(49.25 KiB) Downloaded 683 times

Re: 80

PostPosted: Fri Nov 02, 2018 7:23 am
by conjure
Apprentice wrote:Based on request.
viewtopic.php?f=27&t=66868
The attachment 80.mq4 is no longer available


Hi Apprentice.
I downloaded and back tested the EA on MT4
and does not give me the same results as the LUA on TS2

Can you try to backtest it, with these settings i upload for 2017 , on both platforms
to see what is wrong?
Capture.PNG

Re: close_all_at_total_equity

PostPosted: Fri Nov 02, 2018 12:32 pm
by Apprentice
Can you provide more info, post chart examples?
Are we talk about different signal times or different profit levels.

Re: close_all_at_total_equity

PostPosted: Fri Nov 02, 2018 12:51 pm
by conjure
This is the Lua backtest where it trades 13 times
LUA.PNG


and this is the MT4 results where i have 48 trades
MT4.PNG

Re: close_all_at_total_equity

PostPosted: Fri Nov 02, 2018 4:24 pm
by Apprentice
All simulation are just that, simulation.
Different trading stations use different algorithms with different degrees of accuracy.
As such, the results are not comparable.

You will get more comparable results if you run them on the demo.

Re: close_all_at_total_equity

PostPosted: Fri Nov 02, 2018 6:00 pm
by conjure
Is it possible to add a parameter to not allow multiple positions?
I think that is the problem

Re: close_all_at_total_equity

PostPosted: Sat Nov 03, 2018 4:55 am
by Apprentice
Your request is added to the development list under Id Number 4296

Re: close_all_at_total_equity

PostPosted: Mon Nov 05, 2018 5:47 am
by Apprentice
Try it now.