strange trouble compiling ... - futures io
futures io futures trading



strange trouble compiling ...


Discussion in NinjaTrader

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




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • 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 and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

strange trouble compiling ...

(login for full post details)
  #1 (permalink)
Siegen / Germany
 
Experience: Beginner
Platform: NinjaTrader
Broker: Mirus / Continuum
Trading: ES
 
Posts: 5 since Aug 2014
Thanks: 6 given, 7 received

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

Journal Challenge February 2021 results (so far):
Competing for $1500 in prizes from Topstep
looks_oneSBtrader82 's Trading Journalby SBtrader82
(167 thanks from 31 posts)
looks_twoJust BEING a Trader: Letting Go!!by iqgod
(116 thanks from 33 posts)
looks_3Wisdom is Emptinessby Mtype
(68 thanks from 25 posts)
looks_4Deetee’s DAX Trading Journal (time based)by Deetee
(31 thanks from 17 posts)
looks_5Journal for peanuts1956by peanuts1956
(23 thanks from 13 posts)
 
 
(login for full post details)
  #3 (permalink)
Site Moderator
Sarasota FL
 
Experience: Advanced
Platform: Sierra Chart
Trading: ES, YM
 
bobwest's Avatar
 
Posts: 6,356 since Jan 2013
Thanks: 48,463 given, 21,288 received



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.

Visit my futures io Trade Journal Reply With Quote
 
(login for full post details)
  #4 (permalink)
Siegen / Germany
 
Experience: Beginner
Platform: NinjaTrader
Broker: Mirus / Continuum
Trading: ES
 
Posts: 5 since Aug 2014
Thanks: 6 given, 7 received

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


futures io Trading Community Platforms and Indicators NinjaTrader > strange trouble compiling ...


Last Updated on December 27, 2014


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Journal Challenge w/$1500 prizes from Topstep!

February
 

Battlestations! Show us your trading desk - $1,500 in prizes!

March
 

Call Option Buying: The New Pain Trade? w/Carley Garner

Elite only
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts