• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Initialize() VS OnStartUp()

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

  • NinjaTrader_ChelseaB
    replied
    Hello selnomeria,

    If it is Initialize() then it sets the default for property in the Indicator or Strategy window.

    If it is in OnStartUp() this will not set the default and will set the value just as the script starts (and will not be changeable in the UI)

    Leave a comment:


  • ttodua
    started a topic Initialize() VS OnStartUp()

    Initialize() VS OnStartUp()

    I am not much advanced progrmmer in net, and cant find out the difference between these two methods...

    can anyone tell me why i should use Initilialize method at all for such stuff:


    CalculateOnBarClose = true;
    TraceOrders = true;
    SetProfitTarget("Short_signal", CalculationMode.Ticks, 21);
    ....


    may i move all those stuff into OnStartUp?

Latest Posts

Collapse

Topics Statistics Last Post
Started by junposlee, Today, 02:59 PM
1 response
4 views
0 likes
Last Post bltdavid  
Started by ArthurH, Today, 11:52 AM
1 response
12 views
0 likes
Last Post reubenlasky  
Started by Kentoes, Today, 04:20 PM
0 responses
6 views
0 likes
Last Post Kentoes
by Kentoes
 
Started by Fiocco, Today, 05:59 AM
0 responses
16 views
0 likes
Last Post Fiocco
by Fiocco
 
Started by catinabag, Today, 06:09 AM
0 responses
6 views
0 likes
Last Post catinabag  
Working...
X