NexusFi: Find Your Edge


Home Menu

 





jteconnews stopped working


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Fat Tails with 25 posts (40 thanks)
    2. looks_two Silvester17 with 11 posts (14 thanks)
    3. looks_3 j0hnth0m with 11 posts (6 thanks)
    4. looks_4 steve2222 with 10 posts (10 thanks)
      Best Posters
    1. looks_one MWinfrey with 4 thanks per post
    2. looks_two Fat Tails with 1.6 thanks per post
    3. looks_3 Silvester17 with 1.3 thanks per post
    4. looks_4 steve2222 with 1 thanks per post
    1. trending_up 63,863 views
    2. thumb_up 116 thanks given
    3. group 38 followers
    1. forum 156 posts
    2. attach_file 41 attachments




 
Search this Thread

jteconnews stopped working

  #41 (permalink)
 
Doppio's Avatar
 Doppio 
Burnie Tasmania
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Mirus Zenfire
Trading: 6E
Posts: 42 since May 2010
Thanks Given: 19
Thanks Received: 11

Johnthom- firstly let me say how grateful I am for you work in this indicator as it has saved me the hassle of keeping forex factory open and constantly checking things other than my charts.
I know nothing about programming except some stupid wizard stuff and as yet my trading has not brought in money so I am super grateful for people like you who are willing to share stuff for free.
I had the same issue the other day with this indicator ( at least I presume so) all the symptoms are the same.
I have win 7 64bit and I just reinstalled NT7 beta 3 and have been waiting for some news to pop up in the window. So far nothing.
So am I basically just waiting for a connecton to the FF server to start up again? Or do I need to download a differnt news reader indicator?
Thanks again
doppio

Doppio
Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
Exit Strategy
NinjaTrader
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Diary of a simple price action trader
26 thanks
Just another trading journal: PA, Wyckoff & Trends
24 thanks
Tao te Trade: way of the WLD
22 thanks
My NQ Trading Journal
16 thanks
HumbleTraders next chapter
9 thanks
  #42 (permalink)
 
redratsal's Avatar
 redratsal 
Milan (I)
 
Experience: Advanced
Platform: Ninjatrader
Broker: Kinetick
Trading: FDAX,6E,CL,YM,NQ,ES
Posts: 1,648 since Oct 2010
Thanks Given: 1,215
Thanks Received: 2,090


Doppio View Post
Johnthom- firstly let me say how grateful I am for you work in this indicator as it has saved me the hassle of keeping forex factory open and constantly checking things other than my charts.
I know nothing about programming except some stupid wizard stuff and as yet my trading has not brought in money so I am super grateful for people like you who are willing to share stuff for free.
I had the same issue the other day with this indicator ( at least I presume so) all the symptoms are the same.
I have win 7 64bit and I just reinstalled NT7 beta 3 and have been waiting for some news to pop up in the window. So far nothing.
So am I basically just waiting for a connecton to the FF server to start up again? Or do I need to download a differnt news reader indicator?
Thanks again
doppio

In the setup menu of the indicator did you try to switch from FF to DailyFX, in my case it did solve the problem

Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #43 (permalink)
 MetalTrade 
 
Posts: 1,055 since May 2010


Today, under forexfactory.com jteconnews reader 2.0.0.3 is not working

Reply With Quote
  #44 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


j0hnth0m View Post
Typically not an issue. This is more of a warning that future versions of the runtime may not support it. As long as it compiles you should be okay.

I wish that I could recreate it but alas can not. If you have programming skills then I would suggest debugging with Visual Studio (Express is free). What I would do is remove the indicators completely. Then fire up NT... create a new indicator... copy the code from this indicator into the new indicator. Set the Debug option on and then compile it. Then from Visual Studio, debug the NinjaTrader process, open the indicator file, set a break point at each indicator method. Then load the indicator on the chart and step through the code until you identify the problem area.

(actually, why not just download the addin version and call it day?)

This is too easy an answer. This case is interesting, because it tells us something about the architecture of NinjaTrader and also teaches us how to do proper coding.

