Order management EA

MQL5 Experts

Specification

Hi, I am trying to get an EA to manage my trades with just the click of a button. This is the NNFX way for those who are wondering. 

I am trying to trade futures, so the entry would be per 2 units increment. This formula should only work with even numbers because of the two halves. However, I would like to set an exception to the previous mentioned condition as I would like to be able to set only one unit, which would only follow part A in the following instructions. 

This trade assistant consists of the following:

  -Average true range of 14 periods (The ATR is in all mt4s and mt5s). It is just an average of how much the price has moved in the last 14 periods or candles. 

-Two parts of the same trade. Let’s call them Part A and Part B.

-Stop loss.

-Take profit, which would lead into the adjustment of the stop loss.

-If the conditions are given, trailing stop that would follow the price 1.5 ATR from the highest if buying (or lowest if selling) closed price.

-A way of selecting close all positions

-A way of selecting the number of contracts I want to place.

-A way of selecting buy or sell with just one click.

-A way of changing any input mentioned such as the periods of the ATR, distance of Stop loss, distance of Stop loss of Part B after Part A reached profit, trailing stop distance and all of that. 

-A risk calculator that would recommend me the amount of contracts to enter(this needs to be displayed in the box were the buttons to buy, sell, and close position are) based on percent or fixed dollar quantity to risk. The amount should be normally changing because the amount of risk should be 1.5 ATR and the 14 period ATR is always changing.

Lest do the following example.  

 

Buy Example:

 

Stop Loss: Stop loss is set as 1.5 x ATR below the entry price. For instance, if ATR was 100, then the stop loss would be 150. This goes for both parts A and B

Take profit: Take profit needs to be 1 x ATR above the entry point. This only goes for part A

After taking the first profit: The trade B’s stop loss if moved to the entry point. This only goes for part B

Trailing stop: Trailing stop is activated only after the price has moved and closed 2 x ATR from the trade entry price. The trailing stop is 1.5 x ATR away from the highest closed price. This trailing stop can be adjusted each time the price closes to a new higher price than the one used to activate the trailing stop. This is only to be done on part B if the conditions are given. Note: the ATR used in here is the one when the trade was placed, not the current.  If the ATR was 100 at the beginning of the trade, and the price closes 200 above(the distance in this example to activate the trailing stop) the price entry and the ATR is 120 at the moment of this happening, ignore 120 and use the 100. 


Sell example:

Stop Loss: Stop loss is set as 1.5 x ATR above the price. For instance, if ATR was 100, then the stop loss would be 150. This goes for both parts A and B

Take profit: Take profit needs to be 1 x ATR below the entry point. This only goes for part A

After taking the first profit: The trade B’s stop loss if moved to the entry point. This only goes por part B

Trailing stop: Trailing stop is activated only after the price has moved and closed 2 x ATR from the trade entry price. The trailing stop is 1.5 x ATR away from the lowest closed price. This trailing stop can be adjusted each time the price closes to a new lowest low. This is only to be done on part B if the conditions are given. Note: the ATR used in here is the one when the trade was placed, not the current.  If the ATR was 100 at the beginning of the trade, and the price closes 200 below(the distance in this example to activate the trailing stop) the price entry and the ATR is 120 at the moment of this happening, ignore 120 and use the 100.

There is a guy that is developing something similar(see screenshot below), but he is still on beta testing and his costumer service was not the best. So, I am deciding to it myself with your help.


You can use all the box as a reference. My suggestion is replacing the Risk % and put there the numbers of contracts. Another suggestion of mine would be removing the "Move to BE" button as that should happen automatically in the previous instructions I gave. The rest can stay. Remember that everything should work with the information of closed candles. The only thing that should change on the fly is the movement of the stop to BE once it reaches the take profit. 


Let me know if you have any questions,


Jose Rubio

 


Responded

