CM Trade System EA
Logic:
Trailing Stop:
- Adjusts stop loss dynamically as the price moves favorably.
- Uses TrailingStop_Buy and TrailingStop_Sell parameters to define the distance from the current price to the stop loss for buy and sell trades respectively.
- Implements TrailingStep to determine the step size for trailing adjustments.
- Starts trailing when profit reaches TrailingStart.
No-Loss Protection:
- Moves stop loss to break-even when profit reaches a specified level (NoLoss_Buy for buy trades, NoLoss_Sell for sell trades).
- Configurable to enable or disable no-loss protection using TradeNoLossBuy and TradeNoLossSell.
Order Management:
- Allows opening and closing of various order types (market and pending orders).
- Implements order modification and deletion based on user-defined settings.
- Utilizes Magic number for trade identification and selective management.
- Offers customizable lot sizes, slippage, and delta for pending order placement.
Graphical User Interface:
- Provides a detailed graphical interface for real-time monitoring and manual control.
- Displays key metrics such as current profit, equity, and balance.
- Allows manual adjustments of parameters like lot size, stop loss, take profit, and trailing stop via interactive buttons.
- Supports customizable window and color settings for better visualization.
Profit and Loss Management:
- Configurable stop loss (StopLoss_Buy, StopLoss_Sell) and take profit (TakeProfit_Buy, TakeProfit_Sell) levels.
- Ensures trades are closed based on defined profit or loss thresholds.
- Offers detailed logging and comment updates for transparency and tracking of EA activities.
Backtesting and Simulation:
- Capable of sending test trades to simulate the EA’s behavior in a backtesting environment.
- Provides journal entries for each trade action, including order placements, modifications, and closures.
- Outputs real-time feedback and configuration settings in the comment section of the chart.