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
Using Indicators on Cumulative Order Flow Delta
Collapse
X
-
Using Indicators on Cumulative Order Flow Delta
Will "IsSuspendedWhileInactive == true" cause problems with running an indicator on Cumulative Order Flow Delta data in live trading? I am having issues with a strategy on live data which does not occur in backtest. Note, I am running the backtest in tick replay since I have to for obvious reasons.Tags: None
-
Note, my problem is I am holding an int value in a series representing bar types as defined by the indicator which is running on the cumulative order flow delta data now provided by Ninjatrader. The int value is correctly assigned in backtest on tick replay but does not get assigned while running on live data.
I am confident I started the strategy during session down time between 4 PM and 5 PM CST yesterday. I am trading COMEX futures.
-
Hello liquid50,
Thanks for your post.
Will "IsSuspendedWhileInactive == true" cause problems with running an indicator on Cumulative Order Flow Delta data in live trading?
I am having issues with a strategy on live data which does not occur in backtest.Josh G.NinjaTrader Customer Service
Comment
-
Originally posted by NinjaTrader_JoshG View PostHello liquid50,
Thanks for your post.
Originally posted by NinjaTrader_JoshG View PostIs this a condition you have created, or do you just mean setting this property to "true" inside State.SetDefaults?
Originally posted by NinjaTrader_JoshG View PostWhat are the results you are getting for each one? Also, who is your data provider?
I use Ninjatrader Continuum at the moment for market data.
Comment
-
I would not expect that setting IsSuspendedWhileInactive to true would cause a problem with using that indicator in your strategies logic.
I think we may be having an issue with how Tick Replay is being implemented. Are you only using it to utilize the Cumulative Delta indicator?
Can you provide a sample of how you are implementing your Tick Replay logic? Also, please go into more detail about these variable bartype ints you mentioned. Any samples of how that is being used would be appreciated as well.Josh G.NinjaTrader Customer Service
Comment
-
Originally posted by NinjaTrader_JoshG View PostI would not expect that setting IsSuspendedWhileInactive to true would cause a problem with using that indicator in your strategies logic.
I think we may be having an issue with how Tick Replay is being implemented. Are you only using it to utilize the Cumulative Delta indicator?
Can you provide a sample of how you are implementing your Tick Replay logic? Also, please go into more detail about these variable bartype ints you mentioned. Any samples of how that is being used would be appreciated as well.
Code:bartype[0] = AuADXVMA2.bartype; dailybar[0] = AuADXVMA1.bartype; orderflowclose[0] = (orderflowclose[1] + OrderFlowCumulativeDelta(CumulativeDeltaType.BidAsk, CumulativeDeltaPeriod.Bar, 0).DeltaClose[0]);
I've attached the ADXVMA I am using to establish the bartype. It was free on the internet. As you can see I added a public int variable, and at the end where the bars are colored based on criteria I assigned each color of bar a public int value.
Is it possible I need to reference series' CurrentBars in the above?Attached FilesLast edited by liquid150; 04-27-2018, 11:23 AM.
Comment
-
Please write in to Platform(at)NinjaTrader(dot)com and reference this forum post. Please include your log and trace files, and strategy.
You may follow the steps below to manually attach your log,trace, and strategy files to your response.
Open your NinjaTrader folder under My Documents.
Right click on the 'log' and 'trace' folders and select Send To> Compressed (zipped) Folder.
Send the 2 compressed folders as attachments to this email.
Once complete, you can delete these compressed folders.
You can export your strategy by going to Tools > Export > NinjaScript Add On > Add > select your strategy > OK > Export > name the file 'NTsupport' > Save. The file will be located under Documents\NinjaTrader 8\bin\Custom\ExportNinjaScript. Please attach the file to your response.
Thanks; I look forward to resolving this item.Josh G.NinjaTrader Customer Service
Comment
-
Originally posted by NinjaTrader_JoshG View PostPlease write in to Platform(at)NinjaTrader(dot)com and reference this forum post. Please include your log and trace files, and strategy.
You may follow the steps below to manually attach your log,trace, and strategy files to your response.
Open your NinjaTrader folder under My Documents.
Right click on the 'log' and 'trace' folders and select Send To> Compressed (zipped) Folder.
Send the 2 compressed folders as attachments to this email.
Once complete, you can delete these compressed folders.
You can export your strategy by going to Tools > Export > NinjaScript Add On > Add > select your strategy > OK > Export > name the file 'NTsupport' > Save. The file will be located under Documents\NinjaTrader 8\bin\Custom\ExportNinjaScript. Please attach the file to your response.
Thanks; I look forward to resolving this item.
I am getting an error zipping up my log and trace files. Am I correct to assume I need to do this while I am not running a different strategy on live market data?
I spent the weekend double checking my work. I am still getting all zeros for bartypes on live data while it works fine on backtest.
Comment
-
I am not certain what the error is a result of, but you can send your log and trace files through the platform by going to the Control Center>Help>Mail to Platform Support.
Ensuring 'Log and Trace Files' is checked will include these files. This is checked by default. You may include your script as an attachment by using the "Attachment" field at the top of the form.Josh G.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by volIQ, 03-27-2024, 04:28 PM
|
3 responses
21 views
0 likes
|
Last Post
by RJay
Today, 05:41 AM
|
||
Started by Nickgiaco, 02-26-2024, 10:23 AM
|
2 responses
72 views
0 likes
|
Last Post Today, 05:12 AM | ||
Started by Johndc, Today, 04:39 AM
|
0 responses
4 views
0 likes
|
Last Post
by Johndc
Today, 04:39 AM
|
||
Started by johntraderuser2, Today, 02:34 AM
|
0 responses
9 views
0 likes
|
Last Post Today, 02:34 AM | ||
Started by IanS00, 03-27-2024, 11:24 AM
|
2 responses
13 views
0 likes
|
Last Post Today, 02:00 AM |
Comment