Tâche terminée
Spécifications
1. The idea of the trading system is as follows: The strategy is based on the crossing of exponential moving averages (EMA) and a simple moving average (SMA) to make trading decisions. It considers both bullish and bearish market conditions to open both long and short positions.
⦁ Bearish Trend: When the 14-period EMA and the 50-period SMA are both below the 185-period EMA.
⦁ Sell Signal: A sell signal is generated when the 14-period EMA crosses below the 50-period SMA and market conditions are bearish.
⦁ Through Crossover: If the exit strategy is set to "Crossover," long positions are closed when a sell signal is generated, and short positions are closed when a buy signal is generated.
⦁ Short positions are opened when a sell signal is generated and market conditions are bearish.
⦁ Positions are only opened if the market conditions (bullish or bearish) match the trade direction signals.
⦁ There are no additional filters for closing positions other than the conditions set in the exit strategy and the stop-loss/take-profit settings.
⦁ Positions are closed through take-profit when the price reaches the set target based on the stop-loss value and the risk-reward ratio.
⦁ If no stop-loss and take-profit values are used, positions are managed by closing and reversing them on new trade signals.
Additional Comments
Plotting Moving Averages:
The strategy plots the EMAs and SMA on the chart with different colors for visualization. Colors can be changed in the settings:
short-period EMA (blue) = EMA 14
mid-period SMA (red) = SMA 50
long-period EMA (green) = EMA 185
Labels are also added to indicate the periods of the moving averages.
The EMA and SMA length can be adjusted in the settings.
Timeframe Configuration:
The configuration should allow the strategy to work in any timeframe. In the settings, the current timeframe for execution should be entered. By default this value is 15-min.
Market Conditions Visualization:
The strategy uses background color changes to indicate market conditions:
Light green background for bullish conditions.
Light red background for bearish conditions.
No color if the condition for a bullish or bearish market does not apply (e.g. 185EMA is in between the 14EMA and the 50SMA)
Entry and Exit Labels:
Labels are created at the bar index for entry and exit signals, ensuring clear visual representation of trade signals on the chart. (This is done by default by MT5)
Flexibility in Trade Direction:
The strategy provides the option to trade in only one direction (long or short) or both directions, as per the user's choice.
Stop-Loss and Take-Profit Customization:
Users can enable or disable the use of stop-loss and take-profit values and customize these values through inputs, offering flexibility in risk management.
It should also be possible to activate a trailing stop loss.
If the use is disabled, the trade lasts until the next signal appears.
Risk-Reward Ratio:
The strategy allows setting a risk-reward ratio, which is used to calculate the take-profit level based on the defined stop-loss value.