DCA EA

MQL4 Experts Scripts

Tâche terminée

Temps d'exécution 138 jours

Spécifications

DCA EA by Trail Results

Please Fully Read and ask questions to insure you can do this job.

Overview

Looking to have an EA that will operate similar to a grid EA with a few differences. The EA will subtract the “current market price” from the “lowest market price”(from the chart) or the “lowest price” that we input. We then take that difference and divide it into equal parts that we specify in the inputs. Once the EA takes profit it will reset using the new “current market price”, and start the process over again. 


Dividing up the trades

The math to divide up the trades is taking the “current market price” and the “lowest market price” and dividing it by a number we input + the “lowest market price” or whatever we input as the “lowest market price”. So if the current market price is 200 and the lowest is 5 and we input to divide the trades by 4, it’ll be 200-5=195 then 195/4=48.5 so a new trade will enter every 48.5 as it goes down until it reaches 5 and 5 is where the 1 additional trade will be added. So it'll actually place 5 trades in this scenario even though the input was set to only divided by 4. It’ll work the same way no matter how many we order we divide into. It'll always add the all time low or lowest price input as an additional trade.


Scaling into trades

As the market price goes lower it enters the new trades which will change the cost basis or average price for that position. The take profit will adjust with the new cost basis also. For example: If the starting market price was at 100 and the lowest market price was 1, we then divide it into 4 parts,(4 parts including 1 for the lowest price we input) so it will place new trades every 24.75 pips((100-1)/4). So the first trade will be at 100, second trade at 75.25, 3rd trade at 50.50, 4th trade at 25.75, and 5th trade at 1. Let's say it goes down to 1 and the lot size is the 1 for each level. The cost bases would be 50.5((100+75.25+50.50+25.75+1) / 5). So the take profit % we input would be based on the new cost basis or average. Let's say the take profit % is 100%, the EA would close all the trades at 101(50.5+50.5) and restart the EA using 101 as the new market price.


Dynamic lots

Taking the current market price and subtracting it from the lowest market price either from the chart or one we specify in the inputs. Then dividing it by the “Divide Trades input”. Then take that answer and subtract it from the market price the same number of times you previously divided by. Now take those figures and divide them all by the "divided risk amount" to get the Dynamic Lot size for each trade as the market price goes down.  


So here's a example

  • Current market Price on the chart: 225

  • Lower price on the chart: 4

  • Divide high and low difference by: 4

  • Divide Risk amount per Sequence by: 5 (Will always be 1 more than the “Divide high and low difference by X” input above)

  • Amount to risk per sequence: $1000


So well have: 

225-4=221 then 221/4=55.25 now 221, 221-55.25=165.75, 165.75-55.25=110.5, 110.5-55.25=55.25

Now $1000/5=$200 so we have:

$200/221=.90 lots for trade 1, $200/165.75=1.21 lots for trade 2, $200/110.5=1.81 lots for trade 3..., $200/55.25=3.62 lots for trade 4 and $200/4=50 lots for trade 5 to finish that sequence.


A Sequence is when one set of orders is running. For the example above that would be 5 trades for that sequence starting at the 225 price. We would like the ability to  push a button on the charts that'll add additional sequences to the same pair, independent from the first sequence that was already entered. So using the example from above, well have 1 set of 5 trades running, then another set of 5 trades can start running at another starting price and so on. The only thing that all the sequences have in common is the averaging cost basis and take profit level if it is the same pair. So multiple sequences on the same pair will all work together to lower the cost bases and will all take profit at the same time.


Pending orders in the sequence

Once an initial trade is entered, the pending orders should only appear 1 at a time. So if there are 5 orders for a sequence, once the first trade has entered the market the 2nd trade should appear as a pending order, and once the second trade level is hit, the 3rd pending order should appear and so on.


INPUTS

  • Current market price - If 0 use the current market price

  • Lowest market price - If 0 use the lowest price on the chart

  • Divide high and low difference by: X

  • Use % of equity to trade per sequence: (true or false)

  • % of equity to trade per sequence: X

  • Use $ amount to be risked per sequence: (true or false)

  • $ amount to be risked per sequence: X

  • Dynamic Lots per Sequence (True or False)

  • Divide Risk amount per Sequence by: X (Will always be 1 more than the “Divide high and low difference by X” input above) not sure if this input is needed..

  • Take profit per pair in % (true or false)

  • Take profit per pair in %: X

  • Take profit per pair in  $ (true or false)

  • Take profit per pair in  $: X

  • Add another sequence of trades each time we place a manual trade: (True or False)



On chart display

Buy Button:

We need a on chart button to place manual buys that will start a sequence at the price we place the buys at, and if we start multiple sequences it will use all the sequences to calculate 1 cost basis. And all the trades for all the sequences will take profit and restart.


Close pair trades button. Will Close all the trades for the chart it's on.

