









King’s War Strategy ( Use Renko Chart )
🎯 Strategy Overview
• Start with an initial lot size (InitialVolume) and limit the maximum lot size (MaxLot).
• Optional Compound mode can increase the initial lot size step by step when the account profit grows by the set percentage (ProfitIncreasePercentage + VolumeIncreaseStep).
Trading on each bar:
• On every new bar, the cBot checks and updates the account balance.
• It closes all open positions and immediately opens a new position.
New position rules:
1. First trade – if there is no open position yet, the cBot randomly opens a Buy or Sell order.
2. After closing a position:
• If the last trade closed in profit → open the next trade in the SAME direction.
• If the last trade closed in loss → open the next trade in the OPPOSITE direction.
Martingale Logic:
• Counts consecutive losses (_consecutiveLosses).
• When losses reach StartMartingaleAfterLosses → multiply the trade volume by MartingaleMultiplier.
• If the calculated lot size exceeds MaxLot, it is capped at MaxLot.
Spread Filter:
• Before opening a new trade, the cBot checks the current spread.
• If spread > MaxAllowedSpread → no new trade is opened.
Compound Logic (if enabled):
• When account profit grows by the set percentage (ProfitIncreasePercentage),
the InitialVolume is increased by VolumeIncreaseStep so the starting lot grows with account profit.
📑 Input Parameters
• Lot Size (InitialVolume) → Starting lot size of the first trade.
• Max Lot Size (From Broker) → Maximum allowed lot size (to limit Martingale growth).
• Martingale → Lot size multiplier after consecutive losses (e.g. 3.0 = triple the lot size).
• Start Martingale After Losses → Number of consecutive losses before Martingale starts.
• Max Spread → Maximum spread (pips) allowed to open a trade.
• Use Compound → Turn on/off automatic increase of the starting lot based on account profit.
• Compound (%) (ProfitIncreasePercentage) → Percentage of profit growth that triggers an increase in starting lot size.
• Compound Volume Step (VolumeIncreaseStep) → Lot size to add every time the profit threshold is reached.
💡 Developer’s Note
This system is not suitable for live trading in regular CFD broker accounts because it uses Martingale (doubling or tripling the lot size after losses). This makes it a high‑risk strategy. It is recommended for Prop Firm trading environments instead.









.jpg)






.jpg)

.png)

 hecho de metal fracturado con grietas de neón azul brillante, flotando dentro de un grid 3D de trading._El grid s (1).jpg)

.png)


 (1).png)