SMA Scalper EA

MQL4 Asesores Expertos

Tarea técnica

Scalp on any timeframe based on SMA with 3 level Martingale or 1 level Hedge as recovery options


Enter a trade when the price/candle close is at a certain distance range from a defined period SMA value.

If the trade SL is hit and recovery is on then based on the chosen method of recover. place orders.

News filter and weekend close options are also needed.


Details below.

https://docs.google.com/spreadsheets/d/1fdBvRkQEG1A1ftjw8Dzv8wiuY0rD05nHHXvX4rCojoM/edit?usp=sharing


More details

Basic Idea

Based on the option chosen (Price or Close) on every bar check for the entry criteria and open a Buy or a Sell trade.

Only enter trades if

*No trades are currently open on the pair and

*Not in News filter time frame

If last trade on the pair was closed due to SL

If  SL was hit for a Sell trade do not open a trade until the current candle closes below the SMA line

if SL was hit for a Buy trade then do not open a trade till the current candle closes above the SMA line

Buy Entry

 Price option

  If current price  < SMA and Distance between Current Price and SMA is between a user defined range provided in input settings (in Pips)

 Close Option

  If Close price  < SMA and Distance between Current Price and SMA is between a user defined range provided in input settings (in Pips)

 

Sell Entry

 Price option

  If current price  > SMA and Distance between Current Price and SMA is between a user defined range provided in input settings (in Pips)

 Close Option

  If Close price  > SMA and Distance between Current Price and SMA is between a user defined range provided in input settings (in Pips)

 

Closing/Exiting a Trade (2 options)

 -Price touches SMA

 -TP in pips

 

Recovery Option – True/False

Martin

 Can choose upto 3 levels

 Open Buy Limit for First order buy and Sell Limit for First order Sell

 User will define when the first recovery order will be placed (in Pips away from entry of the first order)

 User will define the SL for each recovery Level

 User will define final TP as user input.

 User will input Mutliplication factor for lot sizes for each level (default 2)

 Eg. For 2 it will be Level 1-2Xfirst order lot, Level2- 4XFirst order lot size, Level 3- 8X first order lot size

 TP for each level

Level 1 – TP in user setting + Spread + SL for first order

Level 2 - TP in user setting + Spread + SL for first order + SL Recovery(lot size for first order/lot size for level 1)

Level 3 TP in user setting + Spread + SL for first order + SL Recovery(lot size for first order/lot size for level 1) + SL Recovery(lot size for first order/lot size for level 2)

 

Hedge

 (based on recovery settings) Pips away from entry of the first order open a trade in the opposite direction @ twice the lot size of the first order with user enter SL and TP

TP for the hedge should be calculated based on

 Recovery TP in the settings + (stoploss of the first order/2) + slippage

 

SL (for first order not recovery)

- Fixed Pips

 

