Auto Adjusting EA
Logic:
- Momentum:
- Utilizes Momentum and Moving Average (EMA) indicators to determine trade entries.
- Buys when the short-term EMA is below the mid-term EMA, and the mid-term EMA is below the long-term EMA, and momentum conditions are met.
- Sells when the short-term EMA is above the mid-term EMA, and the mid-term EMA is above the long-term EMA, and momentum conditions are met.
- Dynamic Lot Sizing:
- Calculates the lot size based on account equity and specified risk percentage.
- Adjusts lot sizes dynamically to ensure risk is managed according to account size.
- Order Management:
- Determines stop loss and take profit levels based on recent high/low prices and a specified reward ratio.
- Checks for new candles to make trading decisions at the beginning of each new candle.
- Ensures no overlapping orders on the same pair.
- Trailing Stop:
- Adjusts stop loss dynamically to lock in profits as the trade progresses.
- Modifies open orders to update stop loss and take profit levels based on market conditions.
- Risk Management:
- Limits trades based on the calculated risk amount.
- Ensures sufficient free margin is available before opening a trade.
- Prevents trading if the free margin is insufficient.