Need take profit or stop loss on basket positions in EA on percentage terms and include a trail.

MQL5 Danışmanlık

İş tamamlandı

Tamamlanma süresi: 1 gün
Geliştirici tarafından geri bildirim
Easy customer. Very clear with instructions, and fast to respond to queries.
Müşteri tarafından geri bildirim
Very happy with Jason, will use him again!

Şartname

I am running an EA at the moment and its perfect for placing orders however it misses a lot of stop and take profit placements in the program due to an ATR trail that cant keep up with the orders.

I would like to be given the coding that I will put into the EA that allows a profit and stop loss on equity at the starting of the EA a total profit and or loss for all basket positions that don't have a set stop or profit value in the EA. I want the profit and loss percentages to be individual set by params in the EA not the same value for each. Once the profit amount is achieved I would like a step trail value to be placed in percentage terms. Example profit target 10% trail stop 3%. Once it goes to say 10% the highest profit above the set value it must drop back 3% to take profit. Stop loss will be a fixed percentage say 10%.

At the same time I want the EA to stop if losses go to a certain percentage of equity in that EA only selectable in the EA params by say 20%.

It will keep taking profits or stopping losses on the last updated equity value however if it goes back to a pre set equity value in dollars it will stop too. I can edit this in the EA.

See the chart to show the equity profit at times is higher and this can be taken as profit.

I would like to print the Net equity on the chart screen, Comment() 

I have edited many EAs and do know a bit about coding but the time to try and work this out I thought I would ask a professional. If it can be provided to slot into OnInit,  OnDeinit, OnTick etc

thank you

 

Brad

 

Please don't reply if you only know MT4 like some coders here.

 


Yanıtlandı

1
Geliştirici 1
Derecelendirme
(137)
Projeler
167
35%
Arabuluculuk
11
91% / 0%
Süresi dolmuş
0
Serbest
2
Geliştirici 2
Derecelendirme
(19)
Projeler
21
5%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
1
5%
Serbest
3
Geliştirici 3
Derecelendirme
(258)
Projeler
396
28%
Arabuluculuk
70
19% / 49%
Süresi dolmuş
121
31%
Serbest
4
Geliştirici 4
Derecelendirme
(8)
Projeler
16
0%
Arabuluculuk
9
0% / 89%
Süresi dolmuş
8
50%
Serbest
5
Geliştirici 5
Derecelendirme
(19)
Projeler
22
32%
Arabuluculuk
10
0% / 100%
Süresi dolmuş
3
14%
Serbest

Proje bilgisi

Bütçe
30+ USD