ATR Trailing Stop EA and some

MQL4 Indicators Experts Forex

Specification

What i need is a very simple extension of  already existing code. This shall be seperated into 2 projects:

1. Chandelier Exit EA

Take the existing code which can found online for a Chandelier Exit indicator. Paste it into an EA and give me the option to set the following external: Magic number, ATR peroid, K(number of multiples). Please take into account that in short cases the EA needs to account for the spread and add it. The most important is that the EA can set the stop automatically by getting the ticket number from the open trades with a for loop or whatever. The Magic number which is an external should reflect the fact that only trades with that Magic are edited.

If you understand Python, the Formula for the Chandelier Exit :

    def CHANDELIER(
        cls,
        ohlc: DataFrame,
        short_period: int = 22,
        long_period: int = 22,
        k: int = 3,
    ) -> DataFrame:
        """
        Chandelier Exit sets a trailing stop-loss based on the Average True Range (ATR).

        The indicator is designed to keep traders in a trend and prevent an early exit as long as the trend extends.

        Typically, the Chandelier Exit will be above prices during a downtrend and below prices during an uptrend.
        """

        l = pd.Series(
            ohlc["high"].rolling(window=long_period).max() - cls.ATR(ohlc, 22) * k,
            name="Long.",
        )
        s = pd.Series(
            ohlc["low"].rolling(window=short_period).min() + cls.ATR(ohlc, 22) * k,
            name="Short.",
        )


2. Multi peroid Chandelier Exit EA

The second part will be to build an other version of this EA which follows these rules:

"ATR - (Average True Range) is one of the volatility indicators; the greater the value, the higher the average volatility over the specified time period (of the indicator); measured in points. Trailing by ATR in most cases allows to change the stop loss according to ("adequately", "adaptively") the price behavior type - at high volatility (visible spikes) the price is "let go", when "marking time" it is kept "tighter". The trailing uses 2 ATRs, that are supposed to have different periods - one short (e.g. 5), the other - long (e.g. 20). The calculation of the stop loss always uses the greater value of the 2 ATRs - this is done in order to prevent several low-volatility bars in a row (for example, prior to news release) from moving the stop loss too close to the current price."


In short add another Peroid which is also an extern and save it as another Version.

Under the Link:

https://www.mql5.com/en/code/7108

you will find the code for part 2 called: 6. Trailing by ATR.

All rules from above also apply to this EA with the Extension.


In my opinon the only real thing you need to do is add a for loop which selctes for the Ticket number and then implement the code i referenced here. If thats not the case please explain me why in your application. And ofc i will need the sourcecode to later make some changes.

Files:

Responded

1
Developer 1
Rating
4.81
(26)
Projects
36
47%
Arbitration
5
40% / 20%
Overdue
5
14%
Free
2
Developer 2
Rating
4.92
(155)
Projects
187
28%
Arbitration
22
36% / 50%
Overdue
10
5%
Working
3
Developer 3
Rating
4.92
(156)
Projects
237
30%
Arbitration
53
34% / 23%
Overdue
33
14%
Free
4
Developer 4
Rating
0
Projects
0
0%
Arbitration
1
0% / 100%
Overdue
0
Free
5
Developer 5
Rating
4.73
(44)
Projects
45
31%
Arbitration
2
0% / 50%
Overdue
3
7%
Working
6
Developer 6
Rating
5
(99)
Projects
108
68%
Arbitration
1
100% / 0%
Overdue
0
Working
7
Developer 7
Rating
4.84
(483)
Projects
837
50%
Arbitration
283
60% / 24%
Overdue
116
14%
Loaded
Similar orders
Hello I need an EA in MT5 for news trading, the trading strategy is to open long and short pending orders (bay/sell stop) and (bay/sell limet), seconds before the release of economic data. With the possibility of controlling: - Lot size, - Trailing Stop, - Target, - Stop Loss, - Max Slippage, - Delete opposite pending order after go to market, -Distance in points between price and orders e.g 100 pips, - Timing
I am looking for creating a fully Forex integrated trading system. The main task is to integrate existing mql4 indicators in real time signals to a new comprehensive EA risk money management to create a single integrated trading system EA, with multi currency's and multi-frames online currencies trading pairs functioning on a broker MQL4 platform. The task is to select the best provided entering signals with the
I need an indicator that will help identify two patterns: ABCD pattern Butterfly pattern Using zigzags, i would like 5 different zigzag periods on screen at the same time, therefore at least one period should be able to identify one of these patterns. I will provide full document to participants
I'm looking for an Auto Fib Tool to draw a fib in the direction of the trend during a specified time (user must be able to define times in the input tab). Typically I will only look at the current day's chart action and the previous day's chart action, so user settings could be "Yesterday" and say "10:15 to 12:15" or "Today" and say "04:00 to 08:00" (anything outside of the current day and the previous day I will use
Freqtrade 30+ USD
Hi! looking for a Freqtrade expert What I'm looking for is to take my strategy and hyperoptimize it in a particular way. What I need is to change literally all the parameters of the strategy. I know that this can be done with freqtrade in a custom way, the code needs to be modified and adapted to do so. By finding all the combinations of the indicator's parameters, along with sl and tp, we can find the best overall
Hello I want to make an EA in MT5 that can print or comment some texts based on five criteria. 1. Sharpe ratio 2. Profit Factor 3. Notional Value 4. MFE (Maximum Favorable Excursion) 5. MAE(Maximum Adverse Excursion) If you can do the calculations based on historical trades please let me know
Have an indicator that needs to edit the notifications and add new notifications based off the new features added. the indicator needs to be optimized and checked for correct working conditions. and switch out parts if need be. and new entry conditions which are 4 of them added and synced and add info on how to add lock or how to make it expire when i want. this maybe added later
Dear Developers, We have an existing Martingale EA as attached. Please see some possible modification and/or correction of this EA as stated below points. 1. Pipstep - kindly correct or modify the formula of the PipStep in which the purpose of the PipStep that we want is a restriction that there should be no trades to open if the last trade order is within the specify distance of the current price. Sample: Extern Int
I want the indicator calculations to start at predetermined vrariable so that calculations can be adjusted to different brokers. input int calculation_start=07:00; Mainly all the pivots will be calculated from the starting point. For example, in my current version, the TimePeriod variable is set to input ENUM_TIMEFRAMES=PERIOD_D1; Wich equals 00:00 to 00:00 for the daily (24 hours). What I want is that the PERIOD_D1
Hi, I'm looking for a freelancer to create an indicator that combines 6 indicators. This indicator will show signals of BUY or SELL on the chart. The signals will be LOW , MID or HI. Thank you in advance

Project information

Budget
30 - 50 USD
For the developer
27 - 45 USD
Deadlines
from 0 to 1 day(s)