Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Instructions to update the XML (thanks to cory and S trader) in case this can help anyone out. This assumes you have the indicator installed already.
1. In Ninjatrader 8, click on 'New' > 'Ninjascript Editor'
2. Choose 'Indicators' folders, then ''awxEconomicNews'
3. Look for the following layout:
4. replace 'http://www.forexfactory.com/ffcal_week_this.xml'
with 'https://cdn-nfs.faireconomy.media/ff_calendar_thisweek.xml'
5. Click 'Compile' button (arrow pointing down into a box of cubes)
If anyone could code in a buffer zone, say user-definable in minutes, so that the indicator could draw a vertical stripe on a chart before and after an event occurs and draw a vertical line where the event happens, that would be mighty fine.
How does this indicator work? Does it display the news only when it's first released? Or, does it just display the latest news altogether? I'm asking because I just installed it and I'm not seeing any news.
I made the URL changes in the code and all, by the way.
This is a really cool indicator. I made some improvements.
I had trouble reading the text so I made a configurable drop shadow. You can turn it on and off in the settings and control the color and opacity of it. Here's a couple of screen shots with a blue and black shadow at 85% opacity.
The other improvement I made was I got rid of all the calls to ToDxBrush in the Render loop. If code calls ToDxBrush in the Render handler without disposing of that brush it will memory leak.... pretty badly and the previous version was doing just that. If you've used the prev version and run for a while you may have noticed that it stops working after a while. This might be the reason.
But rather than use the using() clause to dispose the brushes I'm using OnRenderTargetChanged handler to create the DxBrushes and cache them. This is even better if you don't need to dynamically create brushes depending on data.
Elite Membership required to download: awsEconomicNews 2021-07-14.zip
This is a really cool indicator. I made some improvements.
I had trouble reading the text so I made a configurable drop shadow. You can turn it on and off in the settings and control the color and opacity of it. Here's a couple of screen shots with a blue and black shadow at 85% opacity.
This indicator is exactly what I'm looking for. Nice job!
Is it possible to add the instrument to the news feed, such as ZB, CL, ES, NQ? I understand if it's not possible.
Is it too much difficult to make TIME the first column? (Time, Country, Title, Previous, Forecast)
If its a matter of copy and paste code I can try myself if you point me out where to change (or where not to change..)
Also, may I suggest you to include this indie at Downloads.. others may like as much as I do
This is a really cool indicator. I made some improvements.
I had trouble reading the text so I made a configurable drop shadow. You can turn it on and off in the settings and control the color and opacity of it. Here's a couple of screen shots with a blue and black shadow at 85% opacity.
The other improvement I made was I got rid of all the calls to ToDxBrush in the Render loop. If code calls ToDxBrush in the Render handler without disposing of that brush it will memory leak.... pretty badly and the previous version was doing just that. If you've used the prev version and run for a while you may have noticed that it stops working after a while. This might be the reason.
But rather than use the using() clause to dispose the brushes I'm using OnRenderTargetChanged handler to create the DxBrushes and cache them. This is even better if you don't need to dynamically create brushes depending on data.
Hi,
When I switch the timeframe (3m to 5m), the news feed screen box disappeared from the chart.
This is a really cool indicator. I made some improvements.
I had trouble reading the text so I made a configurable drop shadow. You can turn it on and off in the settings and control the color and opacity of it. Here's a couple of screen shots with a blue and black shadow at 85% opacity.
The other improvement I made was I got rid of all the calls to ToDxBrush in the Render loop. If code calls ToDxBrush in the Render handler without disposing of that brush it will memory leak.... pretty badly and the previous version was doing just that. If you've used the prev version and run for a while you may have noticed that it stops working after a while. This might be the reason.
Hi,
I found the reason for not showing the text - the text colors are not read from XML file (I think) after the timeframe is changed.
The times (as suggested by someone) would need to be at first column - to help us expect the important news.
Thank you @nothingbutprofits for bringing the issue of render failure on timeframe switch to my attention. I was able to reproduce the issue and have corrected it in the attached version.
The issue was caused by resource cleanup in terminated state event. I'm not sure why this causes the problem. It should be recreating those resources in every render. I also tried to cleanup the resources at the end of the render method but that caused another problem. Although I'd like to understand the object lifecycles better I don't have time right now to study it. But I wanted to give the community a working version so I fixed the problem by just ignoring that these resources are left. It is the way the indicator was coded when I started looking at it. In the end they should be cleaned up by the CLR runtime garbage collector and so I'm not terribly worried about memory leaking.
As for the suggestion about the column order - it's a good feature request to let the user decide the order of the columns. But I'm the person to make the request to. I don't own this indicator. I just made a contribution that I thought maybe the author, @Popsicle, would find appealing and maybe he/she would consider including it the official version that's already in the software downloads area ( somewhere ).
Best,
Tim
Elite Membership required to download: awxEconomicNews 2021-08-19.zip