NexusFi: Find Your Edge


Home Menu

 





strange trouble compiling ...


Discussion in NinjaTrader

Updated
    1. trending_up 1,188 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 3 posts
    2. attach_file 0 attachments




 
Search this Thread

strange trouble compiling ...

  #1 (permalink)
 Veron 
Siegen / Germany
 
Experience: Beginner
Platform: NinjaTrader
Broker: Mirus / Continuum
Trading: ES
Posts: 5 since Aug 2014
Thanks Given: 6
Thanks Received: 7

Hi there,

I'm doing my first steps in NT programming now and I'm already in trouble. Its strange but it seems like the changes I make in the script editor are ignored sometimes. So when I edit a line of code that was responsible for a compile error the same compile error remains even when the error is corrected or the line was deleted completely. I click the save button several times but without effect ... what am I missing here?

Kennt ihr den Moment, in dem plötzlich alles Sinn ergibt und man merkt, dass der ganze Scheiß sich wirklich lohnt? Ich auch nicht!
Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Exit Strategy
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
MC PL editor upgrade
MultiCharts
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
30 thanks
Just another trading journal: PA, Wyckoff & Trends
26 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
23 thanks
GFIs1 1 DAX trade per day journal
18 thanks
  #3 (permalink)
 
bobwest's Avatar
 bobwest 
Western Florida
Site Moderator
 
Experience: Advanced
Platform: Sierra Chart
Trading: ES, YM
Frequency: Several times daily
Duration: Minutes
Posts: 8,168 since Jan 2013
Thanks Given: 57,452
Thanks Received: 26,278



Veron View Post
Hi there,

I'm doing my first steps in NT programming now and I'm already in trouble. Its strange but it seems like the changes I make in the script editor are ignored sometimes. So when I edit a line of code that was responsible for a compile error the same compile error remains even when the error is corrected or the line was deleted completely. I click the save button several times but without effect ... what am I missing here?

Well, without knowing something about the errors, it's not really possible to answer the question.

I will say that the compiler is not really ignoring the code changes. Probably there is an error further up in the code that is the real issue, and when the compiler flags a particular line, and then you change or delete that line, the real issue has not gone away.

Compiler errors are errors of syntax (wrong usage), or code structure, or something not having the right number or type of parameters, or something not being defined in the current scope context, etc. -- something formal. So, while a particular line may be flagged where the error takes place, you have to look at what is incorrect, or incomplete, or missing that is causing it.

Unfortunately, learning the knack of this probably will involve a certain amount of time, experience, and yelling at the computer while pounding on the desk....

Besides getting familiar with Ninja, you will need to be very familiar with C#, the actual language you are using. Sometimes, you will also need to understand at least some of the .NET framework to bring in additional functionality.

If you are already up on all this, I apologize -- I don't mean to talk down to you, in any case. But most of successful coding comes from doing it, and making mistakes until you have learned from them. There is a lot you can learn from reading existing code that works -- for example, indicators that do things that are similar to what you are doing. Or programming resources on the web.

But at least I can tell you not to think it's the compiler: look for a mistake that the line in question is actually a part of, and when that is fixed, the line will work also. (Assuming the changed line isn't still making the same error ....)

Good luck to you. All programming errors can be found and fixed. Sometimes it takes longer than other times. I hope it is fairly painless for you.

Bob.

Reply With Quote
  #4 (permalink)
 Veron 
Siegen / Germany
 
Experience: Beginner
Platform: NinjaTrader
Broker: Mirus / Continuum
Trading: ES
Posts: 5 since Aug 2014
Thanks Given: 6
Thanks Received: 7

Hello Bob,
thanks for the help. I now think I was confused because the errors shown where located in other files ...

Kennt ihr den Moment, in dem plötzlich alles Sinn ergibt und man merkt, dass der ganze Scheiß sich wirklich lohnt? Ich auch nicht!
Started this thread Reply With Quote




Last Updated on December 27, 2014


© 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