An auto-optimization function required

Tarea técnica

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)


Han respondido

1
Desarrollador 1
Evaluación
(8)
Proyectos
7
0%
Arbitraje
7
0% / 71%
Caducado
2
29%
Libre
2
Desarrollador 2
Evaluación
(8)
Proyectos
17
41%
Arbitraje
1
100% / 0%
Caducado
2
12%
Trabaja
Solicitudes similares
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
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
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
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
An EA that executes when the 21 and 55 SMA Cross on certain time frame also the EA will understand supply and demand levels and executes when price reacts on this levels specified and target/stoploss levels will be predetermined...also the robot will also comprise stochastic oscillator
Starting from scratch, I need a solution to develop my own crypto trading and exchange platform. This platform should compare prices across various exchanges like Coinbase, Binance, KuCoin, and Unocoin, as well as different cryptocurrencies. The solution must identify opportunities to buy on one platform and sell on another for a profit, transferring funds to my personal wallet instantly for security. The bot should
Need EA programmer to create an MT4 EA that will be able to leverage trades in favour of the market direction ,the EA should be able to operate to any broker. The EA must trade on a clear trend not when the Market is ranging. More will be explained once your application has been accepted for the job
Hey, great developer I have a thinkorswim script I want to convert it into TradingView. Can you please let me know if you can i will be looking for great developer that will bid for it best regards
Hey, great developer I have a thinkorswim script I want to convert it into TradingView. Can you please let me know if you can i will be looking for great developer that will bid for it best regards
Tradingview developer 30 - 35 USD
Hey greetings. I am in need of tradingview developer that can modify an open source PineScript indicator code to add additional features. Kindly bid for this project if it is what you handle and let proceed with the project

Información sobre el proyecto

Presupuesto
90+ USD
Para el ejecutor
81 USD