Modification of Existing Positioning Code

Job finished

Execution time 1 hour
Feedback from customer
Greate Programmer, quick and easy process!
Feedback from employee
This person is great explain well to the point. Happy to work with him and in future

Specification

I have positioning code that increases the lot size for each consecutive win trade up to a maximum lot size, it then cycles back to the beginning. Unless a loss occurs within the win streak, in which case it trades a minimum lot size until a win.

For example if my maximum lot size is 4, it would trade like this:

W - W - W - W - W - W - L - L - L - W - W - W - W -W - W - W - L - L - L

1 -  2  - 3  -  4  - 1 -  2 - 3 - 1 - 1  - 1  - 2  - 3 -  4 - 1 -  2 -  3  - 4 - 1 - 1

Furthermore it has a setting called Stay_at_Max_Lots, when this is True, the money management will stay at the maximum lot setting during a winning streak until a loss occurs.

For example

W - W - W - W - W - W - L - L - L - W - W - W - W -W - W - W - L - L - L

1 -  2  - 3  -  4  - 4 -  4 - 4 - 1 - 1  - 1  - 2  - 3 -  4 - 4 -  4 -  4  - 4 - 1 - 1

This positioning method only works when you have high average consecutive wins and high z probability.

I would like someone to edit the code to add an extra True/False option called After_Max_Stay_Min, the function of this is opposite to Stay_at_Max_Lots, when the max lots size has been reached in a win streak, it only trades min lot size until after a loss.

For example:

W - W - W - W - W - W - L - L - L - W - W - W - W -W - W - W - L - L - L

1 -  2  - 3  -  4  - 1 -  1 - 1 - 1 - 1  - 1  - 2  - 3 -  4  - 1 -  1 - 1  - 1 - 1 - 1

By adding this option, it will mean if i know my average consecutive wins, i will less likely be hit with a loss at max lots size during its cycle.

ill attached the code in chat

Responded

1
Developer 1
Rating
(67)
Projects
79
33%
Arbitration
6
50% / 33%
Overdue
7
9%
Free
2
Developer 2
Rating
(332)
Projects
485
40%
Arbitration
82
11% / 63%
Overdue
77
16%
Free
Published: 1 code
3
Developer 3
Rating
(647)
Projects
1295
67%
Arbitration
84
26% / 49%
Overdue
338
26%
Free
4
Developer 4
Rating
(1156)
Projects
1462
63%
Arbitration
21
57% / 10%
Overdue
43
3%
Free
5
Developer 5
Rating
(16)
Projects
17
29%
Arbitration
1
0% / 100%
Overdue
2
12%
Free
6
Developer 6
Rating
(115)
Projects
129
18%
Arbitration
11
27% / 55%
Overdue
4
3%
Free
7
Developer 7
Rating
(412)
Projects
543
75%
Arbitration
9
44% / 0%
Overdue
24
4%
Free
Similar orders
GALAXYGOLD EA 30 - 36 USD
I am looking for a developer to build an Expert Advisor (EA) with strict performance and delivery standards. The EA must demonstrate at least 85%+ win rate in backtests or demo runs. Delivery must be completed within the agreed timeframe (the days we set together). If you cannot meet these requirements, please do not apply. If you foresee delays, you must inform me beforehand — not after deadlines have passed. The EA
I need an experienced trading-data specialist who can help me obtain 3–4 years of historical market data compatible with NinjaTrader 8 . The data will be used for trading strategy development, backtesting, and analysis
I am looking for an experienced MQL5 developer to develop a custom Expert Advisor (EA) for MetaTrader 5, primarily for XAUUSD (Gold) . The EA will be based on a proprietary price-action trading strategy that I have already defined. The objective is to translate this strategy into a fully automated, precise and reliable trading system without modifying its underlying logic. The strategy involves specific
Need aggressive M1 gold scalper rewrite of Dev3 + 8 strategies. INPUTS: RiskPercent=3, TP=400, SL=300, MaxTrades=6, Mode=BOTH, DailyProfit 15%, DailyLoss -10% LOT = Balance * RiskPercent / 1000 - works for Cent R350 and $1000. 8 STRATEGIES any true = open instantly, check 1 sec: 1 EMA8/21 cross 2 RSI14 30/70 + engulf 3 Engulfing candle 4 BB 20,2 breakout 5 FVG grab M1 6 M5 trend + M1 entry 7 Wick rejection >2 8
I need an experienced MQL5 developer to build a prototype MT5 Expert Advisor called RiskLock. The software should enforce user-defined trading risk rules before trades are executed. It should support risk percentage or fixed monetary risk, calculate position size using account equity, entry price, stop loss, tick value and contract specifications, block or reduce oversized trades, and include daily loss limits
I am looking for an experienced MQL5 Expert Advisor (EA) developer to analyze an existing trading setup and develop a similar automated trading robot. Project Overview I have access to a demo trading account where trades are being executed automatically. The trading results look very promising, but I do not know exactly what strategy, logic, indicators, or trade-management rules are being used. I will provide access
Most of the expert is already coded . Create a panel to show the Ratio for the Range . Trigger is based on ratio . Show Distribution / project starts after we clear Distribution
Expert Advisors 300+ USD
double CRiskManager::CalculateLotSize(double slPoints) { double balance = AccountInfoDouble(ACCOUNT_BALANCE); double riskMoney = balance * (m_riskPercent / 100.0); double tickValue = SymbolInfoDouble(_Symbol, SYMBOL_TRADE_TICK_VALUE); double tickSize = SymbolInfoDouble(_Symbol, SYMBOL_TRADE_TICK_SIZE); double pointValue = tickValue / tickSize; double lot = riskMoney / (slPoints * pointValue);
i share my strategy i need a bot trending bot fo mt5 . i attached the photo with this it help to make bot. it basicly 1 hours time frame base. i try but failed to make it
Title: Simple background trading bot for my Oanda account (v20 REST API) Overview Hi, I need a simple, lightweight event based standalone trading bot that connects directly to my Oanda account using broker’s standard REST API (V20 account) via VPS The bot just needs to look at group of 5 currency pairs (manually selectable and adjustable) in different 4 baskets, do some basic percentage math every period, and place

Project information

Budget
30+ USD
Deadline
to 2 day(s)