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

Tarea técnica

Dear Experts, the goal is an EA that trades with Moving Average, vWap and Reverse Fractals 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 simplier 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, prefereably 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.

Archivos adjuntos:

TXT
MQL5_EA.txt
10.9 Kb

Han respondido

1
Desarrollador 1
Evaluación
(28)
Proyectos
47
23%
Arbitraje
13
31% / 15%
Caducado
12
26%
Libre
2
Desarrollador 2
Evaluación
(137)
Proyectos
167
35%
Arbitraje
11
91% / 0%
Caducado
0
Libre
3
Desarrollador 3
Evaluación
(217)
Proyectos
247
76%
Arbitraje
10
80% / 0%
Caducado
4
2%
Libre
4
Desarrollador 4
Evaluación
(568)
Proyectos
641
41%
Arbitraje
22
55% / 32%
Caducado
47
7%
Trabaja
5
Desarrollador 5
Evaluación
(267)
Proyectos
542
50%
Arbitraje
55
40% / 36%
Caducado
225
42%
Trabajando
6
Desarrollador 6
Evaluación
(67)
Proyectos
144
34%
Arbitraje
10
10% / 60%
Caducado
26
18%
Libre
Solicitudes similares
Hello, I’m looking for a TradingView indicator that fits my forex trading needs. If you can create or customize one for me, please reach out. I'd appreciate your help! Best regards
Hello, I’m looking for a TradingView indicator that fits my forex trading needs. If you can create or customize one for me, please reach out. I'd appreciate your help! Best regards ridynaty
Hello I would like to build a market screener of the assets according to my inputs. That mean the indicator gets activated in a chart but overwatches all assets which were added in the inputs. The screener should tell me if an asset is in a trend or mean reverting or consolidation market according to the timeframe in the inputs. I have no idea which indicators we need to use and I‘m curious which suggestions you
Create a Backtesting stimulator similar to ------ https://www.mql5.com/en/market/product/101346?source=External but showing BALANCE AND EQUITY on screen including open trades.. Must have experience with Backtesting softwares or can offer a solution to what am looking to fix.. IF you can develop I can go a bit above my budget
All details will be sent I need a trade manage with complex designs and active news designs. If you are ready to take it I will send a sample from MQL5 to make explain straight forward
I have a custom indicator and EA that both need to be converted from MT4 to MT5. They both use 3 separate indicators as resources, but I already have those in MT5 so they don't need to be converted. Please only apply if you are experienced in both MT4 and MT5 and are a full time developer who can dedicate the required time to complete this job on time. I've had very bad luck finding a professional experienced
Hey greetings My please to met you Am in need of a tradingview developer that can create alert for me based on a tradingview indicator kindly bid for this project if it is what you can do for me
Hello Devs. I need someone who can make for me full Working traders dashboard on MT5. Dashboard functions: Few TPs levels based on pips in profit and/or %. Fixed lot position calculator so i can put for example 40pips SL and ea will calculate Lot size based on my account size. Plus few other features. Need to looks professional not a Old bios program. Please only apply if You have experience in this
Develop a multi-strategies EA that makes entries based on selectable indicator-based criteria. Each can be toggled on/off, and trades can also be placed using a selectable combination of signals. Each trade position shall be entered on the bar and managed as a modified martingale. Position management will include partial close, variable grid increase as grid number increases, News stops, and a Dashboard for manual
I need an expert to help me convert chopzone traingview pinescript to mt4, I need an expert to get it done for me on between 1 to 2 days i hope this will be done by then, i will attach the file and my budget is $30 as of minimum here

Información sobre el proyecto

Presupuesto
70 - 100 USD
IVA (23%): 16.1 - 23 USD
Total: 86.1 - 123 USD
Para el ejecutor
63 - 90 USD
Plazo límite de ejecución
de 5 a 10 día(s)