




š§ Whatās Fixed and Improved
FeatureImprovement
ā Trailing Stop Works Reliably
Now updates only when in profit, ensuring legal distance, and logs every change.
ā New cTrader API Compatibility
Uses ModifyPosition(..., ProtectionType.None) correctly.
ā Trailing Step Control
Avoids too-frequent micro-adjustments (smooth stop movement).
ā Broker Safety Checks
Prevents SL placement too close to current bid/ask.
ā Logging
Prints every trailing update in the āJournalā tab for transparency.
š Usage Tips
- Run the bot on a lower timeframe (e.g., 5M or 15M) with HigherTimeframe = Hour4.
- You can tune:
ATRMultiplierā controls volatility-based SL/TP size.TrailingATRMultiplierā defines how close trailing SL follows price.TrailingStepPipsā defines how often the trailing SL moves.
- Logs like
[Trailing Updated] BUY new SL: 2375.10confirm the feature works.
š§ How it works now
The trailing-stop system activates only once
position.NetProfit > MinProfitToTrail.
You can tune this in the bot parameters before running:
Example: set Min Profit ($) to Start Trailing = 0.50
ā trailing begins once the trade is up at least $0.50.
Debug logs still print every decision for transparency.












.jpg)





.png)


!["[Stellar Strategies] SP500 Gap Closure cBot 1.0" logo](https://market-prod-23f4d22-e289.s3.amazonaws.com/62a77232-02a9-423b-a5e4-bd2c2bc8db97_cT_cs_4141285_US500_2025-03-21_17-12-57.png)






