OTOH, since you can drawText to the chart, independent of the barSeries, it would be possible to print to the chart the time between trades. Whether the printout will ever be readable in any normally liquid market is a different kettle of fish.
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
Draw TimeSpan
Collapse
X
-
Originally posted by dsraider View Post
OTOH, since you can drawText to the chart, independent of the barSeries, it would be possible to print to the chart the time between trades. Whether the printout will ever be readable in any normally liquid market is a different kettle of fish.
-
Originally posted by dsraider View PostAnd which just started working without making any changes (cue horror music).
Comment
-
Oh I see what you're saying. Needed to switch to a longer timeframe in order to check but you're absolutely right. Weird because I was able to duplicate the T&S window and figured I'd be able to simply measure the span between timestamped trades. Stubborn ox that I am, I still think it's possible, so I'll keep trying. In the meantime, I guess I'd better get used to 1 tick charts
Comment
-
Follow-up question...
In post #14, I show how my plot is "not working correctly." In # 15, I retract my statement. What's actually happening is the plot is so unbelievably high during the first bar that it doesn't allow the bars thereafter to scale properly (at least not to the human eye). Once bar one is off screen, the scaling begins to "work."
My guess is the initial calculation is using a bar from a long time ago (Jan 1st, maybe?), which would explain its high number. Since this calculation is supposed to reflect time in milliseconds since the beginning of the current bar, is there anything I can add to the code to ensure that?
if(Historical) return;
BarsRequired = 1;
both did nothing.
Comment
-
Hello dsraider,
Thanks for your post.
In absence of the code its difficult to say anything. From the screenshot it appears that the values are calculating in realtime. So Historical or BarsRequired wont do any good.
Please let me know if I can assist you any further.JoydeepNinjaTrader Customer Service
Comment
-
Originally posted by dsraider View PostFollow-up question...
In post #14, I show how my plot is "not working correctly." In # 15, I retract my statement. What's actually happening is the plot is so unbelievably high during the first bar that it doesn't allow the bars thereafter to scale properly (at least not to the human eye). Once bar one is off screen, the scaling begins to "work."
My guess is the initial calculation is using a bar from a long time ago (Jan 1st, maybe?), which would explain its high number. Since this calculation is supposed to reflect time in milliseconds since the beginning of the current bar, is there anything I can add to the code to ensure that?
if(Historical) return;
BarsRequired = 1;
both did nothing.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by funk10101, Today, 09:43 PM
|
0 responses
1 view
0 likes
|
Last Post
by funk10101
Today, 09:43 PM
|
||
Started by pkefal, 04-11-2024, 07:39 AM
|
11 responses
36 views
0 likes
|
Last Post
by jeronymite
Today, 09:37 PM
|
||
Started by bill2023, Yesterday, 08:51 AM
|
8 responses
44 views
0 likes
|
Last Post
by bill2023
Today, 09:27 PM
|
||
Started by yertle, Today, 08:38 AM
|
6 responses
25 views
0 likes
|
Last Post
by ryjoga
Today, 09:17 PM
|
||
Started by algospoke, Yesterday, 06:40 PM
|
2 responses
24 views
0 likes
|
Last Post
by algospoke
Today, 07:04 PM
|
Comment