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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        57 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        30 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        41 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        58 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        47 views
        0 likes
        Last Post CarlTrading  
        Working...
        X