Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Combining trend and mean reversal in one strategy

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • NinjaTrader_ChelseaB
    replied
    Hello Erik,

    Welcome to the NinjaTrader forums!

    Below is a link to a forum post with helpful information about getting started with NinjaScript and includes a link to the Strategy Builder 301 training video.
    https://ninjatrader.com/support/foru...040#post786040

    If the Strategy is a strategy created with the Strategy Builder and the chart is a daily chart, the ATR indicator can be selected in the condition builder in the Indicators folder.

    In an unlocked script the call to the ATR would appear similar to:
    Code:
    if (Close[0] > ATR(10)[0])
    Volume can be found in the Strategy Builder in the Price section.
    In an unlocked script the Volume series would be used.
    https://ninjatrader.com/support/help...ies_volume.htm

    Are you receiving any errors or are you stuck with any specific lines of code?

    Leave a comment:


  • Combining trend and mean reversal in one strategy

    Hello guys,

    I am new here and I am a professional trader for 22 years now.
    You can imagine that programming is not a real strenght of mine so hopefully you can help me out


    I trade trend strategies on a daily chart with minute bars and entries/exits are on particular times for example entry at 8:30 am and exit 11:30 am.
    Now I would like to add an ATR that is calculating the ATR for 10 days every minute on that daily chart. When the ATR10 is reached and is outside the trend time interval (8:30 - 11:30) of the product I would like to trade mean reverting.

    All strategy calculation is volatility based and risk management too.


    I hope somebody can help me out and hopefully I can help you with some strategies.

    Regards

    Erik

    Last edited by ErikBaanstra; 04-03-2021, 11:39 AM.

Latest Posts

Collapse

Topics Statistics Last Post
Started by jeronymite, Today, 08:43 PM
0 responses
2 views
0 likes
Last Post jeronymite  
Started by jeronymite, Today, 07:01 PM
0 responses
7 views
0 likes
Last Post jeronymite  
Started by LeitoGTR, Today, 06:41 PM
0 responses
5 views
0 likes
Last Post LeitoGTR  
Started by 2inthebush, Today, 03:29 PM
2 responses
12 views
0 likes
Last Post 2inthebush  
Started by forrestang, Today, 02:17 PM
5 responses
23 views
0 likes
Last Post NinjaTrader_ChrisL  
Working...
X