I would like to build an Expert Adviser for MT4 based on the Grid and Martingale system.
The EA should have the option to trade NON-STOP- True False.
When False it means it will trade only manually.
If I manually chose SELL and the trade will go against me, it will open extra trades in the same SELL direction with a specific distance and value.
All values must be in points and not in pips , 5 digits broker.
On the chart I would like to have 4 buttons (with the option to chose the place on the chart: Bottom right, bottom left, top right, top left)
BUY
SELL
Close ALL BUY
Close ALL SELL
And information text:
Profit / Loss
Open Orders:
Balance:
DD:
In variables:
Lots: 0.01
Take Profit Points 500 c
StopLoss True False
StopLoss Points 300
Breakeven False/True
Start Breakeven 250
Step Breakeven 100
Trailing False/True
Trailing Start 500
Trailing Stop 250
Trailing Step 100
Close at Profit ON/OFF - 2 options to choose from:
Close Currency or Pips
Close Profit $50
Close Pips 50
Type Trade : Normal, Martingale
Lot Multiplier 1.5
Distance Between Orders 300 (in points)
Magic Number
Automatic Mode ( On/Off) (if is it OFF, only manual trading will be accepted by clicking BUY or SELL)
If it is ON, the moment the EA is ON – AutoTrading, should start to trade.
Trading Mode: (to choose from 3 options.
- BUY Mode Only
- SELL Mode Only
- BUY and SELL
Start Trading: (to open first trade when it is Automatic Non stop)
Date and time
2016.10.25 (broker time) 13:45:00
End Trading: (this will be the time when the EA will not start a new Grid) only continue the old grid or grids if the option is for BUY and SELL. )
Date and time
2016.10.25 (broker time) 23:45:00
Number of positions 30 max
Grid Presets:
Initial Pip Distance 30
Lot multiply per positions 0.5
Manual Entered Grid
1 Lot multiplier 1
2 Lot Pip Distance 20
2 Lot multiplier 1
3 Lot Pip Distance 40
3 Lot multiplier 1.5
4 Lot Pip Distance 70
4 Lot multiplier 2
5 Lot Pip Distance 120
5 Lot multiplier 2.5
6 Lot Pip Distance 200
6 Lot multiplier 3
7 Lot Pip Distance 380
7 Lot multiplier 3.5
8 Lot Pip Distance 450
8 Lot multiplier 4
9 Lot Pip Distance 600
9 Lot multiplier 4.5
10 Lot Pip Distance 800
10 Lot multiplier 5
11 Lot Pip Distance 1000
11 Lot multiplier 5.5
12 Lot Pip Distance 1200
12 Lot multiplier 6
13 Lot Pip Distance 1400
13 Lot multiplier 6.5
14 Lot Pip Distance 1600
14 Lot multiplier 7
15 Lot Pip Distance 1800
15 Lot multiplier 7.5
16 Lot Pip Distance 2000
16 Lot multiplier 8
17 Lot Pip Distance 2200
17 Lot multiplier 8.5
18 Lot Pip Distance 2400
18 Lot multiplier 9
19 Lot Pip Distance 2600
19 Lot multiplier 9.5
20 Lot Pip Distance 2800
20 Lot multiplier 10
21 Lot Pip Distance 3000
21 Lot multiplier 10.5
…..
…..
Take Profit Factor
An example:
1st trade 0.1 is going in the wrong direction.
After 200 points there is another trade open with lot multiplier 1.5 also, = 0.15
When the price will go up about 80 points from the moment the second trade was open, the balance of these 2 trades will equal ZERO. It means this is the ZERO Level where the profit should be counted.
If the goal was to take 200 points profit on the first trade of 0.10 = it means the profit should be $2.00
I would like to add the function called Penalty Factor.
When the Penalty Factor value is 2 it means 20 points – 2 pips added after these 2 trades will reach $2.00 profit
In this situation we will have 0.1 + 0.15 = 0.25
0.25 x 2 (pips) = $0.50
It means when the price will reach $2.5 it will be the Take Profit target.
If we have 5 trades open:
0.1
0.15
0.2
0.25
0.3
Total value is 1.0
It means when the price will reach $2.00 – the first trade
But now we have in total 5 open trades (in one direction) , and the Penalty Factor is 2, it means 2 pips for each open trade = the summary should be calculated 2 x 5 = 10 pips Penalty
In this situation the EA should calculate Take Profit – after all trades will reach $2 level plus + 10 pips Penalty Factor -(10 pips x 1.0) $10 = $12
Regarding the pending order. I would like to have ONLY 1 pending order and not the whole grid exposed.
When there is the first trade on, there should be ONLY one pending order waiting for the action.
Attention!
Important - When the EA is on and the grid is in the action and there was a loss of internet connection, the EA should recognize the situation and continue to open next levels.
Source code in English only please.
EA protected by MT4 user account name and expiration time.
If you have any suggestions to improve it - please let me know.
類似した注文
I need a fully automated custom Expert Advisor for MetaTrader 5 (MQL5). The EA is intended for use on a The5ers $100,000 2-Step prop-firm account. IMPORTANT DELIVERY REQUIREMENT: I must receive the complete editable .mq5 source code as well as the compiled .ex5 file. Compiled-only delivery is NOT acceptable. The EA must be coded specifically for this project and must not copy trades, use external trading signals or
I've got a Pine Script from Trading View. I need help from a programmer who can help with optimising the strategy by 1) Adding a couple of further rules 2) Redesign the trading alert arrows & colours I need, please, a programmer who is 1) Good at Pine language 2) Has excellent after-job support (not for free though) 3) Possess the ability to work with others. 4) Able to deliver the job at the shortest possible time
I need an experienced TradingView Pine Script developer to build and test a custom intraday strategy for NQ/MNQ . I am not looking for a conversion . I need the strategy researched, developed, tested, and optimized based on my requirements. Requirements: NQ/MNQ intraday trading 5–15 minute charts New York session only Flat before market close Base logic using Zero Lag Signals , with additional filters if justified
Le robot devra : Respecter strictement les règles de risque des comptes FTMO : perte journalière maximale, perte maximale totale, taille des positions, etc. Intégrer un système de gestion du risque automatique. Être capable de gérer différents types de comptes et tailles de capital. Être basé sur ma stratégie et mes règles de trading que je fournirai au développeur. Être entièrement automatisé pour l’exécution des
I am looking for an experienced MQL5 developer to build a professional MT5 Expert Advisor specifically for XAUUSD (Gold) and other indices. I saw that XAUUSD is one of your primary areas of specialization, so I would like to discuss a custom EA with you. My priority is NOT extremely high returns. I want a robust EA designed for controlled risk and long-term survival. Requirements: • MT5 / MQL5 • XAUUSD, usoil,btc and
So, im a beginner and I'm pleading you to built me a bot that runs 24hrs and that can buy and sell at the same time, choose a better and profitable strategy. I will do anything thing it takes to get the bot. I hope you take my request into consideration
Je cherche un développeur MQL4 / MQL5 expérimenté pour créer un robot de trading automatique (Expert Advisor) performant et sécurisé. Validation de comptes Prop Firm capable de trader sur le forex et les matière première
I want you to create a strategy that fits for my funded account conditions like winrate of 60%+ with good risk reward ratio min 1:2 and max drawdown per day is 2% or 3% and overall should be less then 10% with less consecutive losses should be able to finish the funded stage in of phase 1 8% target and phase 2 of 10% target in a month with good number of trades in a month need journal of all the back tested data and
I need a simple Expert Advisor for MT5 that trades based on RSI overbought/oversold levels. - Entry: Buy when RSI(14) < 30, Sell when RSI(14) > 70 - Exit: Take Profit and Stop Loss as adjustable input parameters (default 50/25 pips) - Position sizing: Risk 1% of account balance per trade, auto-calculated from stop-loss distance - Timeframe and currency pair: adjustable inputs, not hardcoded - Should include basic
1. Trading Instruments: - The robot should trade exclusively on the following currency pairs: - NZD/CHF - NZD/USD - GBP/USD 2. Trading Style: - The robot should implement a day trading strategy, focusing on short-term trades. 3. Risk Management: - Maximum drawdown percentage: 10%. - Stop loss settings: Adjustable based on volatility (suggested default: 30 pips). - Take profit settings: Adjustable