Close all trades button. Will close all open and pending trades for all pairs.

We also need an on screen legend to display the cost bases for each pair traded with a line on the chart to show the cost bases and the take profit levels.

Dossiers :

Répondu

1
Développeur 1
Évaluation
(12)
Projets
14
43%
Arbitrage
3
33% / 33%
En retard
2
14%
Gratuit
2
Développeur 2
Évaluation
(70)
Projets
91
25%
Arbitrage
26
19% / 54%
En retard
25
27%
Gratuit
3
Développeur 3
Évaluation
(7)
Projets
14
21%
Arbitrage
1
0% / 100%
En retard
3
21%
Gratuit
4
Développeur 4
Évaluation
(1)
Projets
2
0%
Arbitrage
1
0% / 100%
En retard
0
Gratuit
5
Développeur 5
Évaluation
(249)
Projets
255
30%
Arbitrage
0
En retard
3
1%
Gratuit
Publié : 2 codes
6
Développeur 6
Évaluation
(71)
Projets
100
51%
Arbitrage
24
21% / 54%
En retard
8
8%
Travail
7
Développeur 7
Évaluation
(270)
Projets
552
49%
Arbitrage
57
40% / 37%
En retard
228
41%
Travail
8
Développeur 8
Évaluation
(159)
Projets
284
35%
Arbitrage
18
22% / 61%
En retard
42
15%
Chargé
9
Développeur 9
Évaluation
(295)
Projets
471
39%
Arbitrage
102
40% / 24%
En retard
78
17%
Occupé
Publié : 2 codes
Commandes similaires
Trading Bot 50+ USD
hello great developer I want to develop a trading bot which connects with my Binance account. A bot that can work with tradingview.com where I use trading indicator which is called " TonyUX Ema scalper ". This indicator generates Buy and Sell signal. So i want a bot which can execute trade on binance when it gets a Buy/sell signal on tradingview.com ( see attached picture) Most likely you already have a similar bot
I need an MT5 Expert Advisor based on SMC (Smart Money Concepts) and SCOB pattern. Entry logic (M1 first, must work all TF): 1. Detect OB or FVG. 2. When price touches OB/FVG, wait for SCOB candle confirmation. 3. Enter at close of SCOB. Stop Loss: - SL at the high/low of SCOB candle. Take Profit (Box TP rule): - Use distance between point 1 and point 2 as a box. - TP = 2 × box size. - Same method as drawing box and
Algo Trading Rebot/ EA 30 - 100 USD
I would like someone Who can design an EA for me. I will give him the Required Details and Trading Plan How it should Work. its going to be a Simple EA System Around Moving Averages Crossover. I will Provide Him the Moving Averages Settings and How It should execute trades and Exit them
Hello. I already have a fully working TradingView indicator written in Pine Script. I am NOT asking for a new strategy or indicator to be designed. I need an experienced NinjaTrader (NinjaScript / C#) developer to replicate the same logic and behavior of my existing TradingView indicator so it works on NinjaTrader. Important points: The TradingView indicator does NOT repaint (uses confirmed bars only). This is logic
No jokers copy pasters allowed. If you're proficient in MQL5, have a proven track record with EAs apply. Commissioning the development of a high-performance Expert Advisor (EA) engineered for the MetaTrader 5 (MT5) environment. The objective is to deploy an institutional-grade automated trading system capable of systematic market analysis, precision execution, and strict risk governance within the global forex
Create an ea that exit buy trades when red smiley face appear,exit sell trades when blue smiley face appear.in this case you need to better use the Smiley face signals which are 4 for BUY (blue smiley face)and 5 For SELL( red smiley face)
I’m looking to acquire an existing, profitable Expert Advisor (EA) with full source code to add to our client investment portfolio. To be clear, this is not a request to develop or design a new strategy. If you already have an EA that is proven, consistent, and production-ready, I’m open to reviewing it immediately. Please apply only if you meet all the requirements below. Submissions without a proper introduction or
Sniper 30+ USD
Hello, I would like you to develop a trading robot (EA) with the following specifications: The robot should be able to target large moves, ideally 60–100 pips or more per trade. It should use high-precision “sniper” entries, focusing on high-probability setups rather than frequent trades. Once the initial trade reaches breakeven, the robot should be able to add additional positions (scale in) while maintaining strict
True 30+ USD
Hello, I would like to commission the development of a trading robot (EA) designed specifically to pass a prop firm challenge within one week, with a maximum allowable drawdown of 2%. Key requirements: Strict risk management with drawdown hard-limits Controlled lot sizing and position management Strategy focused on high-probability, low-risk entries Full compliance with prop firm rules (daily drawdown, max drawdown
I want you to help me and create a sniper entry robot and with proper risk management that follow trend and when is not going to the direction it exit

Informations sur le projet

Budget
80+ USD