Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Where are the methods and classes references?

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

    Where are the methods and classes references?

    Hi dear Support,

    I am new at NT but am an experienced programmer, I am looking for a list of all the possible functions/methods or libraries already available for the programmer so I do not reinvent the wheel

    On the other hand I have been experimenting with the Order settings without being able to achieve exactly what I want... I am not quite sure why it doesnt happen the way I want but I suspect it has to do with the CalculateOnBarClose...

    Maybe if I give you some details of what I want achieved you might be able to give me some details and therefore learn more about this specific area of the process of developing a strat.

    example:

    Assume I have this condition (could be any)

    if (high[0]>high[1])
    {

    /****
    Once I encounter this condition I want to be able to do the following:

    1) Set 1 Stop limit order Long at high[0]+1*Ticksize
    2) Set 1 Stop limit order Short at low[0]+1*Ticksize

    Once this is set and one of the orders is filled I want to delete the one that is not filled and immediately set a STOP LOSS order on the very same bar of the condition at one of the extremes

    Assume for this example that I would like to have a profit target at the close of the bar of ENTRY , I tried to do that but I get "filled" at the open of the next bar.... (assume is because of the way bars are counted since no tickbytick)
    ********/
    }


    That is all for all I will really appreciate your help on this matter ...

    thanks in advance

    Gustav

    #2
    Most this stuff is in the help file. The Intellisense will tell you the rest.

    If you want tickbytick make sure to specify "CalculateOnBarClose=false;" in Initalize()

    Comment


      #3
      Hi Gustav,

      AS Gumphrie kindly pointed out, its in the Help Guide. Look for the "NinjaScript" section. There is a lot of documentation contained therein.

      Welcome!
      RayNinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by bortz, 11-06-2023, 08:04 AM
      47 responses
      1,605 views
      0 likes
      Last Post aligator  
      Started by jaybedreamin, Today, 05:56 PM
      0 responses
      8 views
      0 likes
      Last Post jaybedreamin  
      Started by DJ888, 04-16-2024, 06:09 PM
      6 responses
      18 views
      0 likes
      Last Post DJ888
      by DJ888
       
      Started by Jon17, Today, 04:33 PM
      0 responses
      4 views
      0 likes
      Last Post Jon17
      by Jon17
       
      Started by Javierw.ok, Today, 04:12 PM
      0 responses
      13 views
      0 likes
      Last Post Javierw.ok  
      Working...
      X