Fix Step Lot Sizing and Money Management Bug in Functioning EA

MQL4 Indicators Experts

Specification

The framework of the EA works fine however there are 2 bugs that need fixing within the trade cycle management and Take Profit - money management functions:

Both bug fix's must work correctly in accordance with the Main setting inputs, Pending order inputs and Time to trade inputs. As stated earlier the overall EA functionality works OK however there are errors to fix as explained further...

I will need time to forward test the functionality before I can sign it off as the EA is designed for 15 minute time frame, the forward testing should take no longer than a week, after the final prototype is received.

The take profit function works in that it sets correctly on live trades, however if I set the Take Profit input to 0 and or an unreachable target say 100000 pips when back testing and or optimising it effects the other money management functions. Where the trailing stop functions do not work correctly. So as part of this job the developer will need to ensure the Take Profit functions works in tandem with other money management function for back testing, optimising and on forward/live testing.

The following text explains how the lot sizing functionality should work.

Lot size of first StandardCycleTrade to be set at n%, then after each consecutive win the lot size is increased by n% in accordance to the the CycleTargetPercent until a loss is incurred e.g.  

UseCycleTarget=Yes

StandardCycleTrade=0.25%

CycleTargetPercent=1.00%


First trade win lotsize=0.25%

Second trade win lotsize=1.00%

Third Trade win lotsize=2.00%

Then if the fourth trade is a loss trade the lot size would be reduced to first n% trade lot size on the 5th trade e.g. 

First Trade win lotsize=0.25%

Second Trade win lotsize=1.00%

Third Trade win lotsize=3.00%

Fourth Trade loss lotsize=4.00%

Fifth Trade win Lotsize=0.25%

Sixth Trade win lotsize=1.00%

Seventh Trade loss lotsize=2.00%  

Eight Trade win/lose? lotsize=0.25% etc…….


Please note: The cycle target functionality must also work as a way of limiting drawdown in that lot sizing can be set as such: 

UseCycleTarget=Yes

StandardCycleTrade=1.00%

CycleTargetPercent=0.25%


First trade win lotsize=1.00%

Second trade win lotsize=0.25%

Third Trade win lotsize=0.50%

Then if the fourth trade is a loss trade the lot size would be returned to first n% trade lot size on the 5th trade e.g. 

First Trade win lotsize=1.00%

Second Trade win lotsize=0.25%

Third Trade win lotsize=0.50%

Fourth Trade loss lotsize=0.75%

Fifth Trade win Lotsize=1.00%

Sixth Trade win lotsize=0.25%

Seventh Trade loss lotsize=0.50%  

Eight Trade win/lose? lotsize=1.00% etc…….


Further to this both a UseNumberOfCycles input and a NumberOfCycles input will also be needed, to set the maximum number of lot size increases before returning to the original n% lot size e.g 

UseCycleTarget=Yes

StandardCycleTrade=0.25%

CycleTargetPercent=1.00%

UseNumberOfCycles=Yes

NumberOfCycles=6

 

First Trade win lotsize=0.25%

Second Trade win lotsize=1.00%

Third Trade win lotsize=2.00%

Fourth Trade win lotsize=3.00%

Fifth Trade win lotsize=4.00%

Six Trade win lotsize=5.00%

Seventh Trade win lotsize=0.25%

Eight Trade win lotsize=1.00%

Ninth Trade loss lotsize=2.00%

Tenth Trade win win/lose? =0.25% 


Further to this a UseStayAtMaximum input will also be needed, where UseNumberOfCycles sets the maximum lotsize, however it overrides the re-setting of the NumberOfCycles to n% until a losing trade occurs e.g. 

UseCycleTarget=Yes

StandardCycleTrade=0.25%

CycleTargetPercent=1.00

UseNumberOfCycles=Yes

NumberOfCycles=6

UseStayAtMaximum=Yes


First Trade win lotsize=0.25%

Second Trade win lotsize=1.00%

Third Trade win lotsize=2.00%

Fourth Trade win lotsize=3.00%

Fifth Trade win lotsize=4.00%

