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

MQL4 Uzman Danışmanlar Forex

İş tamamlandı

Tamamlanma süresi: 2 gün
Geliştirici tarafından geri bildirim
100% idea customer. thank you so much.
Müşteri tarafından geri bildirim
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.

İş Gereklilikleri

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


Yanıtlandı

1
Geliştirici 1
Derecelendirme
(55)
Projeler
96
40%
Arabuluculuk
13
38% / 62%
Süresi dolmuş
25
26%
Serbest
2
Geliştirici 2
Derecelendirme
(65)
Projeler
71
30%
Arabuluculuk
8
0% / 88%
Süresi dolmuş
5
7%
Serbest
3
Geliştirici 3
Derecelendirme
(169)
Projeler
204
30%
Arabuluculuk
25
40% / 44%
Süresi dolmuş
12
6%
Serbest
4
Geliştirici 4
Derecelendirme
(19)
Projeler
35
26%
Arabuluculuk
10
30% / 70%
Süresi dolmuş
5
14%
Serbest
Benzer siparişler
I want to decompile an ea file and get the source code, i need it really quick as fast as possible. the file must be delivered alongside the source code
Dear Developers, I would have a very simple request. I have a ML model developed in Python for EURUSD daily trading. I would like to backtest it in Meta Trader 5 using the Strategy Tester tool. For that I would need an Expert Advisor program. The input would be a csv file that contains two columns: - dates (going back for a few years on a daily basis) - trading signal (it can have only 2 values, either 1: Buy, or -1
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
Hi I have the code in pinescript for an indicator that I need done in Ninja Trader 1. The Trading View indicator code needs to be converted into and adapted for Ninja Trader 8 2. An indicator and Automated Trading Strategy needs to be developed. 3. Any parts of the Trading View Indicator that can't be replicated needs to be discussed with me and agreed before excluding. (there should not be any) 4. Trailing stop and
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
1. The Trading View indicator code needs to be converted into and adapted for Ninja Trader 8 2. An indicator and Automated Trading Strategy needs to be developed. 3. Any parts of the Trading View Indicator that can't be replicated needs to be discussed with me and agreed before excluding. (there should not be any) 4. Trailing stop and Trailing Draw Down options need to be implemented 5. Risk needs to be in % of
Create mt4 ea 50+ USD
To convert the provided MT4 indicator script into an Expert Advisor (EA) and implement prompt functionality for user input, we need to modify the code to handle external parameters and provide a user-friendly interface. Below is the EA code that incorporates prompts for user inputs
I WRITE a code i want to conect this for automatic trading through vps .and als advanced features for this code .i attached afile please watch .and give me perfect ea
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

Proje bilgisi

Bütçe
40+ USD
Geliştirici için
36 USD
Son teslim tarihi
to 2 gün