Lot sizing

 - Risk % of account balance (calculate lot size with the percentage and default to 0.01 (0.02 if partial close is enabled)

  Calculation for lot size

  No recovery

   If Risk_Percent*Account_Balance/(100*SL_Pips*Pip_Value of the Pair in Account_Currency)> 0.01 then  that calculated value else 0.01

  With Recovery

   If Risk_Percent*Account_Balance/(100*Max_SL*Pip_Value of the Pair in Account_Currency)> 0.01 then that value else 0.01

  Max_SL by levels for recovery

Level 1

First order Stop Loss + ((level1 lot size/fisrt order lot size)*SL_Recovery)

Level 2

  First order Stop Loss + ((level1 lot size/fisrt order lot size)*SL_Recovery)+((level2 lot size/fisrt order lot size)*SL_Recovery)

Level 3

  First order Stop Loss + ((level1 lot size/fisrt order lot size)*SL_Recovery)+((level2 lot size/fisrt order lot size)*SL_Recovery)+((level3 lot size/fisrt order lot size)*SL_Recovery)

 - Fixed Lot size

Break Even - Break even type (pips or % of account profit)  - value 0 in both values below will disable the options

 - Break Even Pips (at what Pips to move SL to Break Even)

 - Lock in pips for Break Even (to cover for commission and swap ) user defined pip count

 

News Filter (disable making new entries during news) - True or False

if True

 - Close Positions in Profit (if in Min Profit or in Pips provided in user setting) - True or False

     - Min Profit to close positons (value in pips)

 - Move SL to Max SL (Move SL of losing positons to a MaxSL value if the current stop loss is greate than Max SL value - True/False

   - Max SL

 - do not enter any new trades during news

 - Time before news (in minutes) - not to trade

 - Time after news (in minutes)  - not to trade

 - Level of news (High, Med, Low) a lower level should include all above levels. eg, if Med is chosen then High and Med type of news should be considered to perform step for news.


Friday Close Yes/No "Close all profit positions on Friday and move SL to set level for losing trades(like the news one)"

TP_Open_FC "in Pips Minimum profit Pip to close postions before Friday EOD"

Max_SL_Level_FC 10 "Max stop loss level from current price before Friday EOD SL for losing trades should be move to 10 if the absolute value of (current price-SL) is > 10 pips"

Other Setting

 - Account Currency (Should work for USD, CAD accounts) - this setting will help in calculating Lot size based on risk

 - Pair Type (Should work for 3 or 5 digit , 4 digit, Gold, Silver)

 - Hard Stop % - (% of account balance to stop EA from wiping out the account )

 

Display on Chart

EA Name - SMA SScalp EA

- Account Equity in $ (account currency)

- Account Balance  in $ (account currency)

- Current FL Profit/Loss in $ (account currency)

- Current Stop Loss - in $ (account currency)

- Current Stop Loss - In Pips



Han respondido

1
Desarrollador 1
Evaluación
(599)
Proyectos
932
46%
Arbitraje
31
39% / 29%
Caducado
93
10%
Libre
2
Desarrollador 2
Evaluación
(33)
Proyectos
35
40%
Arbitraje
11
9% / 91%
Caducado
4
11%
Libre
3
Desarrollador 3
Evaluación
(35)
Proyectos
40
23%
Arbitraje
10
10% / 50%
Caducado
16
40%
Libre
4
Desarrollador 4
Evaluación
(129)
Proyectos
208
54%
Arbitraje
21
24% / 52%
Caducado
64
31%
Libre
5
Desarrollador 5
Evaluación
(53)
Proyectos
79
18%
Arbitraje
13
15% / 54%
Caducado
5
6%
Libre
6
Desarrollador 6
Evaluación
(89)
Proyectos
137
24%
Arbitraje
35
9% / 40%
Caducado
52
38%
Libre
7
Desarrollador 7
Evaluación
(221)
Proyectos
369
66%
Arbitraje
10
50% / 0%
Caducado
46
12%
Libre
Solicitudes similares
I have a indicator, mql file. The signals are seen below on a EURNZD H1 chart. Very important to get accurate entries. The signal to trade is the first tic after the the indicator signal paints. I've tried to demonstrate that below. Other than that the EA will have a lot size escalation, an on-screen pip counter, a button to stop taking new trades, SL/TP, and magic number. I would like the indicator to be within the
I would like to create an EA based on the Shved Supply and Demand indicator. you can find the Shved Supply and Demand v1.7 indicator in the following link https://www.mql5.com/en/code/29395 NB: Checks the trading robot must pass before publication in the Market ( https://www.mql5.com/en/articles/2555 ) MQ5 file to be provided
Im looking for an coder to code an EA: Trade management 1. opening trades according to the indicator 2. trades settings to choose from like: open all trades according to the signal open only trade 1,2,3 or 4 % per trade ( example 50/30/20 of the lot settings, with 4 trades it would be for example 50/30/10/10) 3. SL/Trailing settings: Move SL to entry after hitting TP1/TP2 or TP3 moving SL by % keep the original SL
Hi I'm looking to have 2 of my pinescript strategies converted to MQL5 and was wondering if you could first give me a quote for the more simple strategy and then for both the simple and complex strategy together. The simple strategy is a MACD crossover type thing that uses a special EMA script that filters out some ranging price action and also fractal candles for the stop loss. The second strategy is market
I want grate robot for making profits that know when to start a good trade and close a trade and must be active all time to avoid lost of money
I have developed a very strong TradingView strategy in Pine Script but unfortunately, a third-party connector is requiired and in my opinion, I want a more direct connection. I am not brilliant at coding, but I have coded the majority of the MT5 code and I would like you to make sure that the MT5 code matches my TradingView script and executes the same way as the TradingView script that I will provide if you are
Mbeje fx 50+ USD
I like to own my robot that why I want to build my own.i like to be a best to every robot ever in the life to be have more money
I need an MT5 EA that can do the following: I have to give the EA a price in advance, when the price is reached the EA has to automatically place a buy stop or sell stop order 0.5 pips below or above the price. Is this possible
Dr Pattern 30+ USD
good day i need the service of the seaso coder to help me fix my ea The Job required 1 knowledge of Mt4 and Mt5 indicator coding 2. Telegram code 3. ability to code indicator to work on multiple Time frame combine to trade 4 Ability to Join two or three indicator on same ir different time frame if you have these skill please let chart i will discuss the details of the Job inside to you The required day including
Good day, I want someone to help me create a universal news filter with on/off switch, with start and end settings, and drawdown control with magic number of EAs, etc. Thanks

Información sobre el proyecto

Presupuesto
40 - 50 USD
Para el ejecutor
36 - 45 USD
Plazo límite de ejecución
de 3 a 5 día(s)