EA based on MA, vWap, Reverse Fractals, Stochastic Momentum Index

Работа завершена

Время выполнения 14 дней

Техническое задание

Dear Experts, the goal is an EA that trades with Moving Average, vWap and/or Reverse Fractals and/or Stochastic Momentum Index.

1. Concept

The idea of the trading system is as follows: market entries are performed when MA crossover, vWap Crossover, SMI and Fractals give Buy/Sell signals in the current trend direction. Trend given by Moving Average (MA1) and/or 2 MA Crossover (M2,M3) and/or vWap.


2. Trend

Trend is determined based on 4 options. Ability to choose only one or a combination of two or more. 

Option 1 – no trend condition is applyed
Option 2 – current price is above/below MA1 (simple, exponential, smoothed or linear weighted)
Option 3 - crossover of 2 Moving Averages (simple, exponential, smoothed or linear weighted) with the specified period. If the current MA2 value is greater than MA3, the trend is seen as growing (MA2>MA3). Alternatively, if MA2 is below MA3, the trend is considered to be falling (MA2<MA3).
Option 4.XX – if XX=0 current price is above/below vWap line, is an up/down trend.
If XX>0 – use last XX candles instead of current price, if last XX candles didn´t crossover the line, is a up/down trend

3. Trading Signals

MA Trading Signals
Buy/Sell signals represented with arrows on main chart, with option of changing color and size (turn off arrows option)
• Buy signal: current price crosses the MA1 upwards (additional Option XX. 0 - whenever current price crossover above MA1 line is a Buy signal, XX - if last xx candles are above the MA1 line and none didn´t crossover, is a Buy signal)
• Sell signal: current price crosses the MA1 downwards (additional Option XX. 0 - whenever current price crossover below MA1 line is a Sell signal, XX - if last xx candles are below the MA1 line and none didn´t crossover, is a Sell signal)

2 MA Crossover Trading Signals
Buy/Sell signals represented with arrows on main chart, with option of changing color and size (turn off arrows option)
• Buy signal: the MA2 line crosses the MA3 upwards
• Sell signal: the MA2 line crosses the MA3 downwards

vWap Trading Signals
Buy/Sell signals represented with arrows on main chart, with option of changing color and size (turn off arrows option)
• Buy signal: current price crosses the vWap upwards (additional Option XX. 0 - whenever current price crossover above vWap line is a Buy signal, XX - if last xx candles are above the vWap line and none didn´t crossover, is a Buy signal)
• Sell signal: current price crosses the vWap downwards (additional Option XX. 0 - whenever current price crossover below vWap line is a Sell signal, XX - if last xx candles are below the vWap line and none didn´t crossover, is a Sell signal)

Stochastic Momentum Index (SMI) Trading Signals
Indicator in attachment have 2 colors that change whenever signal crossover line and if signal period is >1. 
Option 1 – All Buy/Sell signals whenever crossover happens in either direction, ignoring neutral zone (Neutral Zone = SMI level lines)
Option 2 – All Buy/Sell signals whenever crossover happens in either direction, but below/above neutral zone. Whenever signal reenter neutral zone it resets and restart.
Option 3 – Only first Buy/Sell signal below/above neutral zone. Whenever signal reenter neutral zone it resets and restart.
Option 4 - All Sell signals above neutral zone but ignore all Buy signals above neutral zone. All Buy signals below neutral zone but ignore all Sell signals below neutral zone. Whenever signal reenter neutral zone it resets and restart.

Reversal Fractals Trading Signals
Indicator in attachment already display arrows on main timeframe chart
• Bullish arrows are Buy signals
• Bearish arrows are Sell signals

4. Positions closed 
• Opposite signals: all Buy positions are closed at Sell signals, and all Sell positions are closed at Buy signals.
• Same signals: all Buy positions are closed at Buy signals, and all Sell positions are closed at Sell signals.
• All signals: whenever a Buy or Sell signal occurs all past orders are closed.
• TP/SL or Trailing Stop Loss
• Equity Percentage (0-100%)
• Manual Close: EA continues to operate if manual close happened
• Option to set limit of closing last order or close all orders
• Option of applying only one condition or combining 2 or more of the above conditions i.e. an order can be closed either by Opposite signals, TP/SL and Equity Percentage, closing the order from which condition happens first.

5. Positions are opened 
• All signals: whenever a Buy signal occurs open Buy order. Whenever a Sell signal occurs open Sell order
• Same signal Bypass: If last open order is Buy and current signal is a Buy or if last open order is Sell and current signal is a Sell, ignore and open only when opposite signal occurs
• Opposite signals: Buy positions are open at Sell signals, and Sell positions are open at Buy signals.
• TP: if TP occurs, open order on same direction
• TP: if TP occurs, open order on reverse direction
• SL or Trailing Stop Loss: if SL or trailing Stop Loss occurs open order in opposite direction.
• SL or Trailing Stop Loss: if SL or trailing Stop Loss occurs open order in same direction.
• Manual Open: EA continues to operate if manual order is placed
• Option to set limit or no limit of total of open orders
• Option of only one condition or combining 2 or more of the above conditions i.e. an order can be opened combining All signals, TP and SL, opening the order from which condition happens first