1
Developer 1
Rating
(7)
Projects
12
42%
Arbitration
1
0% / 100%
Overdue
2
17%
Free
2
Developer 2
Rating
(74)
Projects
121
43%
Arbitration
12
33% / 50%
Overdue
17
14%
Free
3
Developer 3
Rating
(196)
Projects
318
35%
Arbitration
64
13% / 56%
Overdue
82
26%
Free
4
Developer 4
Rating
(169)
Projects
204
30%
Arbitration
25
40% / 44%
Overdue
12
6%
Free
5
Developer 5
Rating
(5)
Projects
6
50%
Arbitration
2
0% / 50%
Overdue
0
Free
6
Developer 6
Rating
(42)
Projects
47
30%
Arbitration
12
17% / 75%
Overdue
6
13%
Free
7
Developer 7
Rating
(478)
Projects
507
53%
Arbitration
10
60% / 20%
Overdue
3
1%
Free
8
Developer 8
Rating
(63)
Projects
84
26%
Arbitration
23
22% / 48%
Overdue
23
27%
Free
9
Developer 9
Rating
(216)
Projects
245
76%
Arbitration
10
80% / 0%
Overdue
4
2%
Working
10
Developer 10
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
11
Developer 11
Rating
(42)
Projects
88
14%
Arbitration
30
30% / 53%
Overdue
36
41%
Working
12
Developer 12
Rating
(568)
Projects
641
41%
Arbitration
21
57% / 29%
Overdue
47
7%
Working
13
Developer 13
Rating
(66)
Projects
143
34%
Arbitration
10
10% / 60%
Overdue
26
18%
Free
14
Developer 14
Rating
(563)
Projects
932
47%
Arbitration
302
59% / 25%
Overdue
124
13%
Loaded
Similar orders
I will buy your EA for MT5, in case that on distance it is able to make a profit of 10% per month. - Martingale methods and grid strategies should not be used as the basis of a trading strategy. - Excellent win rate (>80%) - High risk/loss management - Option to select direction of trading (long, short or both) - News filter - Editable Trading Hours I will need to test in the strategy tester and on live market (on
Bonjour, Je suis à la recherche d'un développeur francophone pour une collaboration sur un projet existant à compléter ou à modifier. La base est excellente. En raison de difficultés linguistique le projet n'a pu aboutir
Brakeout expert 30+ USD
I need expert for customized time interval like from 10:10 to 14:15 ( you can change the time in inputs) after box end puts 2 pending orders 1 buy stop other sell stop above and bellow the box but you can make offset by points like +20 points from the high or low , when one of the order is filled other one is deleted and expert makes another order with desired lot size (has to be customized ) , TP levels for both
I need 1 minute candlestick data from oanda exchange to backtest the strategy. Data for all 28 currency and gold pairs. From 15 - 20 years ago. I can't find them on the internet please assist me
I have with me an EA whichs needs Optimization so that i can get the best set files which are profitble to use in my real account , EA will be provided with the timeframe and the lot size requirements also the backtesting period l
Need a EA 30 - 50 USD
I am seeking a skilled Software Developer to design, develop, and maintain applications. The ideal candidate should have a strong background in programming (Java, Python, JavaScript) and experience with web technologies and databases
I need propfirm ea which earn more than 10-15% monthly without breaching prop rules and has a max loss of 3% daily if any developer has bet for it
Hello, i need a good programmer; to code an EA to trade the most productive forex pairs (mainly 2 for the day, and 2 for the night+gold), the strategy is based on the use of one moving average and the rsi, thank you in advance
Hello, i am looking for a developer to create an EA mt5. i also need license and subscription in this software. I will provide the strategy on which the EA should be created (The EA should follow all the given strategy parameters). The EA Should have Risk Management protection like: custom lot size Custom SL, TP , Trailing SL, TP, Max DD protection (both % and USD) The EA should also display my website name and link
Hello, I need a cBot for cTrader for my trading system. However, this bot should not be based on timeframes. I trade exclusively with Renko Blocks. Could you implement this for me? Here are the rough requirements: 1. an EMA200 should simply serve as an entry point. If the current price is above it, a long position is opened, if the price is below it, we open a short position. 2. i must be able to set how many pips my

Project information

Budget
100+ USD
For the developer
90 USD