Modification to One Candle EA

MQL4 Experts Scripts

Job finished

Execution time 10 days
Feedback from employee
Jack is a very experienced man! Working with him is a pleasure!
Feedback from customer
Great to work with, very good job. Thank you so much.

Specification

I would like to add to my EA a module that is kind off martingale strategy. 
My EA gives a signal to buy or to sell and has everything regarding SL TP Trailing. 
The EA is able to add extra orders to average the price value, when the price goes against the direction. 
The extra orders are based on the Fibonacci levels.

Example: 
1. The EA has generated a MASTER sell order (the main order) the price goes against the direction. 
StopLoss is 100 Take Profit is 100 but Trailing Stop Starts at 5 pips and Trailing Stop Pips is 1. 
It means when the price is +5 pips the trailing stop pips is on the level of +4 (1 pip behind the profit)
Very important to pay attention to this difference 5 - 1 = 4 

2. The EA starts to open extra orders on the levels of Fibonacci.

3. All extra orders can have the same value or have different values. 
If the Master order is $1, the next extra order on the level of 
38.2    multiply this level by 1  
50.0   multiply this level by 2 
61.8   multiply this level by 3 
78.6   multiply this level by 4 
100.0  multiply this level by 5 
127.2   multiply this level by 6 

161.8   multiply this level by 7

200     multiply this level by 8 

The distance between the orders will be different, because the Fibonacci levels are not the same, 
but for this example I am going to use 10 pips distance from each Fibonacci level for easy calculation. 

4. The EA opens EXTRA 2 orders.
1st on the level of 38.2  with value $5
2nd on the level of 50.0 with value $10

Now we have 3 orders. 
Master $2.50
1st Extra order   $5

2nd Extra Order $10

Each order is 10 pips away. 

Master order is 20 pips away from break even $2.50 x 20 = -$50
1st Extra order is 10 pips away from break even $5 x 10 = -$50
2nd Extra Order is just open ($10 value) 0 (minus spread) 
Total value not calculating the spread is minus $-100

5. The EA should calculate the minimum Take Profit - which is 5 - 1 = 4 pips 
Because the value of the Master Order was $2.50 x 4 = $10

This is the target for all 3 order to make = $10

When the Master order will reach about  minus 13.7 pips  the value will be 13.7 x $2.50 = -$34.25

1st Extra order will reach minus -3.7 pips the value will be -3.7 x $5 = -$18.50  

2nd Extra Order will reach plus 6.3 pips the value will be 6.3 x $10 = 63

The average price will be $10.25 profit on all orders.

Sorry it is not exact calculation, but it give you an idea.  

-----------------------------------------

6. Now the EA should add Penalty Pips. 
Remember that total value of all orders is $2.50 +$5 + $10 = $17.50
It means that for every open order, the EA will ADD extra pips "penalty" (for the extra stress of the trader :)  )
In this example we have 2 extra orders PLUS the master order = 3 orders in total. 

The have to add function to add the Penalty Pips.

If if the value of penalty pips is 1  in this example the EA will add 3 orders x 1 = 3 pips extra 

(if the penalty pips value is 0.5 it means the EA should add only 1.5 pips penalty.    3 x 0.5 =1.5  )
We calculated that Value of all 3 orders in total is $17.50 per pip. 

Look at the point 5 about the levels in order to average the price level. 
Now the EA is adding 3 extra pips to the level where all orders already have $10

When the Master order will reach -10.7 pips (-13.7 + 3 pips penalty) x $2.50 = -$26.75 level 
1st Extra order will reach -0.7 pip (-3.7 +3 pips penalty) x $5 = -$3.50 
2nd Extra Order will reach 9.3 pips (6.3 +3 penalty) x 10 = $93
We will have $62.75 profit on all orders.
3 pips penalty  x $17.5 = $52.50   plus the original $10 (minimum profit) = $62.50  (about)
(Picture 222)

7. When the EA will reach the $62.50 profit on all orders, it should start trailing on all orders.  
In my EA there is a place called "Use Extra Pips" when is True the EA should trail 1 or 2 pips behind the secured $62.50 profit on all orders. 
If by any change the price action will go in the correct direction by 5 pips, we should have 
this result: 

$62.50  + (5 x $17.50)  = $150. 

 

8. When extra orders are added, the EA should close ALL orders at ONCE with the profit or with the StopLoss.
If the StopLoss is 100 it means that ALL orders will close with loss when the Master order reaches 100 pips StopLoss. 

Picture 333. 

9. The the EA there is also Daily Profit Target.

If this function is set up on 20. It means that the EA will stop placing new orders after the 20 pips profit.  

10. The EA has time 4 time tables to trade. 

If the time is from 00:00 to 13:00 (my broker time) and second time is from 16:00 to 23:59:59

The EA will not open Master Orders during the 13:00 to 16:00 , BUT if the EA has open a Master Order before 13:00 and there is a need to open Extra orders,

the EA should allow to open Extra Orders Only during the 13:00 -16:00 time in order to average the price.

11. The should work with Mini accounts as will normal Accounts. The EA has to calculate the values on Fibo levels even when not every level has assigned value.

Example:

38.2    multiply this level by 0

50.0   multiply this level by 2 

61.8   multiply this level by 0

78.6   multiply this level by 0

100.0  multiply this level by 4

127.2   multiply this level by 6

161.8   multiply this level by 0

200     multiply this level by 8 

 If you are able to complete this job, please contact me. Thank you 

 

Files:

ZIP
111.zip
280.9 Kb
ZIP
1_candle.zip
305.8 Kb

Responded

1
Developer 1
Rating
(98)
Projects
134
64%
Arbitration
6
17% / 67%
Overdue
32
24%
Free
2
Developer 2
Rating
(365)
Projects
507
40%
Arbitration
159
17% / 74%
Overdue
99
20%
Loaded
3
Developer 3
Rating
(1)
Projects
1
0%
Arbitration
0
Overdue
0
Free
4
Developer 4
Rating
(69)
Projects
146
34%
Arbitration
13
8% / 62%
Overdue
26
18%
Free
Published: 6 codes
5
Developer 5
Rating
(40)
Projects
58
22%
Arbitration
10
10% / 70%
Overdue
13
22%
Free
6
Developer 6
Rating
(64)
Projects
145
46%
Arbitration
21
38% / 24%
Overdue
32
22%
Free
Similar orders
Hello Developer, I trade ONLY synthetics, ONLY Boom and Crash. No Forex, No XAUUSD, No EURUSD. EA Name: KEITY ROYALTY MARKETS: Only Deriv Boom and Crash. Total 20 markets: Boom 50, 99, 100, 150, 200, 300, 500, 600, 900, 1000 and Crash 50, 99, 100, 150, 200, 300, 500, 600, 900, 1000. Scan all 20 from ONE chart. MAIN LOGIC: 1. After a spike, counter goes to 0. EA must count ticks from history. On start, look back last
I am looking for an experienced MQL5 developer for the first milestone of a larger MetaTrader 5 project: a multi-symbol, multi-timeframe signal scanner with alerts. This milestone covers indicator integration only. There is no order placement or trade management at any stage. Scope of this milestone Read outputs from three custom indicators (provided as compiled files after selection and NDA) reliably via iCustom and
RA_BOT 2.0 36+ USD
//@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 >
Andrew 50 - 200 USD
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
Metafix 50 - 200 USD
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
Salman serhal 30 - 100 USD
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

Project information

Budget
50- USD
Deadline
to 6 day(s)