Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Relative Bar Number
Collapse
X
-
Relative Bar Number
The mini routine attached worked fine in NT 6.5 to define the relative bar number in the databox. In NT 7 it doesn't work.Tags: None
-
a) no need to loop through all bars on ever OnBarUpdate call. A simpleCode:protected override void OnBarUpdate() { Bar.Set(CurrentBar); }
b) the issue is here:
Color.FromKnownColor(KnownColor.Transparent)
I believe Transparent plots now have a different logic. Just set any non-transparent color and you should be good
-
The color seems to be the reason of not working at all.
The code you suggest, gives to the nth bar the number (n-1). The code I suggest and need, gives to the last bar 0, the bar before 1 etc. ... that means the mirror image
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Waxavi, 04-19-2024, 02:10 AM
|
4 responses
53 views
0 likes
|
Last Post
by sonia0101
Today, 04:02 PM
|
||
Started by cmtjoancolmenero, Today, 03:58 PM
|
0 responses
3 views
0 likes
|
Last Post Today, 03:58 PM | ||
Net Change
by Segwin
Started by Segwin, 05-07-2018, 02:15 PM
|
11 responses
1,777 views
0 likes
|
Last Post
by aligator
Today, 03:54 PM
|
||
Started by trilliantrader, Today, 03:01 PM
|
1 response
7 views
0 likes
|
Last Post Today, 03:16 PM | ||
Started by geddyisodin, Today, 05:20 AM
|
6 responses
36 views
0 likes
|
Last Post
by geddyisodin
Today, 03:14 PM
|
Comment