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 trilliantrader, 04-18-2024, 08:16 AM
    4 responses
    18 views
    0 likes
    Last Post trilliantrader  
    Started by mgco4you, Today, 09:46 PM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by wzgy0920, Today, 09:53 PM
    0 responses
    9 views
    0 likes
    Last Post wzgy0920  
    Started by Rapine Heihei, Today, 08:19 PM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by Rapine Heihei, Today, 08:25 PM
    0 responses
    10 views
    0 likes
    Last Post Rapine Heihei  
    Working...
    X