Close at Friday
- 유틸리티
- 버전: 1.2
A position management utility designed to automatically close all trades and stop further trading on Friday evenings before the market closes for the weekend. This helps traders avoid weekend gap risk.
Features:
Activates on Friday based on the broker’s server time.
User-definable exit time (e.g., 22:00).
Can close Buy orders only, Sell orders only, or both.
Includes a flag (`tradingStopped`) to prevent new trades after the Friday exit is triggered.
Effective Uses:
Weekend Gap Protection: Close all positions ahead of high-impact weekend news or events to avoid large gaps on Sunday open.
Weekly Reset: Used as part of a weekly trading strategy to ensure the account is flat over the weekend.
Compliance: Useful for traders who are not allowed to hold positions over the weekend due to risk management rules.