I think it is no problem, if an indicator does not work for whatever reason. But this indicator led to a full-blown NinjaTrader crash, even if it was not used. Also it took me hours to identify it as the culprit, as it did not throw any exceptions. This should not happen.


Opening the indicator dialogue box of a chart

When opening the indicator dialogue in Ninjatrader part of the code of the indicators is already executed. I assume that this part is the code contained in the Variables and Properties Regions. After all, for being able to add an indicator, the properties need to be shown in the dialogue box just for allowing to select the appropriate parameters. This means that the variables of the indicator are called at this moment.

So it is extremely important not to write any potentially poisonous code into these sections, as it may crash NinjaTrader.

This also tells us that the indicator does create the problem prior to its Initialization at the stage where the variables are declared.


Modifying the code

There is only one line where variables are declared that can cause such a problem, which is
 
Code
 // class variables
private const string ffNewsUrl = @"http://cloud.forexfactory.com/ffcal_week_this.xml";
Replacing this line with
 
Code
 // class variables
private string ffNewsUrl = "";
and
 
Code
protected override void OnStartUp()
{
	try
	{
		ffNewsUrl = @"http://cloud.forexfactory.com/ffcal_week_this.xml"; 
	}
	catch (Exception ex)
	{
		Print("Caught exception in OnStartUp: " + ex.ToString());
	}
}
solves the problem.


Results

With the above modifcations

- the indicator does not crash NinjaTrader
- can be added to a chart and will display a news load error
- will throw a proper exception to the Print File (System.UriFormatException)


Conclusions

This is a wonderful example for beginning coders - who are not yet programmers - to learn how to avoid trouble:

(1) Don't use any potentially poisonous code when declaring variables.
(2) NinjaTrader has a nice place called OnStartUp(), where the dirty stuff can be done after initialization.
(3) Use try{} catch{}, just in case something goes wrong.

Thanks for the lesson.

Reply With Quote
  #45 (permalink)
 j0hnth0m 
Elk River, MN
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Amp Futures/Zen-Fire
Trading: ES
Posts: 30 since Sep 2009
Thanks Given: 7
Thanks Received: 60


redratsal View Post
Hi I am running NT 7.0.1000.2 under 32bit (W Vista) with JTEN reader 2.0.0.3, the reader do not work under ForexFactory but works fine under DailyFX.

Hope it can help the process

The ForexFactory site feed is still down. Not sure why. But this will present the same issue with either indicator. Fortunately the add-in version has a secondary feed from DailyFx that still works fine. Perhaps Fat Tails can take on the task of converting the old version to use the DailyFX feed???

I did try to load the FF feed xml directly from the FF web site and got the same result. So I don't know if they are discontinuing the feed or what's up. I'd email them to ask but they never bother responding so I won't waste my time. For US news events the DailyFX is just as good as FF and has historical "actual" values as well.

Reply With Quote
  #46 (permalink)
 j0hnth0m 
Elk River, MN
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Amp Futures/Zen-Fire
Trading: ES
Posts: 30 since Sep 2009
Thanks Given: 7
Thanks Received: 60


redratsal View Post
Hi I am running NT 7.0.1000.2 under 32bit (W Vista) with JTEN reader 2.0.0.3, the reader do not work under ForexFactory but works fine under DailyFX.

Hope it can help the process


Fat Tails View Post
This is too easy an answer. This case is interesting, because it tells us something about the architecture of NinjaTrader and also teaches us how to do proper coding.

I think it is no problem, if an indicator does not work for whatever reason. But this indicator led to a full-blown NinjaTrader crash, even if it was not used. Also it took me hours to identify it as the culprit, as it did not throw any exceptions. This should not happen.


Opening the indicator dialogue box of a chart

When opening the indicator dialogue in Ninjatrader part of the code of the indicators is already executed. I assume that this part is the code contained in the Variables and Properties Regions. After all, for being able to add an indicator, the properties need to be shown in the dialogue box just for allowing to select the appropriate parameters. This means that the variables of the indicator are called at this moment.

