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
Market Analyzer Graph Issue
Collapse
X
-
Hello,
Thank you for this sample, I was able to see what you have pictured happening on my end. I am currently investigating any possible solutions. If I cannot find any solution here I will be submitting a bug report. Once I have further details I will reply back here.
Edit: You can track this request using the following ID: 12576
I look forward to being of further assistance.Last edited by NinjaTrader_Jesse; 03-07-2018, 03:15 PM.
-
Originally posted by NinjaTrader_PatrickH View PostHello NJA_MC,
Thank you for your response.
A MarketAnalyzerColumn has no concept of OnBarUpdate as there is no bar series applied. You would use OnMarketData or OnFundamentalData:- OnMarketData: https://ninjatrader.com/support/help...marketdata.htm
- OnFundamentalData: https://ninjatrader.com/support/help...mentaldata.htm
If you wish to use OnBarUpdate then create an indicator and pass it through the Indicator MarketAnalyzerColumn in the Market Analyzer.
Please let me know if you have any questions.
I have uploaded my last attempt at trying to illustrate the problem. We can debate if the OnBarUpdate() works as the data series is selected through the config dialog, but what I have done is changed the test script to use the "OnMarketData()", the same problem occurs. The DATA in the cell is correct, it is simply not rendered correctly upon "Reload", some of the cells turn green.
This meets your requirements for a MAC, but still doesn't render properly upon reload. Make sure you have 3 or 4 instruments in the MA panel.Attached Files
Leave a comment:
-
Hello NJA_MC,
Thank you for your response.
A MarketAnalyzerColumn has no concept of OnBarUpdate as there is no bar series applied. You would use OnMarketData or OnFundamentalData:- OnMarketData: https://ninjatrader.com/support/help...marketdata.htm
- OnFundamentalData: https://ninjatrader.com/support/help...mentaldata.htm
If you wish to use OnBarUpdate then create an indicator and pass it through the Indicator MarketAnalyzerColumn in the Market Analyzer.
Please let me know if you have any questions.
Leave a comment:
-
Originally posted by NinjaTrader_PatrickH View PostHello NJA_MC,
Thank you for your response.
Do you have an example script that updates? The scripts you provided (attached here on this post) do not update their CurrentValue past the Configure State.
Can you attach a simplified version of your actual Market Analyzer Columns that use a MarketData or FundamentalData event to update their CurrentValue?
I look forward to your response.
I have attached a version where the update is in the OnBarUpdate(), I get the same results. As you can see, the values in the panel are correct +10 & -10, but the color is wrong. The only problem I am having is the color.
RegardsAttached Files
Leave a comment:
-
Hello NJA_MC,
Thank you for your response.
Do you have an example script that updates? The scripts you provided (attached here on this post) do not update their CurrentValue past the Configure State.
Can you attach a simplified version of your actual Market Analyzer Columns that use a MarketData or FundamentalData event to update their CurrentValue?
I look forward to your response.Attached Files
Leave a comment:
-
Originally posted by NinjaTrader_PatrickH View PostHello NJA_MC,
Thank you for your patience.
I see what you are detailing now. However, you are only seeing this on Static values that do not update on an event like OnMarketData?
I look forward to your response.
Leave a comment:
-
Hello NJA_MC,
Thank you for your patience.
I see what you are detailing now. However, you are only seeing this on Static values that do not update on an event like OnMarketData?
I look forward to your response.
Leave a comment:
-
Originally posted by NinjaTrader_PatrickH View PostHello NJA_MC,
Thank you for your response.
The Market Analyzer is not designed to display graphics like the chart. Can you detail how you are drawing these bar graphs in the cells of the columns?
I look forward to your response.
Leave a comment:
-
Hello NJA_MC,
Thank you for your response.
The Market Analyzer is not designed to display graphics like the chart. Can you detail how you are drawing these bar graphs in the cells of the columns?
I look forward to your response.
Leave a comment:
-
Code for Debugging
Originally posted by NinjaTrader_PatrickH View PostHello NJA_MC,
Thank you for your response.
You are correct that the update will not occur until the update of data occurs. There is no means to force a visual update to the Market Analyzer. The Market Analyzer is not meant to display visual items as a chart is meant to and therefore the functions available for the Market Analyzer in NinjaScript do not include visual elements.
Please let me know if you have any questions.
It would be nice if the "Bar Graph" function could be recalculated on a reload. Seems like that is what is causing the problem. When I reload the script I would expect the results to be the same as if I duplicate the chart and this isn't the case so something is cached in that case. The values are right in the cells, but the top level "Bar Graph" failed to set the color to red in this case.
EDIT: After some testing, this looks like a bug. I have created a few test MACs and a template. Once you have around 3 instruments when you refresh the window (Reload or F5), some of the "TestMinus 10" forgets to turn back to red. It seems random. Can you open a bug report?
Leave a comment:
-
Hello NJA_MC,
Thank you for your response.
You are correct that the update will not occur until the update of data occurs. There is no means to force a visual update to the Market Analyzer. The Market Analyzer is not meant to display visual items as a chart is meant to and therefore the functions available for the Market Analyzer in NinjaScript do not include visual elements.
Please let me know if you have any questions.
Leave a comment:
-
Hi Patrick,
I think they are custom MA Columns (not sure how to do the Indicator type).
I have a few screen shots to help you understand. There is a before and after reload and the MA Config. It seems like a simple "Reload NinjaScipt" on the MA window causes the "red" to disappear. Comes back over time, I would imagine once the cells are updated by the script (which can take hours based upon market conditions).
So it looks like when the NinjaScript is reloaded, maybe there is some cashed value or something are not cleared so when the script reloads the "Bar Graph" doesn't check the color setting until the "CurrentValue" is updated by the script.
Leave a comment:
-
Hello NJA_MC,
Thank you for your post.
There is no function directly correlated to update the visual display of the Market Analyzer through NinjaScript.
Are these custom MarketAnalyzerColumns or are these Indicator columns in the Market Analyzer with custom Indicators?
You refer to using the MarketAnalyzerColumn graphic display. Can you detail how you are achieving this?
I look forward to your response.
Leave a comment:
-
Market Analyzer Graph Issue
I am using a Market Analyzer Column with the graphic display in NinjaScript which works fine. If reloaded during the break when the market it closed, it seems like everything turns green and might need to wait for another bar which updates the cell value before the color is fixed. The value is correct, they range from -6 to +6, but the values below 0 that should be red remain green. Even after reloading NS, I get the same display. The "Sale Graphs in Analyzer example" is the image after about an hour after the market re-opens. I have circles a few of the negative numbers which should be red.
I needed to duplicate the MA window to get the colors to update properly. This can be seen in the "Duplicated Analyzer Example".
Is there something I need to add in the OnBarUpdate() to refresh this window? I do not update the "CurrentValue" variable on each bar, but only when the value is changed. This happens maybe every 10 bars.
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by helpwanted, Today, 03:06 AM
|
0 responses
3 views
0 likes
|
Last Post
by helpwanted
Today, 03:06 AM
|
||
Started by Brevo, Today, 01:45 AM
|
0 responses
7 views
0 likes
|
Last Post
by Brevo
Today, 01:45 AM
|
||
Started by aussugardefender, Today, 01:07 AM
|
0 responses
5 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
|
Leave a comment: