Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bool Flags??

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

    Bool Flags??

    Hello, I am trying to implement a few strategies that would take one entry signal per day and exit @ the close, or be stopped out before hand. In the case in which these strategies are stopped out, I would like it to stop trading for the day ie 1 entry only. I like many are masters of the strategy analyzer but are not that good at coding. I have seen others all but beg for someone @ NT to explain, possibly in strategy analyzer, how to enter in the first signal of the day and exclude the rest, simple enough???..Thanks

    #2
    rightcoast, I suggest you check into post 3 of this thread, where something similiar was developed - http://www.ninjatrader-support2.com/...ad.php?t=10885

    Comment


      #3
      Hey Bertrand, thanks for the link. I can get that to work and I assume you would use that to live trade in the manner that I expressed. I was actually looking for a way to backtest this entry. Correct me if I am wrong but coding it in this manner will only trade once...period, unless you adjust manually. Does this mean you cannot backtest a single entry strategy? thanks

      Comment


        #4
        rightcoast, not if you reset the bool flag / user variable like indicated in the post. The concept is to reset it to reset it each day to allow entries again, then block trading as the day progresses.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        61 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        149 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        162 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        99 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        286 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X