Strategy: Concorde Trading (Keltner Channel Signals) Description This strategy is based on identifying signals from the "Keltner Channel" (KC) indicator and follows defined rules for Entry, Stop-Loss (SL), and Take-Profit (TP). It should be programmed to allow full flexibility, ensuring all key parameters can be adjusted by the user. Requirements * Must be programmed for MT5! * The Keltner Channel (KC) indicator is provided. * Adjustable parameters: All the following parameters must be available in the EA as configurable inputs for user modification: Money Management / Position Size Calculation: * Option 1: Fixed lot size (adjustable). * Option 2: Dynamic money management as a percentage of account balance (adjustable). Trading Hours: 1. First session: 8:30–14:15 CET. 2. Second session: 14:45–21:55 CET. It must be possible to enable/disable each session's start and end times. Day Filter: Each weekday must be individually activated/deactivated via a checkbox, and trading times must be set separately for each day. Risk-Reward Ratio (RRR): * Default = 1, but adjustable. Maximum Stop-Loss: * Default = 30 ticks, with an option to set other values. BreakEven Switch: * Enable/disable via checkbox. * Configure BreakEven placement (e.g., BreakEven at 50% of the initial stop loss). Trailing: * Enable/disable via checkbox. * Configure trailing distance as a % of the initial stop loss. * Configure trailing start as a % of the initial stop loss. * Options: Trailing to BreakEven, Trailing from BreakEven, or Continuous Trailing. ATR Indicator (5): * No order is triggered if the ATR value is below 20. Order Holding Duration: * Adjustable, default = 5 minutes Instrument/Symbol: * Must be universally applicable to any instrument (Crypto, Forex, Indices, etc.). Rules Trading Sessions: * two sessions per day: * First session: 8:30–14:15 CET. * Second session: 14:45–21:55 CET. Chart: * Timeframe: 3-minute chart. * The strategy must work for any instrument. Entry Rules: * ATR Indicator (5): No order is triggered if the value is below 20. * Identification of a signal from the "Keltner Channel" (KC): o After the price exits the KC, it re-enters and closes within it. o Buy-Stop Order: Price exited through the "Lower" line and re-entered KC. o Sell-Stop Order: Price exited through the "Upper" line and re-entered KC. * Place a Buy-Stop Order at the high of the signal candle plus a buffer. * Place a Sell-Stop Order at the low of the signal candle plus a buffer. * If a trade is already active and a new signal appears, it is ignored. * For a Buy-Stop Order, the price must close inside the KC after re-entering KC. * For a Sell-Stop Order, the price must close inside the KC after re-entering KC. Buffer Calculation Based on Signal Candle Size: * < 10 points: Buffer = 1 point above high / below low. * 10 - 20 points: Buffer = 2 points above high / below low. * = 20 points: Buffer = 3 points above high / below low. Stop-Loss: * Set on the opposite side of the signal candle: o Buy-Stop Order: SL = Low of the signal candle plus buffer. o Sell-Stop Order: SL = High of the signal candle plus buffer. Take-Profit: * TP is triggered when: o The price reaches the KC base line OR o A 1:1 RRR is achieved. Trailing-Stop Logic: * Enable/disable via checkbox. * Configure trailing distance as % of initial stop loss. * Configure trailing start as % of initial stop loss. * Options: Trailing to BreakEven, Trailing from BreakEven, Continuous Trailing. BreakEven Switch: * Once price reaches 50% of the initial SL, SL is set to the entry price. * The BreakEven percentage (e.g., 50%) must be adjustable. Order Management: * Position size calculation based on dynamic money management (% of account balance): o Risk amount per trade (€) / Stop-Loss in points. * Adjustable order holding duration (e.g. 5 minutes). * All active trades must close automatically at 21:59 CET (adjustable). Special Cases: No trade is executed if: * A trade is already active. * The signal candle size including buffer exceeds the distance between the order level and the KC base line (RRR < 1). Programming Requirements Input Parameters: * Money Management: Selectable between fixed lot size or dynamic money management (adjustable). * Day Filter: Monday, Tuesday, Wednesday, Thursday, Friday (individually selectable). * Session Times: Start and end times per session with enable/disable option (adjustable). * Order Holding Duration: Default = 5 minutes; Enable/disable (adjustable). * Trailing Percentage: Default = 50% of initial risk; Enable/disable (adjustable). * BreakEven Switch: Default = 50% of initial risk; Enable/disable (adjustable). * EA must be universally applicable, particularly in terms of money management and different decimal places (Indices, Forex, etc.). Logic: Time Conversion: * Convert session times to UTC. * Ensure correct handling of daylight saving and standard time. Signal Candle Recognition: * A candle qualifies as a signal candle if the price exits the KC and then closes inside it. Order Logic: * Buy-Stop Order: Placed at the high of the signal candle plus buffer. * Sell-Stop Order: Placed at the low of the signal candle plus buffer. * SL: Opposite side of the signal candle (or max SL if adjusted). * TP: Price touches the KC base line OR 1:1 RRR is achieved. Trailing-Stop Logic: * Once 50% of TP is reached, adjust SL: o New SL = Entry +/- (initial SL * trailing percentage). BreakEven Switch: * Once 50% of TP is reached, set SL to BreakEven = Entry price. Order Management: * Trade only within session hours. * Consider order holding duration. Exceptions: * If the signal candle size exceeds 50 points, no order is triggered. * If a second signal appears during an active trade, it is ignored. * If a second signal appears during an active order, cancel the first order and place a new one based on the second signal candle. Additional Requirements Visualization: * Highlight signal candles in the chart (adjustable color). * Highlight different sessions in different colors (adjustable). Error Handling: * Prevent signals outside defined sessions. Flexibility: Ensure all parameters can be modified, enabled, or disabled: * Money Management * Days * Session Times per Day * Order Holding Duration * RRR * Maximum SL * Trailing Percentage * BreakEven Function Transmission of the source code is required! This must be error-free and debugged!