I would like to build an EA with Martingale system.
Here is the description:
How to decide the direction of the entry?
If we intend to start trading at 8:00 the EA should look how the previous candle closed the price.
If the closed candle was a bullish candle, open BUY position. If it was Doji (+), wait for next candle.
Time Zone
Start at 08:00
End at 23:00
New Cycle - True
Take Profit - always Trailing Stop
10 points - Step
10 points - Stop
100 points - Trailing Start
Lots Digits 2.0
When the first transaction will close with the profit, EA should wait for the new candle to open.
In this example, it will be at 10:00
- Direction? BUY, because the previous candle closed as a bullish candle.
- Minimum Step 50 points
- the 1st martingale order - open when the new candle will open the price.
- EA must check the minimum Step between the orders.
- If it is 50 points even = or more > open next BUY order.
- the size? 50 % bigger than the previous order. (x 1.5)
When the 1st Martingale order was executed, the EA should show immediately the BreakEven line.
If the Trailing Start is set up for 100 points,
the EA should calculate as follow.
FROM the Break-Even line 100 points, Start Trailing.
with 10 points Step and 10 points Stop.
If the two orders did NOT close the CYCLE with profit, EA will open next BUY order
It will be again 1.5 X (value) bigger than the previous order.
If the broker does not allow to open 0.015, the order should be 0.02
Therefore the calculation should be - Lots Digits 2.0
In our example, we will use 0.1 for easy calculation.
Again, ONLY when the previous candle closes the price in the minimum STEP distance of 50 points or more. In this example, it is 110 points differences.
In this situation, the BreakEven line should change accordingly.
Because ALL 3 orders did not close the CYCLE with profit, the EA should open another BUY order.
The distance must be measured by the EA, minimum 50 points or more.
In this example, it is 125 points from the previous order.
Because ALL 4 orders did not close the CYCLE with profit, the EA should open another BUY order, with the value 50% bigger than the previous size.
The distance must be measured by the EA, minimum 50 points or more.
In this example, it is 57 points from the previous order.
The BreakEven Line has to change the level accordingly.
So far the size of the orders should be :
0.1 next (0.1 x 1.5)
0.15 (0.15 x 1.5) 0.225
0.23 (0.225 x 1.5) 0.3375
0.34 (0.3375 x 1.5) 0.50625
0.50 (0.50625 x 1.5) 0.759375
0.76
When all 5 orders will reach the BE line – the EA should Start Trailing at 100 points from the BE line.
10 points Step, and 10 points Stop.
The cycle will be closed when ALL orders will close at once at the same level.
In the variable there should be an option:
New Cycle – True / False
If it is True, when the cycle will close all the open orders with Profit, the new order should be executed when the new candle will open.
Direction – if the previous candle was Bearish, SELL order should start the new cycle.
If the previous candle was Bullish, BUY order should start the new cycle.
If the New Cycle – True / False is changed to “False”, the EA should continue the “old” CYCLE – UNTIL it will close it with profit, and in this situation, it will NOT start a new cycle.
The EA should have protection, that when the MT4 will restart, the EA should continue to monitor all open orders.
If the orders were open during the weekend, the EA should continue the cycle when the market will open on Monday.
In variables, there should be an option to Trade on Friday – True/False
If False, the EA should not start a new cycle on Friday and can finish the cycle or continue the cycle on Friday, BUY not to start a new cycle on Friday.
These are the basic functions of this EA.
Start Trading at 01:00
End Trading at 23:00 (I just need one-time table)
New Cycle True/False
Trading on Friday – True/False
Magic number xxxxxxx
Minimum distance 50 points
Trailing Starts 100 points
Trailing Step 10 points
Trailing Stop 10 points
Lot exponent 1.5
Lots Digits 2.0
First Lot size - 0.01
----------------------
I would like to have the CLOSE ALL button on the chart, to close manually all trades at once,
And text with information Total Profit on all open trades (or loss) and how many orders are open etc.
Leverage 1:400
Balance 3000
Margin 2440
Profit/Loss -560 or +120
Source Code in English only.
Ordini simili
//@version=4 study(title="UT Bot Alerts", overlay = true) // Inputs a = input(1, title = "Key Vaule. 'This changes the sensitivity'") c = input(10, title = "ATR Period") h = input(false, title = "Signals from Heikin Ashi Candles") xATR = atr(c) nLoss = a * xATR src = h ? security(heikinashi(syminfo.tickerid), timeframe.period, close, lookahead = false) : close xATRTrailingStop = 0.0 xATRTrailingStop := iff(src >
We’re building our team for an upcoming crypto project and are looking for skilled professionals to help us move development forward. We’re especially interested in developers experienced with React.js and Node.js, with Web3 knowledge being a strong advantage. We plan to launch the MVP by the mid of Dec and complete the project by Christmas. Our budget is $20–$30 per hour, depending on experience and skill level
Hello, I am from Tanzania. I am looking for a professional MQL5 programmer from Tanzania who can help me develop and improve my automated MT5 trading robot. The project is called SMC XAVAGE AI, and it trades XAUUSD (Gold). I would like to discuss the project with you. Are you based in Tanzania? Would it be possible to arrange a meeting or a call? Thank you
Here is a professional specification you can send directly to your developer. # Project Requirements Specification: MetaTrader 5 Trading Robot Development ### 1. Project Overview I want to develop an automated Forex trading robot (Expert Advisor) for MetaTrader 5 (MT5). The robot should analyse the financial markets, identify trading opportunities, and execute trades automatically based on predefined strategies. ###
1. Platform: MT4 The EA required is not linked, neither depending on trading strategy nor trading signals nor indicators. 2. Initial order is a pending order (buy stop/ sell stop) and it is created manually. It is open for a specified symbol (pair) at a specified price with a specified S/L 3. Example: buy stop 0.1 lot GBPUSD @ 1.3085 WITH S/L @1.3075 Once target price is reached, pending order will
I am looking for an experienced trading software developer interested in building a long-term working relationship. Im a professional Trader, Coach and Mentor, I work with traders and Student who require customized trading solutions, including automated trading bots, Expert Advisors, custom indicators, trading strategies and other algorithmic trading tools. I am looking for a technically skilled developer who can
MT5 ICT XAUUSD Sell-Only Trading Robot with Fibonacci Confirmation I am looking for an experienced MQL5 developer to create a custom Expert Advisor (EA) for MetaTrader 5, specifically for trading Gold (XAUUSD). 1. Trading Strategy The robot must use the ICT trading methodology and focus on SELL trades only. The strategy should include: * Identify important resistance and premium zones. * Use Fibonacci retracement
Objective: I am looking for an experienced MQL5 quantitative developer to code an Expert Advisor (EA) from scratch based on a fully defined, rule-based strategy, and then rigorously validate, optimize, and stress-test it before I deploy it on a live VPS environment. Note: The exact mathematical rules, indicator names, and chart screenshots will be shared privately with shortlisted candidates. Strategy Overview
Hi Team We are looking to commission an Expert Advisor (EA) for MetaTrader 5 (MT5) to trade XAUUSD (Gold) . The EA requires tight risk management with a strict $2.00 Stop Loss and a $3.00 to $5.00 Take Profit target. The goal is to achieve a 60%+ Win Rate . Please propose or implement a strategy algorithm capable of meeting the following performance requirements on XAUUSD tick data: Target Performance: $\ge 60\%$ Win
a trading bot that can open and close trade by its self a stop loss of 1.2 lot size and good tp it should be able to learn trends and learn from its mistakes