An auto-optimization function required

指定

The important part of the project is the auto-optimization of the entry conditions using the System Quality Number Score as the optimization criteria.

I am not concerned about the profitability because the rule below are bogus.  The focus is on the auto-optimization.

You may use your own auto-optimization function or you can use the following link as an excellent starting point:

https://www.mql5.com/en/code/19392

 

I'd be grateful if the code can be sufficiently commented to allow me to navigate the code.  Where possible can the code be structured as per entry conditions and orders below.


Strategy Pseudo Code

 

  S&P 500

  Spread: 40.0, Min distance of stop from price: 40.0

--------------------------------------------------------------------

====================================================================

== Entry conditions - a and b denote unique parameters

====================================================================

LongEntryCondition = (((High(3a) < High(5a)) And (High(19a) < EMA(29a))) And ((High(19a) Crosses Below EMA(26a)) And (High(11a) > High(16a))))

ShortEntryCondition = (((Low(3b) > Low(5b)) And (Low(19b) > EMA(29b))) And ((Low(19b) Crosses Above EMA(26b)) And (Low(11b) < Low(16b))))

====================================================================

== Entry orders

====================================================================

-- Long entry

if LongEntryCondition is true {

   Reverse existing order (if any) and Buy on open at Market;

   Stop Loss = (6.23 * ATR(57)) pips;

   Profit Target = (20.280001 * ATR(46)) pips;

}

-- Short entry

if ShortEntryCondition is true {

   Reverse existing order (if any) and Sell on open at Market;

   Stop Loss = (6.23 * ATR(57)) pips;

   Profit Target = (20.280001 * ATR(46)) pips;

}

 

 

 

Optimization Criteria

Tharp’s SQN Score (System Quality Number Score)

SQN (System Quality Number) performance metrics developed by Van Tharp, it is the measure of the quality of a trading system.

You can find more at: http://www.vantharp.com/tharp-concepts/sqn.asp

Standard interpretation of SQN is:  

Score:   1.6 – 1.9  Below average, but trade-able 

Score:   2.0 – 2.4   

Average  Score:   2.5 – 2.9   

Good  Score:   3.0 – 5.0   

Excellent  Score:   5.1 – 6.9   

Superb  Score:   7.0

 

SQN Score (System Quality Number Score) just like in case of R-Expectancy, SQN doesn't consider the length of testing period and number of trades produced.

In fact it is more favorable for systems that produce more trades, without considering the length of the testing period. It is computed as: SQN * (averageTradesPerYear / 100)


応答済み

1
開発者 1
評価
(8)
プロジェクト
7
0%
仲裁
7
0% / 71%
期限切れ
2
29%
2
開発者 2
評価
(8)
プロジェクト
17
41%
仲裁
1
100% / 0%
期限切れ
2
12%
仕事中
類似した注文
Need ea according to stochastic divergence (both hidden and regular) plus candlestick flip .. need for experinced developers to complete my order with 99percent accuracy. So bet for it the budged is fixed and other plugins will be added in the v2
I have back testing results from optimization on the MT5 strategy tester for various tests saved in different tabs on excel. I would like to generate an excel function to find the matching parameters that give the best results based on profit within all tabs (the left most column), so the function needs to find the matching parameters, calculate the sum of the profit of matching parameters (TOTAL PROFIT), and rank
I'm looking for someone to help me create an arbitrage trading robot that can trade on any decentralized exchange. I had one created in python, but I would like it to work in MT5 with various regular rules that make it profitable
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
So i have copier EA. The idea is the EA will triggered through manual OP by user via mobile or whatever platform. Let's say 0.01 lot to trigger it. After the EA takes master's position, the EA will be standby mode. If the master take more OP, the EA still not take the master's position (OP) until the user input manually once again via mobile for another 0.01 lot. Since this is a MT4 EA, Whenever user want to close
preciso de um robô com duas médias móveis, uma exponencial high e uma exponencial low. preciso também ter a opção de utilizar e todos os tempos gráficos e alterar os parâmetros das médias. entrada de compra será feita quando um candle de alta romper e fechar a cima da média high e fechará a posição quando um candle de baixa romper e fechar a baixo da média low. a venda será feita quando o candle de baixa romper e
I need a chart to replicate/track my equity + Balance Curve into my mt4. Also this chart i need to be able to add Stochastic / Bollingerband / Moving average on the equity/balance curve. Besides the equity curve i would like the indicator to show the Line-chart of my win + 1 and my loss -1 which results in a win-loss curve. ( i will discuss this with the choosen developer in depth. ) More information on what i want
Hi, I need a robot, which wil get instructions to trade in 3 symbols at the same time based on few parameters and calculations. Example: There is 1 symbol called Gold-Near and the rate for it is 1000-1002 If i specify that when the rate reaches 1050, it should sell 1 lot Upon execution it will have to sell 1 lot of cme gold, buy 3 lots of mcx gold and buy currently (lots will be based on calculation). All the
Trading bot 300+ USD
We need bot that trades when medium and low impact news hits It will release pending order both directions few min prior to news impact And will have certain risk management strategy attached Example If Monday and Tuesday news successful clears profits It will reduce risk for next news events until new week starts each week message on tg: Dstatewealthtrading NOTE: 4 YAERS OF EXPERIENCE UPWORD, YOU MUST BE A
are you aware of the Monday Range Strategy? https://www.youtube.com/watch?v=7B_yBBFx6z8 5pm EST time sunday - monday 5pm est and it has to be on the H1 chart , minimum 1:2 Risk to reward and break even function after 1:1

プロジェクト情報

予算
90+ USD
開発者用
81 USD