Clean Basic Martingale Strategy Required

Tâche terminée

Temps d'exécution 1 jour
Commentaires du client
Developer understands and works very quickly. Very impressed

Spécifications

Hi


I want a very CLEAN BASIC Martingale code as follows:

A - INPUTS

1. Initial Lots

2. Lots for Positions 2 to 5

3. Lots for Positions 6 to 10

4. Distance in points to open Position 2 to 5 (from each previous position price) 

5. Distance in points to open Position 6 to 10 (from each previous position price)

6. Dropdown for "Sell Only", "Buy Only", "Buy and Sell at the same time"

7. Take Profit in points (not pips)


B - WORKINGS

1. It must always trade. First trades must always be either a buy, sell or both depending on input selected

2. Then it must Martingale from there as per the inputs. It must always place the next order as a pending order in the system. As it triggers, the next pending order goes in and so on.

3. VERY IMPORTANT - The EA must continuously recalculate the average cost of all buy and sell positions separately (Total cost/Total lots for "buy" = average cost for "BUY") and  (Total cost/Total lots for "sell" = average cost for "SELL")

4. The take profit in points added to the average price of "SELL" and "BUY" must be sent as a pending order immediately - BUY positions and SELL positions separately.

5. Once BUY or SELL positions gets closed with take profit, it must immediately open either a buy or sell again and start over.


C-  EXAMPLE

Buy EURUSD at 1.09000 for 1 lots with 100 points take profit and 100 points distance to Martingale (Assume all trades at 1 lot and 100 distance BUT obviously it must work as per the inputs I mentioned above where it will be different for trades 2 to 5 and 6 to 10)

1. EA Immediately puts 1.09100 as TP order and another pending buy order at 1.08900

2. Price goes down to 1.08900 the EA opens another BUY as per the pending order. The EA now immediately puts another buy at 1.08800. At the same time the EA also now recalculates the two open positions cost which is ((1.09000x1) +(1.08900x1))/2 = 1.08950. The EA deletes the previous TP (1.09100) in the system and updates it to 1.09050 (1.08950 new average cost plus 100)

3. Price goes down to 1.08800 the EA opens another BUY as per the pending order. The EA now immediately puts another buy at 1.08700. At the same time the EA also now recalculates the three open positions cost which is ((1.0900x1) +(1.08900x1)+(1.08800x1))/3 = 1.08900. The EA deletes the previous TP (1.09050) in the system and updates it to 1.0900 (1.08900 new average cost plus 100)

4. Price goes to 1.0900 and take profit kicks in. EA immediately starts again.

5. The same principles applies for SELL trades (If I selected buy and sell at the same time)



Répondu

1
Développeur 1
Évaluation
(19)
Projets
18
11%
Arbitrage
2
50% / 50%
En retard
0
Gratuit
2
Développeur 2
Évaluation
(37)
Projets
59
27%
Arbitrage
24
21% / 54%
En retard
10
17%
Travail
3
Développeur 3
Évaluation
(5)
Projets
6
17%
Arbitrage
0
En retard
0
Travail
4
Développeur 4
Évaluation
(61)
Projets
93
27%
Arbitrage
1
100% / 0%
En retard
2
2%
Chargé
5
Développeur 5
Évaluation
(55)
Projets
80
54%
Arbitrage
9
33% / 33%
En retard
7
9%
Travail
6
Développeur 6
Évaluation
(178)
Projets
228
58%
Arbitrage
7
29% / 29%
En retard
7
3%
Travail
7
Développeur 7
Évaluation
(319)
Projets
347
52%
Arbitrage
5
80% / 20%
En retard
1
0%
Travail
Commandes similaires
hey friends, I am looking to build a smart trading robot, for the capital market. He knew how to trade in all the different types of trade. Example - in shares, currencies, index, indices, ETFs, funds, commodities, options, futures and so on. Suitable for trading on all stock exchanges in the world. It will be possible to install the trading robot in the MetaTrader 5 trading software. But it will also be possible to
Hello Amazing developer am looking for profitable EA for mt4 and made for some past year and i will be looking forward for your bid if you have mt4 EA let Negotiate in the contact box best regards
Hello Amazing developer am looking for profitable EA for mt4 and made for some past year and i will be looking forward for your bid if you have mt4 EA let negotitate in the contact box best regartds
Hi I need a software like Mirror trade copier ( https://www.antonnel.net/mirror/ ) which directly connect to the Accounts over api with out MT4 terminal and copies trades from mater to client. I want the same and possible improvement like can be accessed over a url and dashboard for some basic metrics (optional)
Hello great developer Can you build this indicator for Quantower. If positive, then how much will it cost to make automated strategy from the indicator? i will be looking for great developer to build for this project best regards
Hello Greetings. I have a custom tradingview strategy I would like to convert to Metatrader 5 ( mt5 ) . I have the source code a and with me. Kindly bid if it is what you can do for me and let discuss about the project. Thanks
Attached to this post is the pinescript tradingview indicator code, i will also attach a link to the youtube explanatory video of how the indicator works on tradingview, i will like the exact thing on mt5, including the percentage prediction on each bar and the win loss counter ... it should work on both forex, stock and volatility indices on mt5 https://youtu.be/30FLWyEWroM?si=q9GpvJVHp-oyvsvZ // This work is
Hello there, I need a mql4 EA based on pine script custom indicator. You need to do pine script indicator convert into mt4 advisor. If you are able to do please contact. Thanks
Can you get my drafts to work? Have to conditions in RSI and Stoch oscillators ,,,I have a draft but its not run,, you can help me? if iRsi <30 ordersend op_sell iStoch > 80 ordersend op_sell Period_15M Send Orders_Buy limit Pivot Price Send Orders_Sell Limit Pivot Price
I am looking for a tool that will calculate the max adverse excursion before a trade closes in profit or loss. The toll needs to analyse historical trades and record this value for each trade. The purpose is to assist me calculate the best stop loss for using a martingale system

Informations sur le projet

Budget
30+ USD
Pour le développeur
27 USD