Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Ninjascript syntax for n bars down
Collapse
X
-
Ninjascript syntax for n bars down
The indicator method NBarsDown() returns a 0 or 1, yet the data return type is a double.. it should be a boolean, or at worst an int. To use it in a conditional check, you need to parse it, which is somewhat clumsy and confusing.. thanks.Tags: None
-
Hello CSharpTrader,
Thanks for your note.
Unfortunately plots returns a double value only and as such it is expected.
You can custom code it further and expose a intseries or a boolseries. Please refer to this sample code which demonstrates how to expose a data series which is not a plot
JoydeepNinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by GussJ, 03-04-2020, 03:11 PM
|
11 responses
3,227 views
0 likes
|
Last Post Today, 08:07 PM | ||
Started by andrewtrades, Today, 04:57 PM
|
1 response
13 views
0 likes
|
Last Post Today, 05:02 PM | ||
Started by chbruno, Today, 04:10 PM
|
0 responses
7 views
0 likes
|
Last Post
by chbruno
Today, 04:10 PM
|
||
Started by josh18955, 03-25-2023, 11:16 AM
|
6 responses
440 views
0 likes
|
Last Post
by Delerium
Today, 03:42 PM
|
||
Started by FAQtrader, Today, 03:35 PM
|
0 responses
12 views
0 likes
|
Last Post
by FAQtrader
Today, 03:35 PM
|
Comment