Are there benefits or burdens to each option?
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!
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
NinjaTrader
Building a better strategy?
Collapse
X
-
Hello Conceptzx,
That wouldn't necessarily matter performance wise, calling an indicator is going to take about the same amount of processing that having the logic in the strategy would use. Generally its easier to break parts of your calculations into indicators to simplify the strategies code, the indicator just returns a value or signal to the strategy so the strategy conditions can use that value.
JesseNinjaTrader Customer Service
-
Hello Conceptzx,
The strategy will set the indicators Calculate setting to match the strategy when called from the strategy so you would want to plan around that. If your indicator uses OnEachTick but the strategy uses OnBarClose that will affect how the indicator works, there are specific ways to get around that but generally its best to design your indicators to match the strategy if you are making new indicators.
JesseNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by pibrew, Today, 06:37 AM
|
0 responses
0 views
0 likes
|
Last Post
by pibrew
Today, 06:37 AM
|
||
Started by rbeckmann05, Yesterday, 06:48 PM
|
1 response
12 views
0 likes
|
Last Post
by bltdavid
Today, 05:43 AM
|
||
Started by llanqui, Today, 03:53 AM
|
0 responses
6 views
0 likes
|
Last Post
by llanqui
Today, 03:53 AM
|
||
Started by burtoninlondon, Today, 12:38 AM
|
0 responses
11 views
0 likes
|
Last Post Today, 12:38 AM | ||
Started by AaronKoRn, Yesterday, 09:49 PM
|
0 responses
15 views
0 likes
|
Last Post
by AaronKoRn
Yesterday, 09:49 PM
|
Comment