Version 2.2 2025.06.15
Optimized input parameters.
Version 2.1 2025.06.10
Performance Optimization: Support/Resistance levels are now calculated only once per new bar, instead of on every tick, significantly improving performance.
Enhanced Risk Management: The lot size calculation is more robust. It now considers both a fixed USD risk and a maximum risk percentage of the account balance, using whichever is smaller.
Advanced Margin Control: The EA now checks for available margin before placing a trade and can automatically reduce the lot size to prevent margin-related errors.
Improved Trade Execution: Order execution logic has been consolidated into a single, more reliable function using true market orders for more accurate and faster entry. The entry signal is now more precise, using current bid/ask prices.
Code Quality and Robustness: Added boundary checks to prevent errors, proper initialization (OnInit) and de-initialization (OnDeinit) functions, and detailed logging for easier debugging.
New User Inputs: Added new parameters for MaxRiskPercent, MinLotSize, and MaxLotSize for greater user control.