OPEN-SOURCE SCRIPT

8-55 EMA Crossover NQ Futures Strategy

Güncellendi
The 8-55 EMA Crossover Strategy trades NQ and MNQ futures on the 5 minute chart using two EMAs (8 and 55) and a higher interval 55 EMA on the 15 minute chart for directional confluence.

It emulates the signal typically found in a motive Elliott Wave by waiting for waves 1 and 2 to establish. The entry signal is generated when:

  • The market hours are between 0900 and 1455 (skipping the volatility of the first 30 minutes and avoiding entries in the extended session).
  • All EMAs are in a bullish or bearish direction.
  • Price has retraced to the 55 EMA within 5 bars of;
  • A close above the 8 EMA.

    A trailing stop provides the exit signal.

    Trades can be long or short or a combination of the two and can have independent trailing stop percentages.

    A complete strategy review is available on YouTube: https://www.youtube.com/watch?v=61mYTkmM8XU

    Future improvements are coming which could include:
    - An alternative exit to the trailing stop using the Fbonacci extension near the 1.272 line.
    - Incorporating market breadth and sentiment indicators like the PCC, ADDQ, TICKQ, and VIX.
Sürüm Notları
View our update on this strategy here: youtu.be/9BOtGhkpvFk

In this update, several changes were made:
- Default settings for strategy
- Commission changes: $0.82 per side
- 0.75% Trailing Stop
- Added Default Contract Quantity
- Previous day volume filter
- Repainting issue fixed on 15 minute 55 EMA
- Retest bars condition fixed. Performance improved
- Yesterday’s low filter for short side
- Built-in TradersPost signal messages (JSON Payload)
- Option to attach a trailing stop with your broker
- Now works on 5 minute, 30 minute and 1 hour
Sürüm Notları
  • Fixed default attachTrail value to false
  • Long trailing source is defaulted to high to match the broker logic
  • Short trailing source is defaulted to low to match the broker logic
  • Removed unnecessary plots from data window
  • Fixed logic for alert-based trailing exit. The backtest engine exits the position before the logic executed so strategy.position_size is already 0. To fix the issue, keep track of the position size and compare the current bar to the previous bar. Then check that the high or low meets the exit price.
Sürüm Notları
* Corrected for slippage issue on strategy-based trailing stop: When the option to Attach Broker Trailing Stop is disabled, the strategy uses its own trailing stop indicator, however, the trailing stop wasn't being executed until the close of the bar. This update allows the strategy to be calculated on every tick to ensure the exit is taken intrabar. Additional changes were made to ensure entries were not taken intrabar to prevent repainting.

1. Entries are taken when the bar is confirmed.
2. Direction-based exits are taken when the bar is confirmed.
3. Trailing stop is taken immediately when triggered.
Sürüm Notları
Implemented TradersPost WebhookMessage Library
Exponential Moving Average (EMA)

Açık kaynak kodlu komut dosyası

Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının yazarı komut dosyasını açık kaynak olarak yayınlamıştır, böylece yatırımcılar betiği anlayabilir ve doğrulayabilir. Yazar çok yaşa! Ücretsiz olarak kullanabilirsiniz, ancak bu kodun yayında yeniden kullanımı Ev kurallarına tabidir. Bir grafikte kullanmak için favorilere ekleyebilirsiniz.

Bu komut dosyasını bir grafikte kullanmak ister misiniz?


Aynı zamanda::

Feragatname