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

仕事が完了した

実行時間2 日
開発者からのフィードバック
100% idea customer. thank you so much.
依頼者からのフィードバック
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.

指定

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


応答済み

1
開発者 1
評価
(55)
プロジェクト
96
40%
仲裁
13
38% / 62%
期限切れ
25
26%
2
開発者 2
評価
(65)
プロジェクト
71
30%
仲裁
8
0% / 88%
期限切れ
5
7%
3
開発者 3
評価
(169)
プロジェクト
204
30%
仲裁
25
40% / 44%
期限切れ
12
6%
4
開発者 4
評価
(19)
プロジェクト
35
26%
仲裁
10
30% / 70%
期限切れ
5
14%
類似した注文
Looking for an EA which can produce less than 5% drawdown. Also profit factor above 1.5 (preferably 2.0) Please give me proper explanation how your EA works too Has anyone programmed it before? is it limited to forex only
I want to make a new dashboard using 3 common indicators and the ADX indicator , which you must supply I have a MA dash which you can strip & reuse if it helps you I tried to cover all questions in the attached but i'm sure there'll be more
I want the script in mql5 language for my martingale strategy. The script should open trades in both directions buy and sell and if any trade closes in loss then open new trade in that direction by using the next volume and when trade closes in profit then reset the volume to first from volume list and also maximum consecutive losses limit will apply. If trades closes consecutively in losses and hits the limit then
I installed the E.A. into the Experts folder in MT4. When I double click on it nothing happens. When I right click and "attach to chart" nothing happens. The E.A. is not grayed out, it simply will not attach. Any help would be greatly Appreciated
hi hi there i have an strategy on tradingview and i want to automate it like metatrader EA so i want the strategy to open and close trade automaticlly on tradingview
We are looking for an experienced Expert Advisor Developer who can build a customized MT5 Expert Advisor for us. The Expert Advisor would use two built-in indicators as entry/exit signals and our own risk management strategy with customizable inputs. The goal is to create a reliable and efficient trading tool that can automate our trading process on the MT5 platform. Skills required: - Strong understanding of
The wiper 35 - 48 USD
a ll traders want to find market behavior patterns, which could help identify favorable moments for performing trading operations. They also want to eliminate randomness and influence of external factors, such as rumors, news releases, fatigue, and so on. Traders monitor charts and may formulate some formal rules, which enable objective analysis of price or tick charts. Technical indicators can facilitate such
I need EA that works on MT5 to be able to do the following: - Can recognize Support/Resistance area - Can recognize VWAP direction. - Can recognize RSI. - Can recognize Double Top/bottom, Bullish/Bearish hammer candle, Bullish/bearish engulfing candle. - Ability to set Stoploss below/above support/resistance, but risk must be fixed at a certain price. - Stoploss
I want a program that will help calculate and enter the market on full margin for me. I just need to put in the price for entry, Stop loss and TP then it will calculate the lot sizes for entering the trade on full margin on Mt5
I am seeking a highly skilled and experienced developer to assist with an important project. I need a development of an automated trading bot for NinjaTrader, utilizing a 4 SMA (Simple Moving Average) crossing strategy, with additional custom diversions for trade entries. The bot needs to be based on a strategy involving the crossing of four different SMAs. The exact periods for these SMAs and the conditions for

プロジェクト情報

予算
40+ USD
開発者用
36 USD
締め切り
最高 2 日