Clean Basic Martingale Strategy Required

Job finished

Execution time 1 day
Feedback from customer
Developer understands and works very quickly. Very impressed

Specification

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)



Responded

1
Developer 1
Rating
(19)
Projects
18
11%
Arbitration
2
50% / 50%
Overdue
0
Free
2
Developer 2
Rating
(37)
Projects
59
27%
Arbitration
24
21% / 54%
Overdue
10
17%
Working
3
Developer 3
Rating
(5)
Projects
6
17%
Arbitration
0
Overdue
0
Working
4
Developer 4
Rating
(61)
Projects
93
27%
Arbitration
1
100% / 0%
Overdue
2
2%
Loaded
5
Developer 5
Rating
(55)
Projects
80
54%
Arbitration
9
33% / 33%
Overdue
7
9%
Working
6
Developer 6
Rating
(178)
Projects
228
58%
Arbitration
7
29% / 29%
Overdue
7
3%
Working
7
Developer 7
Rating
(319)
Projects
347
52%
Arbitration
5
80% / 20%
Overdue
1
0%
Working
Similar orders
STI EA 30 USD
I need to convert this MT4 indicator into MT5 EA/indicator. The problem is I only have the .ex4 file bt not .mq4 file and it is also a repainting indicator. I need preliminary assessment if the conversion can be done based on .ex4 file first before exploring the EA details further. Attached is the indicator Budget below is just indicative for the assessment. We can discuss further once the conversion can be done and
This mql4 got entry blue line and exit red line and pips inside also calculated it uses haiken Ashi and murray Math settings if you this you up for this job let's discuss it we will talk more when you are chosen thanks in advance
i Want to convert this Trading View Code to Mt4 Indicator indicator("NEOM Smart Money Concepts ", "NEOM Smart Money Concepts " , overlay = true , max_labels_count = 500 , max_lines_count = 500 , max_boxes_count = 500 , max_bars_back = 500) //-----------------------------------------------------------------------------{ //Constants //-----------------------------------------------------------------------------{ color
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)
The first section will describe the EAs trading strategy logic and features. The second section is an outline of the inputs that the EA should contain. 1. The idea of the trading system is as follows : This EA enters trades based on fibonacci retracement levels when other (MACD, RSI) conditions are met. It will use a MACD from a particular time frame to establish the swing high and swing lows which the fibonacci
1. **Timeframe and Liquidity:** Focus on the 5-minute timeframe for liquidity analysis.(timeframe for liquidity should be editble) 2. **Candlestick MSS:** Monitor 1-minute candlestick patterns for entry signals.(should be editble) 3. **Swing Points:** Identify swing points using the high and low of the last three candles.(ict swimg high and low) 4. **Sell Setup:** - Wait for a 5-minute candle to take out the swing
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

Project information

Budget
30+ USD
For the developer
27 USD