NexusFi: Find Your Edge


Home Menu

 





Economic News Indicator for NT8 available for download


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Popsicle with 21 posts (57 thanks)
    2. looks_two timendaGain with 6 posts (12 thanks)
    3. looks_3 Aregon with 6 posts (2 thanks)
    4. looks_4 sagor with 4 posts (2 thanks)
      Best Posters
    1. looks_one willphule with 4 thanks per post
    2. looks_two selnomeria with 3.5 thanks per post
    3. looks_3 Popsicle with 2.7 thanks per post
    4. looks_4 timendaGain with 2 thanks per post
    1. trending_up 46,155 views
    2. thumb_up 131 thanks given
    3. group 50 followers
    1. forum 92 posts
    2. attach_file 15 attachments




 
Search this Thread

Economic News Indicator for NT8 available for download

  #71 (permalink)
 JustinIsHere 
Montreal, Canada
 
Experience: Beginner
Platform: NinjaTrader, Multicharts
Trading: ES
Frequency: Never
Duration: Never
Posts: 113 since Dec 2011
Thanks Given: 57
Thanks Received: 127

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:
 
Code
namespace NinjaTrader.NinjaScript.Indicators
	public class awxEconomicNews : Indicator
	    #region Constants
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.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Futures True Range Report
The Elite Circle
Are there any eval firms that allow you to sink to your …
Traders Hideout
Exit Strategy
NinjaTrader
ZombieSqueeze
Platforms and Indicators
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
39 thanks
NexusFi site changelog and issues/problem reporting
26 thanks
The Program
18 thanks
GFIs1 1 DAX trade per day journal
18 thanks
  #72 (permalink)
 nkp9999 
London, England
 
Experience: Intermediate
Platform: MetaTrader
Broker: InfinityBrokers/Transact
Trading: ES
Posts: 19 since Nov 2009
Thanks Given: 2
Thanks Received: 2


JustinIsHere View Post
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:
 
Code
namespace NinjaTrader.NinjaScript.Indicators
	public class awxEconomicNews : Indicator
	    #region Constants
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.

It seems the NEWS indicator is not working because of the URL used. Can anyone help?

Thanks.

Reply With Quote
  #73 (permalink)
 steve2222 
Auckland, New Zealand
 
Experience: Beginner
Platform: Sierra Chart
Broker: AMP/CQG
Trading: Whatever moves in my timezone
Posts: 1,896 since Sep 2009
Thanks Given: 3,379
Thanks Received: 1,540



nkp9999 View Post
It seems the NEWS indicator is not working because of the URL used. Can anyone help?

Thanks.

See the answer/solution in this thread/post:

Prediction is very difficult, especially about the future - Niels Bohr, Danish Physicist
Reply With Quote
  #74 (permalink)
 sdotcarter 
Atlanta, GA
 
Experience: Intermediate
Platform: NT8
Trading: Futures
Posts: 19 since Jun 2021
Thanks Given: 6
Thanks Received: 11

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.

Reply With Quote
  #75 (permalink)
 timendaGain 
New York, NY
 
Experience: Beginner
Platform: NinjaTrader
Broker: NinjaTrader
Trading: ES MES
Posts: 792 since Nov 2010
Thanks Given: 149
Thanks Received: 235

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.



Attached Files
Elite Membership required to download: awsEconomicNews 2021-07-14.zip
Visit my NexusFi Trade Journal Reply With Quote
  #76 (permalink)
 
nothingbutprofits's Avatar
 nothingbutprofits 
rochester new york/USA
 
Experience: Advanced
Platform: ThinkOrSwim & NT
Broker: NT, TOS
Trading: ES NQ RTY CL NG
Posts: 78 since Feb 2021
Thanks Given: 245
Thanks Received: 48


timendaGain View Post
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.

Reply With Quote
  #77 (permalink)
 MrTrader 
ITAJAI SC/BRAZIL
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Clear Corretora
Trading: DOLFUT, WINFUT
Posts: 332 since Jun 2014
Thanks Given: 1,314
Thanks Received: 225


timendaGain View Post

Very Nice! Thank you!

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

https://nexusfi.com/local_links.php?catid=27

Reply With Quote
Thanked by:
  #78 (permalink)
 
nothingbutprofits's Avatar
 nothingbutprofits 
rochester new york/USA
 
Experience: Advanced
Platform: ThinkOrSwim & NT
Broker: NT, TOS
Trading: ES NQ RTY CL NG
Posts: 78 since Feb 2021
Thanks Given: 245
Thanks Received: 48


timendaGain View Post
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.

Reply With Quote
  #79 (permalink)
 
nothingbutprofits's Avatar
 nothingbutprofits 
rochester new york/USA
 
Experience: Advanced
Platform: ThinkOrSwim & NT
Broker: NT, TOS
Trading: ES NQ RTY CL NG
Posts: 78 since Feb 2021
Thanks Given: 245
Thanks Received: 48


timendaGain View Post
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.

Reply With Quote
  #80 (permalink)
 timendaGain 
New York, NY
 
Experience: Beginner
Platform: NinjaTrader
Broker: NinjaTrader
Trading: ES MES
Posts: 792 since Nov 2010
Thanks Given: 149
Thanks Received: 235


@nothingbutprofits
@MrTrader
@Popsicle

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

Attached Files
Elite Membership required to download: awxEconomicNews 2021-08-19.zip
Visit my NexusFi Trade Journal Reply With Quote
Thanked by:




Last Updated on November 7, 2023


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts