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 ผู้เขียนสคริปต์นี้ได้เผยแพร่เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถเข้าใจและตรวจสอบได้ ต้องขอบคุณผู้เขียน! ที่ให้คุณใช้ได้ฟรี แต่การนำโค้ดนี้ไปใช้ในการเผยแพร่ซ้ำจะต้องอยู่ภายใต้ กฎระเบียบการใช้งาน คุณสามารถตั้งเป็นรายการโปรดเพื่อใช้บนชาร์ตได้

ต้องการที่จะใช้สคริปต์นี้บนชาร์ตใช่ไหม?


และใน:

คำจำกัดสิทธิ์ความรับผิดชอบ