close_all_at_total_equity

Custom MT4 expert advisors published here.

Moderator: admin

close_all_at_total_equity

Postby Apprentice » Thu Nov 01, 2018 4:20 pm

Based on request.
viewtopic.php?f=27&t=66868
close_all_at_total_equity.mq4
(3.06 KiB) Downloaded 742 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 448 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

80

Postby Apprentice » Thu Nov 01, 2018 4:21 pm

Based on request.
viewtopic.php?f=27&t=66868
80.mq4
(49.25 KiB) Downloaded 681 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: 80

Postby conjure » Fri Nov 02, 2018 7:23 am

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
conjure
FXCodeBase: Initiate
 
Posts: 135
Joined: Sat Jul 22, 2017 7:27 am

Re: close_all_at_total_equity

Postby Apprentice » Fri Nov 02, 2018 12:32 pm

Can you provide more info, post chart examples?
Are we talk about different signal times or different profit levels.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: close_all_at_total_equity

Postby conjure » Fri Nov 02, 2018 12:51 pm

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
conjure
FXCodeBase: Initiate
 
Posts: 135
Joined: Sat Jul 22, 2017 7:27 am

Re: close_all_at_total_equity

Postby Apprentice » Fri Nov 02, 2018 4:24 pm

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.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: close_all_at_total_equity

Postby conjure » Fri Nov 02, 2018 6:00 pm

Is it possible to add a parameter to not allow multiple positions?
I think that is the problem
conjure
FXCodeBase: Initiate
 
Posts: 135
Joined: Sat Jul 22, 2017 7:27 am

Re: close_all_at_total_equity

Postby Apprentice » Sat Nov 03, 2018 4:55 am

Your request is added to the development list under Id Number 4296
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia



Return to MT4 Expert Advisors

Who is online

Users browsing this forum: Bing [Bot] and 18 guests