EA Pyramid 7
Logic:
Grid:
- Places buy and sell orders at regular intervals based on market price using a grid trading strategy.
- Orders are placed with a fixed distance (P_Grid_Pips) between them to capture market movements within a specified range.
- The grid levels and lot sizes can be adjusted based on user settings (A_Lot_Mode, A_Grid_Mode, A_Grid_Pips).
Order Management:
- Implements money management (EnableMoneyManagment) to adjust lot sizes based on account balance and risk settings (USD_PerMicroLot).
- Trades within specified hours (StartingHour1, EndingHour1, StartingHour2, EndingHour2).
- Uses magic number to identify and manage trades specific to the EA (MagicNumber).
- Uses a trend filter to trade in the direction of the trend (EnableTrendFilter, T_Period1, T_Period2, T_Period3).
Indicators Used:
- Bollinger Bands to determine trade entries and exits (BB_Period, BB_Deviation, BB_Price).
- ATR (Average True Range) to set stop loss and take profit levels (ATR_Period).
Scalping:
- Places quick trades to capture small price movements within a short period.
- Uses tight stop loss (StopLossMode) and take profit (TakeProfitMode) levels to manage risk and secure profits.
Martingale:
- Adjusts lot size based on account balance and risk.
- Increases lot size using a Martingale strategy if previous trades exist (A_Multiplier).
Profit Protection:
- Closes all trades if the equity drops below a certain level (MinEquity).
- Monitors total profit from open trades and closes them if the profit exceeds a predefined amount (EnableTakeProfit, TakeProfitAll).
Trailing Stop:
- Adjusts stop loss to secure profits when the price moves favorably (TrailingStopMode, TrailingStopPips, TrailingStopATR).
- Supports both standard and ATR-based trailing stops.