Trading robot in MQL4 based on Open & Close and some other pretty basic factors.

MQL4 Experts Forex

Tâche terminée

Temps d'exécution 2 jours
Commentaires de l'employé
100% idea customer. thank you so much.
Commentaires du client
Very pleasant experience; work was done exactly according to specifications. Had to negotiate for a couple of changes to my specification, and this was a very smooth and reasonable process.

Spécifications

1) Idea

Based on all of the most recent x (e.g. 30) number of bars, (x = input variable)

Calculate at start of each bar:

 MaxOpenClose = the maximum of ( maximum of Open, maximum of Close) of all of most recent x bars 

 MinOpenClose =  the minimum of ( minimum of Open, minimum of Close)  of all of most recent x bars

 Level_1 = ( MaxOpenClose - MinOpenClose ) *  Ratio_1            

 Level_2 =   ( MaxOpenClose - MinOpenClose ) *  Ratio_2           

LevelCounter_1 = Number of times, in the most recent x number of bars, the High was >= Level_1 

LevelCounter_2 = Number of times, in the most recent x number of bars, the Low was <= Level_2

Trading is done based on the ratio of  LevelCounter_1 and  LevelCounter_2


LevelCounter_1  and LevelCounter_2 will always be >=  0 and <= x 

Output all these values to the journal window with each bar.

"most recent" excludes the current "in progress" bar


2) Trading signals:

if   LevelCounter_1 >  LevelCounter_2 ; buy signal

if   LevelCounter_1  <=  LevelCounter_2 ; sell signal


3) Positions are opened at the market price; subject to that there are no more open positions as specified by the   MaxOpenBuyOrders  input parameter for Buys 

and  MaxOpenSellOrders  for sell orders.

A buy position is opened if   LevelCounter_1 >  LevelCounter_2 for lot size =   LotSize (  LotSize = input parameter)

A sell position is opened if   LevelCounter_1  <  LevelCounter_2  for lot size =   LotSize (  LotSize = input parameter)


If the order cannot be executed successfully for whatever reason, try again in each tick, for the next 10 ticks, to do again.


4) Additional filter for position opened

Minimum average volume of last x number of bars >= MinAvgVolumeToOpen  (input parameter)


5) Positions are closed when

a)  StopLoss (input parameter) is reached.

or b) ProfitTarget (input parameter) is reached.


6) Position management

TrailingStop is used; while the price move in the profit direction, the stop loss should trail at the StopLoss (input parameter) value.

The Stop Loss is never moved towards the loss direction. 





The robot should work on any forex pair, any time frame.


Inputs:

 x                      // Number of most recent bars to take into consideration,e.g. 10

Ratio_1            // Used in calculation

Ratio_2           // Used in calculation 

MaxOpenBuyOrders  // e.g.  5

MaxOpenSellOrders  // e.g.  5

LotSize    //  e.g.  0.01

StopLoss // e.g.  30 

ProfitTarget // e.g.  100

MinAvgVolumeToOpen // e.g.  40


Répondu

1
Développeur 1
Évaluation
(55)
Projets
96
40%
Arbitrage
13
38% / 62%
En retard
25
26%
Gratuit
2
Développeur 2
Évaluation
(65)
Projets
71
30%
Arbitrage
8
0% / 88%
En retard
5
7%
Gratuit
3
Développeur 3
Évaluation
(169)
Projets
204
30%
Arbitrage
25
40% / 44%
En retard
12
6%
Gratuit
4
Développeur 4
Évaluation
(19)
Projets
35
26%
Arbitrage
10
30% / 70%
En retard
5
14%
Gratuit
Commandes similaires
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
Fintech robots 30+ USD
Specification I need a grid ea that puts buy stops and sell stops on the chart (only stops no limits). See image Example: if the price moves up filling the buy stops. The ea should place new sell stops below the price for the set parameters. And vice versa. Also if price moves up it should place new buy stops above the last buy stop. So if the parameter is set to 50 buy stops. There should always be 50 buy stops in
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
Hello, In need an expert advisor that can copy my CFD (GBPUSD) into Futures 6B, along with AUDUSD. & that whenever I close the position, it closes it aswell. Also if there is limited broker API access, I don't mind getting a broker recommendation
I need an EA that opens trades according to the crossover of Moving Averages. The EA is based on two Moving Averages MA1 and MA2: For every new candle the EA attempts to open a new position, according to the MA crossover direction: If MA1>MA2, open a BUY position If MA1<MA2, open a SELL position There is a limit for current open trades which is also set in the settings. If the number of open trades reaches that
Good day to you sir. Please can you help me with converting an options trading platform to MT4? I am talking about Pocket Options OTC Markets. Please kindly read the WORD DOCUMENT attached to this chat below! Tbh I want a 100% OTC accuracy. I thought of the possibility of converting a chart beyond the live display/execution? Is it possible to display a market on MT4 2 to 3 minutes faster than the live charts? I mean
the code wasn't mine, i have got it somewhere on the web, but i like the performance of the EA, so i want to use it on mt5 platform. the given code based on price movements with ladder entry concept
Preciso de um EA, que faça o fecho automático de operações abertas no final da sessão e nas notícias de alto impacto. Um EA simples com apenas 1 função. Fecho das operações abertas
I want to make AI based on Attached Picture Swing High low. If you have experience can share demo first. Stop loss, take profit, trailing , break even ,DD etc. also amiable
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! Thanks in advance."

Informations sur le projet

Budget
40+ USD
Pour le développeur
36 USD
Délais
à 2 jour(s)