Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Dynamically determining BarsRequired on initialization?
Collapse
X
-
Dynamically determining BarsRequired on initialization?
Is this possible? In other words, can I do a calculation in Initialize() whereby I look at my known indicator/strategy parameters, calculate the max value of those, and set that as "BarsRequired"?Tags: None
-
Initialize() will always be called first
Definition
You can override the OnStartUp() method to initialize any variables or resources you wish to use in the custom indicator or strategy. This method is called only once immediately prior to the start of your script processing its logic in OnBarUpdate(), but after the Initialize() method.MatthewNinjaTrader Product Management
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by futtrader, 04-21-2024, 01:50 AM
|
4 responses
41 views
0 likes
|
Last Post
by futtrader
Today, 03:01 PM
|
||
Can someone turn this thinkscript into a ninjascript. 5PM CST OHL and Previous Day
by Option Whisperer
Started by Option Whisperer, Today, 09:55 AM
|
1 response
11 views
0 likes
|
Last Post
by bltdavid
Today, 02:44 PM
|
||
Started by port119, Today, 02:43 PM
|
0 responses
7 views
0 likes
|
Last Post
by port119
Today, 02:43 PM
|
||
Started by Philippe56140, Today, 02:35 PM
|
0 responses
7 views
0 likes
|
Last Post Today, 02:35 PM | ||
Started by 00nevest, Today, 02:27 PM
|
0 responses
7 views
0 likes
|
Last Post
by 00nevest
Today, 02:27 PM
|
Comment