Set Stop Loss Take Profit For All

Custom MT4 expert advisors published here.

Moderator: admin


Re: Set Stop Loss Take Profit For All

Postby evansrono » Wed Jan 13, 2021 9:00 am

Hi.

Please assist in creating an Stop Loss EA based on the following criteria:

Multiple entries placed at once, user able to specify the number of trades and TP target for each (with an option of not having a TP target, say having a zero value for example in a trending mkt).

When actual price reaches 1st TP target (Placed by user), activate stop loss at the break-even entry price of each trade in case price retraces. Your help is on this appreciated. Thanks.

Regards
evansrono
 
Posts: 35
Joined: Thu Jun 25, 2020 9:11 am

Re: Set Stop Loss Take Profit For All

Postby Apprentice » Thu Jan 14, 2021 3:56 am

Your request is added to the development list.
Development reference 79.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Set Stop Loss Take Profit For All

Postby optionhk » Sun Jan 17, 2021 12:37 pm

Apprentice wrote:Based on TS2/Lua version.
viewtopic.php?f=17&t=65384
Set Stop Loss Take Profit For All.mq4


Excellent EA.

Can you please modify this EA to act as an indicator for two purposes. Not for trading but to record statistics and show it moving dynamically currently.

1. To watch the trade visually in action like ADR MTF projection indicator moves trade dynamically. ADR MTF shows trade in action . Please show TP and SL pulling each other like your ADR MTF does visually so well.

2. Collect statistics by looking back at past trades and record this information based on user query.

Need following inputs
(a) TF - New
(b) Lookback - New
(c) Take Profit,Pips _ Already there Add a switch true/false. If false it will use (d)
(d) Stop Loss, Pips - Already there. Add a switch true/false. If false it will use (e)
(e) Take Profit, Minutes - New
(f) Stop Loss, minutes - New

Statistics needed for TP and SL in terms of Pips in Chart TF of 15 minutes (current TF)

Example 1 (for Pips) : I input TP 25 and SL 10 and want to know statistics for Longs and Shorts separately

Count how many times TP size of 25 hit and how many times it failed or hit SL

Example 2 (for minutes) I input TP 5 minutes and SL 10 minutes and want to know statistics forLongs and Shorts separately

Count how many times TP size of 5 minutes hit and how many times it failed or hit SL of 10 minutes.
optionhk
 
Posts: 21
Joined: Sun Jan 29, 2017 4:57 am

Re: Set Stop Loss Take Profit For All

Postby fx1079 » Sun Jan 17, 2021 9:20 pm

Apprentice wrote:Based on TS2/Lua version.
viewtopic.php?f=17&t=65384
Set Stop Loss Take Profit For All.mq4

Hello sir, i think you've forgot to include this line in the custom indicator
Code: Select all
#property indicator_chart_window
fx1079
 
Posts: 1
Joined: Sun Jan 17, 2021 9:10 pm

Re: Set Stop Loss Take Profit For All

Postby yolerap » Wed Jan 20, 2021 1:20 pm

Hello,

Is exist one EA set one stop or take profit at the same distance as soon as one stop or take profit is manualy put?
yolerap
FXCodeBase: Initiate
 
Posts: 103
Joined: Sat Aug 17, 2019 9:44 pm

Re: Set Stop Loss Take Profit For All

Postby Apprentice » Thu Jan 21, 2021 3:18 pm

Your request is added to the development list.
Development reference 113.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Re: Set Stop Loss Take Profit For All

Postby evansrono » Mon May 24, 2021 5:18 am

Hi,

Thankyou. Is it possible to change the Take Profit and Stop Loss pips/points to Price values for that particular currency pair.

Regards
evansrono
 
Posts: 35
Joined: Thu Jun 25, 2020 9:11 am

Re: Set Stop Loss Take Profit For All

Postby Apprentice » Tue May 25, 2021 4:03 am

Your request is added to the development list.
Development reference 509.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Next

Return to MT4 Expert Advisors

Who is online

Users browsing this forum: No registered users and 11 guests