NexusFi: Find Your Edge


Home Menu

 





strange trouble compiling ...


Discussion in NinjaTrader

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




 
Search this Thread
  #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?
Day 97: Israel-Lebanon Ceasefire Struck Overnight -- WTI …
Traders Hideout
CME Cuts Precious Metals Margins Up to 21% Starting Toda …
Commodities
The Great Rotation -- Small Caps Crushing Tech as Sectio …
Traders Hideout
More Than Capable: Hegseths War Warning Validates $114M …
Prediction Markets & Event Contracts
Expiration Day: Wall Street Rallies on Peace Hopes While …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 thanks
2026 Jlab journal
10 thanks
Lady Vols Primer: Trading Volatility Journal
8 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Trying to learn Volume and price action correlation
5 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,174 since Jan 2013
Thanks Given: 57,989
Thanks Received: 26,406



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


© 2026 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 - Downloads - Top
no new posts