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 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
    2 views
    0 likes
    Last Post FrancisMorro  
    Started by Segwin, 05-07-2018, 02:15 PM
    10 responses
    1,771 views
    0 likes
    Last Post Leafcutter  
    Started by Rapine Heihei, 04-23-2024, 07:51 PM
    2 responses
    31 views
    0 likes
    Last Post Max238
    by Max238
     
    Started by Shansen, 08-30-2019, 10:18 PM
    24 responses
    945 views
    0 likes
    Last Post spwizard  
    Working...
    X