6. Pending Orders
• Option to cancel based on time limit (sec or min). Pending order to be accepted in time limit, or if time expires cancel current pending order
• Option to retry pending order based on time limit (sec or min). Pending order to be accepted in time limit, or if time expires retry same order at new current price
• Option to set limit, or no limit, of total number of pending orders
• Option to cancel all pending orders when cancelling one pending order
• All option above in single mode or combination of 2 conditions or more 

7. Additional filters/conditions for opening and/or closing positions:
In order to make myself understood, I considered that the EA have 2 Sets of Open/Close Conditions. One set of conditions to Close orders and other set of conditions to Open orders. 
In each Set we can choose how we apply the Trend condition (Option 0, Option 1, Option 2 or Option 3, or merging 2 or 3 conditions simultaneously). Example choosing option 1 and option 3, the Open Orders set must only open if the current price is both up/below the MA1 and up/below the vWap line). Each Trend Option must be available for Open set, Close Set, none or both sets.
In each set of Open or Close conditions we can choose which indicator trading signals applies. One example of a simple combination could be only SMI trading signals to be used for both Open and Close orders Sets. Other example of combination could be to apply only SMI to Open conditions from and apply only Reversal Fractals to Close conditions and turn off any trading signals from MA, 2MA Crossover and vWap either for Open or Close conditions.

8. Magic Number
Magic number to sell and buy orders so we load the EA in multiple charts without problems

9. Spread filter 
XX or 0
• 0 means disable
• EA will not open new positions if the spread is more than the value XX

10. Money management

Open Orders Conditions
Use fixed lots: True Or false 
Fixed Lot: 0.01 (by default)
Use Percent: True or false
Lot Risk %: 2 (by default)
Use Amount: True or false
Amount (currency same of MQL5):

Close Orders Conditions
Equity Profit Type: Amount Or percent
Profit Value: 
Equity Loss Type: Amount or percent
Loss Value: 
    Actions On Trigger
Disable Trading: True or False. if true send email and mobile notification and the EA does not take any new positions
Close All Open Positions: True or false. True by default
Delete All Pending Orders: True or False. True by default

10. Notifications
Email Notification: True or false // if false EA will not send notification alert
Mobile Notification: True or False // if false EA will not send notification alert
email and notification alert for trading signal produced: True or false 
email and notification alert for open order: True or false 
email and notification alert for closed order: True or false 
email and notification alert for cancelled pending order: True or false 
email and notification alert for trading signal from indicator produced: True or false 
email and notification alert for drawdown
• alert when DD reached: 00 (0 means disable) value is in %. Example if set to 20 EA will send alert when the total drawdown reach 20%.

11.GMT Settings
GMT OFFSET: True or false
Offset Value: 2 default
(if gmt offset = true, trading hour= trading hour + offset value. if GMT offset = false, trading hour= trading hour)
  
12. Trading Hours
Trading Hours: True or False. False by default. (if true it opens new positions only during the specified hours in the specified days, if false it open positions 24/24)
Example: Monday Trading Hours: 0,1,22,23 (separated by comma, in this case the EA trades on Monday from hour 0 to 1 and from 1 to 2 and from 22 to 23 and from 23 to 24, it opens positions only during these intervals)
Monday Trading Hours: 0,1,22,23
Tuesday Trading Hours: 0,1,22,23
Wednesday Trading Hours: 0,1,22,23
Thursday Trading Hours: 0,1,22,23 
Friday Trading Hours: 0,1,22,23 
Saturday Trading Hours: 0,1,22,23
Sunday Trading Hours: 0,1,22,23 
 
12. Friday Exit
Friday Exit: True or False (False by default)
a- Exit Hour: 22 by default
b- close All Open positions: True or False (true by default)
c- Delete All Pending Orders: True or False (true by default)
 
13. Display Panel
enable display panel : true/false // if false, EA will not display the panel on chart
display panel font size : xx // font size for text in display panel
display panel x,y : X,X // to place the position of the panel on the chart

display panel //this is the analytic that will load on the chart
Balance : xx
Equity : xx
current DD % : XX // display current drawdown in %
Total lots traded : xx // EA will sums up all lots size for all positions closed
Total buy lot open : xx // EA will only display total buy lots for open buy positions
Total sell lot open : xx // EA will only display total sell lots for open sell positions

14. Notes
Thanks in advance for any feedback/advice to make it run better or simpler if need be. 
EA must work on demo, real accounts and strategy tester for both.
EA must have a log to export trading history and/or errors, preferably to excel.
EA must have a debugger.
EA must be compatible for 4 and 5 decimal brokers and all timeframes.
I need the .mql5 source script file not only the .exe, 
N.B: Before confirming the reception and the completion of the job, one or many trading strategies will be inserted in the MQL5 source code for testing purposes, but the coder must provide the source code empty of any trading strategy.

