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 DJ888, Yesterday, 10:57 PM
      0 responses
      6 views
      0 likes
      Last Post DJ888
      by DJ888
       
      Started by MacDad, 02-25-2024, 11:48 PM
      7 responses
      158 views
      0 likes
      Last Post loganjarosz123  
      Started by Belfortbucks, Yesterday, 09:29 PM
      0 responses
      7 views
      0 likes
      Last Post Belfortbucks  
      Started by zstheorist, Yesterday, 07:52 PM
      0 responses
      7 views
      0 likes
      Last Post zstheorist  
      Started by pmachiraju, 11-01-2023, 04:46 AM
      8 responses
      151 views
      0 likes
      Last Post rehmans
      by rehmans
       
      Working...
      X