Spécifications
I have a simple trading strategy that I'd like someone to create an automated EA for.
Here's how it works:
1. Determine if the pair is strong: using Currency Strength Meter data (I'll pay for an API feed if needed), is the base currency 'strong' on the higher timeframe than the current chart, and is the quote currency weak on the CSM? If so, we want Long positions only. If the Base is weak and Quote is strong, we want Short positions only. If the pair is not divergent (one being strong, the other being weak) then we don't place trades. Make this requirement a setting (true/false)
2. Determine if the pair is trending or in consolidation (use EMAs/MACD and look for higher-high and higher low, or lower-high and lower-low swings vs retested support/resistance levels [same highs/lows]).
3. Determine if the pair is trending or in consolidation on the higher time frame (15m for 1m, 15m for 5m, 1h for 15m, 4h for 1h, 1d for 4h, 1w for 1d)
4. If CSM check determines we can trade, and the pair is trending on both current and higher timeframes in the direction the CSM suggests (Long + uptrend/Short + downtrend), then (when going long) if the price closes and opens above the last swing high, we place a buy limit order at the level of the last swing high (the level that is recently broke) - or (when going short) we place a sell limit order at the level of the last swing low that it broke. If the pair is consolidating, we wait for breakout and then set buy/sell limit order at the level of breakout (so it enters only on retest)
we set stop loss to 2 ATR (make this multiplier a setting) + spread below (long)/above (short) the entry point
we set take profit to 1.5x (make this multiplier a setting) the distance from stop loss to entry point (RR ratio 1:1.5)
we set position size to 1% of account balance (make this a setting)