Enable Disable Autotrading Button EA
Logic:
- Automation Control:
- Enables or disables the automated trading button at specified times.
- Uses input parameters for start and stop times to control when automated trading is allowed.
- Can wait for all orders to be closed before disabling automated trading if configured to do so.
- Order Management:
- Monitors the current time and compares it to the configured start and stop times.
- Enables automated trading at the start time if it’s currently disabled.
- Disables automated trading at the stop time if no open orders are present or if configured to disable regardless of open orders.