OPEN-SOURCE SCRIPT

8-55 EMA Crossover NQ Futures Strategy

تم تحديثه
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.
ملاحظات الأخبار
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
ملاحظات الأخبار
  • 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.
ملاحظات الأخبار
* 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.
ملاحظات الأخبار
Implemented TradersPost WebhookMessage Library
Exponential Moving Average (EMA)

نص برمجي مفتوح المصدر

قام مؤلف هذا النص البرمجي بنشره وجعله مفتوح المصدر، بحيث يمكن للمتداولين فهمه والتحقق منه، وهو الأمر الذي يدخل ضمن قيم TradingView. تحياتنا للمؤلف! يمكنك استخدامه مجانًا، ولكن إعادة استخدام هذا الرمز في المنشور يخضع لقواعد‎‎قوانين الموقع. يمكنك جعله مفضلاً لاستخدامه على الرسم البياني.

هل تريد استخدام هذا النص البرمجي على الرسم البياني؟


يعمل أيضًا:

إخلاء المسؤولية