SP500 Close Reversal

SP500 Close Reversal

The strategy parameters are designed for the S&P 500 cash index CFD. At startup, this MetaTrader 5 Expert Advisor looks for a tradable S&P 500 contract. Leave IndexSymbol blank for automatic selection or enter your broker's exact S&P 500 symbol. If the EA cannot select the preferred contract, it uses the attached chart's symbol if eligible. This also applies on live accounts. For example, on an EURUSD chart without an eligible S&P 500 contract, the EA can open and close EURUSD positions. If neither symbol is eligible, it skips new entries.

The EA uses the selected symbol's prices for both signals and orders. It compares the closing Bid of the 15:29 one-minute bar with the closing Bid of the final one-minute bar of the previous NYSE session. A rise of at least 0.25% gives a sell signal. A fall of at least 0.25% gives a buy signal. The EA skips smaller moves, NYSE holidays and scheduled early-close sessions.

The EA confirms the signal during the 15:30 minute, waits at least 15 seconds, then submits a market order if an eligible quote arrives before 15:31. The scheduled exit starts at 16:30:15, which is 60 minutes and 15 seconds after the entry window opens. All times are New York time. If the broker has closed the selected instrument for trading, the EA holds the position and attempts to close it on the next eligible quote after trading resumes. This can extend the holding period overnight or through a weekend.

Choose equity-based sizing or a fixed lot size. In equity mode, Margin budget percent sets the initial margin budget per new order. The default is 5% of account equity. The input accepts decimal values above 0 and up to 100. In fixed mode, enter the volume in Fixed lot size (default 0.01 lots). The EA skips orders that do not meet the broker's volume or margin requirements.

For the intended strategy, attach the EA to the broker's S&P 500 cash CFD chart. The preferred contract uses Bid bars and USD as its profit currency. Check the selected symbol in the Experts log before enabling entries. Set the broker server's standard UTC offset and daylight saving rule. The built-in NYSE calendar covers sessions from 2013 through the end of 2028. The EA needs the Bid closes for both signal minutes. On charts based on Last prices, it obtains those Bid closes from tick history and skips the session if either is missing. The EA manages exits by time, without a preset stop loss or take profit. Keep MT5 connected and algorithmic trading enabled while a position is open.


Filtro:
Nessuna recensione
Rispondi alla recensione