Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Need help with my own strategy

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

    Need help with my own strategy

    Hello, I am developing an automated stretegy called Orderflow. I am an advanced programmer but I have some issues with NinjaScript programming logic (concretely method Initialize()). My questions are not difficult for NinjaScript programmer, I need just to understand the logic. In exchange for your help I can share my strategy (with a potential) with you. Thank you in idvance for your help.

    Please reply here or to matoskok1[at]gmail[dot]com

    Kind regards,
    Matej Skok
    Last edited by NinjaTrader_PatrickH; 05-12-2016, 01:15 PM.

    #2
    Hello,
    We are more than happy to assist you with understanding the logic. Feel free to post your questions in this thread or you can send an email to platform[AT]support[DOT]com and our NinjaScript team would be more than happy to help you.

    For your security we edited your email in your original post so that you do not receive unwanted spam from spam bots.
    Cody B.NinjaTrader Customer Service

    Comment


      #3
      Hi Cody,
      thank you for your prompt reply. I just want to go step-by-step with the NinjaScript developing. I understand onBarUpdate() method => it's called in every thick, right? Lets say that I want to backtest my strategy on the 365 day chart with time frame 2m. So if the body onBarUpdate() method would be just Print("This is a testing message");, it is printed a lot of times.. right?

      Comment


        #4
        Hello,
        The OnBarUpdate() is called every time the bar updates which occurs when you have a tick. Except if you are running the code with CalculateOnBarClose set to true or you are backtesting. With these circumstances OnBarUpdate() is calculated when the bar closes. With your example with the print statement you would have a print statement for every bar in the output window.
        Cody B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        571 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        330 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        549 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        549 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X