Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

How to wait one day (1,440 minute bars) from a stop loss?

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

    How to wait one day (1,440 minute bars) from a stop loss?

    Hello NinjaT pros,

    I have a strategy with:
    Entry: UpperBuy
    Exit: UpperExit, 3pmExit
    and one Stop Loss.

    It is based on indicators for the entry and the exit, UpperExit, and based on time and position=long for 3pmExit.

    When the stop loss fires the strategy can re-enter based on the UpperBuy criteria.

    I'd like to set it up so that when the stop loss fires the strategy takes a day off, my thought being to let people/market calm down and reach a new low / more stable range.

    I know about BarsSinceExitExecution but I haven't quite gotten the logic figured out for how to add it to the entry criteria.

    I think it has to be done in a group in the entry conditions.

    I know to get the first entry to fire I have to have BarsSinceExitExecution = -1.

    OR, do you think there is some way to use Realized/Unrealized P&L to get the right effect?

    I'm trying to avoid situations like March, April 2020 with continuous slides down and having 2-5 stop losses in a row. I'm fine with one stop loss but then I want the strategy to just chill out, take a break, go for a walk, and try again one day/week/whatever later.

    Thanks for your help!
    JMC

Latest Posts

Collapse

Topics Statistics Last Post
Started by AveryFlynn, Today, 04:57 AM
0 responses
3 views
0 likes
Last Post AveryFlynn  
Started by RubenCazorla, 08-30-2022, 06:36 AM
3 responses
77 views
0 likes
Last Post PaulMohn  
Started by f.saeidi, Yesterday, 12:14 PM
9 responses
23 views
0 likes
Last Post f.saeidi  
Started by Tim-c, Today, 03:54 AM
0 responses
3 views
0 likes
Last Post Tim-c
by Tim-c
 
Started by FrancisMorro, Today, 03:24 AM
0 responses
5 views
0 likes
Last Post FrancisMorro  
Working...
X