PREMIUM CCT EA — UPDATE v3.8
Two powerful new trade management features have been added to protect your profits and cut drawdown. Both are fully optional — disabled by default — so your current setup won't change unless you turn them on.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

FEATURE 1: PARTIAL CLOSE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
What it does:
Automatically closes a percentage of your position when profit reaches a certain R:R level, locking in gains while letting the rest ride to the full TP.
Settings (found under "Partial Close Settings"):
• Use Partial Close — ON/OFF (default: OFF)
• Partial Close RR — The R:R level that triggers the close (e.g. 2.0 = at 1:2 RR)
• Partial Close Percent — How much of the position to close (e.g. 50 = close half)
Example:
Your CCT setup triggers a POI entry with 0.10 lots. Partial Close is set to RR 2.0 and 50%.
When price moves 2R in your favour, the EA automatically closes 0.05 lots (50%), banking that profit. The remaining 0.05 lots stays open and rides towards the liquidity target — or gets managed by the trailing stop if you have that enabled too.
Key points:
• Fires once per trade — after the partial close, it won't close again
• Respects your broker's minimum lot size — if closing would leave less than the minimum, it adjusts automatically
• Works with both POI and TS entries
• Works on any instrument (forex, gold, indices, etc.)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

FEATURE 2: TRAILING STOP (Break-Even + RR Trail)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
What it does:
Moves your stop loss to break-even once price reaches a certain R:R, then continues trailing it upward in R:R increments as price moves further in your favour. Once the trailing activates, the worst outcome is break-even or better — never a full loss.
Settings (found under "Trailing Stop Settings"):
• Use Trailing Stop — ON/OFF (default: OFF)
• Trailing Start RR — The R:R level where break-even kicks in (e.g. 2.0 = move SL to entry at 1:2)
• Trailing Step RR — How much RR price needs to gain for the SL to step up again (default: 1.0)
How it works step by step:
Let's say a bullish CCT setup triggers a LONG at 100.00 with SL at 99.00 (1R = 1.00 point).
Trailing Start RR = 2.0, Trailing Step RR = 1.0
Price hits 102.00 (1:2 RR) → SL moves to 100.00 (break-even)

Price hits 103.00 (1:3 RR) → SL moves to 101.00 (1R locked)

Price hits 104.00 (1:4 RR) → SL moves to 102.00 (2R locked)

Price hits 105.00 (1:5 RR) → SL moves to 103.00 (3R locked)
If price reverses at any point, you keep whatever profit was locked by the last SL move.
Key points:
• SL only moves in your favour — it never moves back
• Runs on every tick — no waiting for candle close
• The "1R" measurement is always based on your ORIGINAL entry-to-SL distance, not the current SL
• Works for both bullish and bearish CCT setups automatically