Файлы:

TXT
MQL5_EA.txt
10.9 Kb

Откликнулись

1
Разработчик 1
Оценка
(34)
Проекты
48
21%
Арбитраж
6
83% / 17%
Просрочено
8
17%
Свободен
2
Разработчик 2
Оценка
(4)
Проекты
5
20%
Арбитраж
0
Просрочено
0
Свободен
3
Разработчик 3
Оценка
(3)
Проекты
3
0%
Арбитраж
2
50% / 50%
Просрочено
0
Свободен
4
Разработчик 4
Оценка
(343)
Проекты
362
70%
Арбитраж
4
100% / 0%
Просрочено
0
Загружен
5
Разработчик 5
Оценка
(266)
Проекты
540
50%
Арбитраж
55
40% / 36%
Просрочено
224
41%
Свободен
6
Разработчик 6
Оценка
(14)
Проекты
19
11%
Арбитраж
1
0% / 100%
Просрочено
5
26%
Свободен
7
Разработчик 7
Оценка
(71)
Проекты
97
43%
Арбитраж
2
50% / 0%
Просрочено
2
2%
Свободен
8
Разработчик 8
Оценка
(77)
Проекты
131
50%
Арбитраж
5
80% / 0%
Просрочено
6
5%
Свободен
9
Разработчик 9
Оценка
(42)
Проекты
88
14%
Арбитраж
30
30% / 53%
Просрочено
36
41%
Работает
Похожие заказы
This is not an EA that actually opens/closes trades. Instead this project involves creating a dashboard where the user can create a grid trade scenario with initial entry and scale trade pip distances, lot sizes for each trade, and draw down amount. It then calculates the break-even + profit level where all trades would close. For each new scale trade the BE+ point is recalculated which is then displayed on the
Hi I have the code in pinescript for an indicator that I need done in Ninja Trader, I wanted this indicator in NT bcs I chart in NT, and if the indicator could also have been an automated strategy even better. Please confirm that it will be an indicator and Automated Trading Strategy
Hello potential Freelancers I’m very new to trading so please bear with me as I try to explain what ‘m looking for. I'm currently getting signals ( XAUUSD )sent to me and I’m looking to find a person who can look at the data either watch account live, or I send the trade history. The bot my provider is using makes 100’s of trades a day and does very well on average. I’m also looking to have the following features
function (A) Add Transform combine the 4 Expert Advisors into just 1 Expert Advisor, maintaining the individuality of each one Leave in extern (false) or (true) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: function (B) Add the function (false) or (true) INTO THE EXISTING FUNCTION: TradeSize = 0.01; (true) Function (C)
Hi guys I would like to k ow if someone has experience with machine learning models? I would like to train a model to identify if there is a range market or trendy market based on several parameters like EMA and ATR for example. If we use for example a 20 and 50 EMA and we measure the distance between both lines the algo should oearn if the trend is strong or weak. If it‘s steong it keeps trending and if it‘s weak
Hello The EA will work on particular zone choose by the user and can mark it on any TF and with some rules can open trades and mange the trade by some unique rules. the EA need to check the difference by RSI as well and with some extra rules . developer should have good attitude and good communication (englsih) with high performence and knowledge with coding EA
Hello I need a very simple indicator This indicator should show the highest floating or history drawdown of the account It means that it can display the highest number that the account drawdown to be displayed on the chart in this format max drawdown account(xxxx$$) ...date(00/00/00)time:(00:00) max drawdown currency ..( currency name with max drwadown) . (xxxx$$) date(00/00/00)time:(00:00) thanks
Hello The EA will work on particular zone choose by the user and can mark it on any TF and with some rules can open trades and mange the trade by some unique rules. the EA need to check the difference by RSI as well and with some extra rules . developer should have good attitude and good communication (englsih) with high performence and knowledge with coding EA. THREE TYPES OF ENTRIES 1: AGGRESSIVE 2: DIVERGENCE 3
I want to create an EA that can take bids according to information of a logic I have developed to give indication of a BUY or SELL opportunity. The EA will then be able to activate the BUY at the lowest possible position once the indicator clears it for a BUY and take bid upwards or identify the highest point and clears it for a SELL and take bids downwards. As you can see from example of JULY 2024 data to see how
Hello, I‘m interested in an indicator to predict the next candles probability (bullish or bearish). But honestly I have no idea how to do this. Would be interested in your opinion how we can create such an indicator. Please let me know if you‘ve done similar work

Информация о проекте

Бюджет
87 - 123 USD
VAT (23%): 20.01 - 28.29 USD
Итого: 107.01 - 151.29 USD
Исполнителю
78.3 - 110.7 USD
Сроки выполнения
от 5 до 10 дн.