Six Trade win lotsize=5.00%

Seventh Trade win lotsize=5.00%

Eight Trade win lotsize=5.00%

Ninth Trade loss lotsize=5.00%

Tenth Trade win lotsize=0.25%

Eleventh Trade win/lose? lotsize=1.0% etc……………. 


I will supply the EA on work step agreement.

I look forward to working with you. Thank you Mike 


 

 

 

 

 

 

 

 

 


Responded

1
Developer 1
Rating
(1)
Projects
3
0%
Arbitration
1
100% / 0%
Overdue
1
33%
Free
2
Developer 2
Rating
(39)
Projects
69
9%
Arbitration
18
11% / 56%
Overdue
18
26%
Free
3
Developer 3
Rating
(45)
Projects
59
14%
Arbitration
31
26% / 52%
Overdue
35
59%
Free
Similar orders
Dulk coin 30+ USD
I want to convert superTrend to ea that only works from 7am to 7pm with an adjustable tp and sl and adjustable settings further explanation will be done thank u
I´m looking for an coder, to crreate an EA for me thats opening trades according to an Indicator. Tp levels with trailing SL Closing trades by an oposite signal. Autolot/%risk/fixed settings
Bot commando 30 USD
Create an Expert Advisor that collaborates between these indicators ETR, MEv2 and STLv3 with these features 1. SL and TP 2. TIME FILTER 3. ETR, MEv2 and STLv3 PARAMETERS BUY ENTRY STEP 1. FIRST candle OPEN above Symphonie Trend Line STEP 2. Check Symphonie Extreme must indicate color BLUE STEP 3. Check Symphonie Emotion must indicate color BLUE STEP 4. Open trade with money management STEP 5. Trade open MUST BE 1
I have a widely-used MT4 indicator that I would like to have converted to the MT5 platform. The goal is to maintain the same functionality and performance while ensuring compatibility with MT5, so I can continue utilizing the indicator's features within the updated framework
Hey this post is only means for a skilled programmer who is able to code or convert strategy on tradingview to metatrader either the MT4/MT5 the most important thing is you having the right skill including track of record from making conversion from pinescript to Mql, I am very curious of being connected to the right coder as I need to convert a pinescript indicator to metatrader 5 in addition to the ideas I wrote
Indicator needed today . Indicator to show where the majority of retail stop are on current chart and time frame simple line or indication please use your expertise to best achieve this simple indicator . i need to visually see where the retail stop losses are on the current chart I'm completely open to your suggestions too maybe we could colour the lines where the most stops are accordingly or something Job must be
BUY AND SELL 30+ USD
Create an Expert Advisor that collaborates between these indicators ETR, MEv2 and STLv3 with these features 1. SL and TP 2. TIME FILTER 3. ETR, MEv2 and STLv3 PARAMETERS BUY ENTRY STEP 1. FIRST candle OPEN above Symphonie Trend Line STEP 2. Check Symphonie Extreme must indicate color BLUE STEP 3. Check Symphonie Emotion must indicate color BLUE STEP 4. Open trade with money management STEP 5. Trade open MUST BE 1
Fully automated EA with following features: Trend and momentum detection, Volume and Volatility, breakout strategy, AI-based decision layer, risk management, adaptive smart entry adjustment, chart panel, email notification, time frame, news filter, etc
Hello, Good day. I have developed a very strong TradingView strategy in Pine Script but unfortunately, a third-party connector is requiired and in my opinion, I want a more direct connection. I am not brilliant at coding, but I have coded the majority of the MT5 code and I would like you to make sure that the MT5 code matches my TradingView script and executes the same way as the TradingView script that I will
Hi I want to create this a EA using standard indicators. More info in chat Indicators used: Moving Average Period: 10, Shift: -1, MA method: Linear Weighted, Apply to: Weighted Close (HLCC/4) MACD Fast EMA: 7, Slow EMA: 200, Apply to Close RSI Period: 14

Project information

Budget
30+ USD
For the developer
27 USD
Deadline
from 2 to 14 day(s)