So it is extremely important not to write any potentially poisonous code into these sections, as it may crash NinjaTrader.

This also tells us that the indicator does create the problem prior to its Initialization at the stage where the variables are declared.


Modifying the code

There is only one line where variables are declared that can cause such a problem, which is
 
Code
 // class variables
private const string ffNewsUrl = @"http://cloud.forexfactory.com/ffcal_week_this.xml";
Replacing this line with
 
Code
 // class variables
private string ffNewsUrl = "";
and
 
Code
protected override void OnStartUp()
{
	try
	{
		ffNewsUrl = @"http://cloud.forexfactory.com/ffcal_week_this.xml"; 
	}
	catch (Exception ex)
	{
		Print("Caught exception in OnStartUp: " + ex.ToString());
	}
}
solves the problem.


Results

With the above modifcations

- the indicator does not crash NinjaTrader
- can be added to a chart and will display a news load error
- will throw a proper exception to the Print File (System.UriFormatException)


Conclusions

This is a wonderful example for beginning coders - who are not yet programmers - to learn how to avoid trouble:

(1) Don't use any potentially poisonous code when declaring variables.
(2) NinjaTrader has a nice place called OnStartUp(), where the dirty stuff can be done after initialization.
(3) Use try{} catch{}, just in case something goes wrong.

Thanks for the lesson.


Interesting. Not sure why declaring and initializing a class-level variable would make any difference. When .net creates a class instance all class-level variables are initialized before any constructors or methods, private or public can be accessed. So I don't understand how this makes a difference but if it does I'm glad to hear it. I have never, in my experience, see a case where setting a string variable to a string can crash something. Frankly it makes me question exactly what NT is doing to the class loader. Since the beta version is using a new obfuscater (CliSecure). I'm guess that this is somehow breaking some rules around class loading in order to implement their obfuscation stuff. Don't know, but it is certainly strange.

Reply With Quote
  #47 (permalink)
 MetalTrade 
 
Posts: 1,055 since May 2010


j0hnth0m View Post
I did try to load the FF feed xml directly from the FF web site and got the same result. So I don't know if they are discontinuing the feed or what's up. I'd email them to ask but they never bother responding so I won't waste my time. For US news events the DailyFX is just as good as FF and has historical "actual" values as well.

Hello, thanks for your indicator. Maybe you can set the default then to DailyFX instead of forexfactory otherwise you will have a bunch of people installing your indicator and thinking it's not working.

Thanks.

Reply With Quote
  #48 (permalink)
 j0hnth0m 
Elk River, MN
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Amp Futures/Zen-Fire
Trading: ES
Posts: 30 since Sep 2009
Thanks Given: 7
Thanks Received: 60


MetalTrade View Post
Hello, thanks for your indicator. Maybe you can set the default then to DailyFX instead of forexfactory otherwise you will have a bunch of people installing your indicator and thinking it's not working.

Thanks.


I'll put out an update. Thanks.

Reply With Quote
  #49 (permalink)
TAJTrades
Here, GA
 
Posts: 158 since Jun 2009
Thanks Given: 1
Thanks Received: 86

The ForexFactory source for News Events Feeds is still still down. Have sent an email to Twee at FF asking if this is a permanent issue or something that will be fixed. Have not heard back yet.

Reply With Quote
  #50 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102



j0hnth0m View Post
The ForexFactory site feed is still down. Not sure why. But this will present the same issue with either indicator. Fortunately the add-in version has a secondary feed from DailyFx that still works fine. Perhaps Fat Tails can take on the task of converting the old version to use the DailyFX feed???

@j0hnth0m

thanks for your suggestion. I am bored all day long, and I am very grateful that you have found something which will occupy me for some time.

Unfortunately, there is enough work involved in maintaining my own set of free indicators, so I won't mow my neighbors garden.

Reply With Quote




Last Updated on June 19, 2021


© 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