BTW, does BarTimer work with external pre-recorded data feeds?
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
testing if source = external data feed
Collapse
X
-
testing if source = external data feed
Is there a way to know (.i.e, a variable to check) if the current data source is the external data feed (vs. the replay, or sim, or real-time choices)?
BTW, does BarTimer work with external pre-recorded data feeds?Tags: None
-
Originally posted by Josh View Post...scroll to the DisplayTime() function in the BarTimer indicator to get an idea of how to do it.
I don't believe there should be any issue with BarTimer on an external data feed.
Then I got an email from some-one who uses external data who said this check is always false when connected to external data feed. That seems odd, that BarTimer would also not work (this person does not use BarTimer).
I am also curious as to why you check the SessionActive method when plotting the PRV. The reason I ask is if connected to "External Data Feed" SessionActive is always false. I use the External Data Feed to do replay of data that is not recorded by Ninja Trader and I had comment out the check for session active.
If I should remove the check in PRV please let me know. It would simplify things.Attached Files
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Brevo, Today, 01:45 AM
|
0 responses
6 views
0 likes
|
Last Post
by Brevo
Today, 01:45 AM
|
||
Started by aussugardefender, Today, 01:07 AM
|
0 responses
3 views
0 likes
|
Last Post Today, 01:07 AM | ||
Started by pvincent, 06-23-2022, 12:53 PM
|
14 responses
242 views
0 likes
|
Last Post
by Nyman
Today, 12:47 AM
|
||
Started by TraderG23, 12-08-2023, 07:56 AM
|
9 responses
384 views
1 like
|
Last Post
by Gavini
Today, 12:29 AM
|
||
Started by oviejo, Today, 12:28 AM
|
0 responses
6 views
0 likes
|
Last Post
by oviejo
Today, 12:28 AM
|
Comment