EA Scalper Autopilot
Logic:
Scalping:
- Opens buy and sell positions based on predefined conditions and settings.
- Uses a distance setting (DistanceOrders) to place orders at specific intervals.
- Utilizes both pending orders (Buy Stop and Sell Stop) and market orders (Buy and Sell).
Order Management:
- Includes options for automatic lot sizing based on risk settings.
- Sets stop loss (StopLossPips) and take profit (TakeProfitPips) for each order.
- Limits the maximum number of trades by checking existing orders before placing new ones.
Trailing Stop:
- Adjusts stop loss dynamically based on market movements.
- Implements trailing stops for both buy and sell orders, ensuring profits are locked in as the price moves favorably.
Profit and Loss Management:
- Allows for break-even settings to secure profits after a certain number of pips (BreakEvenAfter).
- Provides options to delete stop loss and take profit levels to prevent broker manipulation.
- Includes a function to close all positions or specific types of orders (buy or sell) based on conditions.