Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

BarsSinceExit() Stopping strategy from executing

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

    BarsSinceExit() Stopping strategy from executing

    Hi NT_Bertrand,

    When I include the line below, containing "BarsSinceExit", the strategy doesn't execute.
    When I remove/comment out the line, the strategy executes normally.

    protected override void OnBarUpdate()
    {
    Print("Bars since exit : " + BarsSinceExit().ToString());
    . . .
    }

    As you can see this is just a print out of the methods.

    Any idea?

    Cheers, Obi

    #2
    Hi Obi, do you see any errors being reported in the Log tab of the Control Center if you include those lines?
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by chbruno, Today, 04:10 PM
    0 responses
    3 views
    0 likes
    Last Post chbruno
    by chbruno
     
    Started by josh18955, 03-25-2023, 11:16 AM
    6 responses
    436 views
    0 likes
    Last Post Delerium  
    Started by FAQtrader, Today, 03:35 PM
    0 responses
    6 views
    0 likes
    Last Post FAQtrader  
    Started by rocketman7, Today, 09:41 AM
    5 responses
    19 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by frslvr, 04-11-2024, 07:26 AM
    9 responses
    127 views
    1 like
    Last Post caryc123  
    Working...
    X