NexusFi: Find Your Edge


Home Menu

 





Trying to learn to program


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Futuresnoob with 3 posts (1 thanks)
    2. looks_two Scalpingtrader with 1 posts (1 thanks)
    3. looks_3 bobwest with 1 posts (4 thanks)
    4. looks_4 iantg with 1 posts (3 thanks)
      Best Posters
    1. looks_one bobwest with 4 thanks per post
    2. looks_two iantg with 3 thanks per post
    3. looks_3 Scalpingtrader with 1 thanks per post
    4. looks_4 Futuresnoob with 0.3 thanks per post
    1. trending_up 1,284 views
    2. thumb_up 9 thanks given
    3. group 6 followers
    1. forum 5 posts
    2. attach_file 0 attachments




 
Search this Thread

Trying to learn to program

  #1 (permalink)
 Futuresnoob 
San Antonio Texas
 
Experience: Intermediate
Platform: Sierra Charts, TOS
Broker: Edge Clear, Rithmic
Trading: ES and Treasury Spreads
Posts: 102 since Nov 2016
Thanks Given: 50
Thanks Received: 55

Ninjaprogrammingschool.com has a set of classes for NT7. I however would like to move to NT8. Are the codes for the different platforms completely different or is it worth learning to program in NT7 if I will use NT8?

And if anyone has used this class I like to hear your thoughts. Thank you.


Jason

Sent using the NexusFi mobile app

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
Futures True Range Report
The Elite Circle
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
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
Battlestations: Show us your trading desks!
26 thanks
The Program
18 thanks
  #2 (permalink)
 iantg 
charlotte nc
 
Experience: Advanced
Platform: My Own System
Broker: Optimus
Trading: Emini (ES, YM, NQ, ect.)
Posts: 408 since Jan 2015
Thanks Given: 90
Thanks Received: 1,147

Hi Jason,

NT 7 and 8 both use C# as their PL, so learning C# is really going to be the key. in terms of the differences between 7 and 8, NT changed some a good bit of their methods to use new syntax to accomplish the same task. For example in NT 7 you will find Avg used a lot and in NT 8 this is replaced with Average. Here is a list of the major code breaking changes. https://ninjatrader.com/support/helpGuides/nt8/en-us/?code_breaking_changes.htm

I can't speak to anything regarding 3rd party classes, but if you know C# well, and you understand 7, then read the documentation I provided, you can migrate your code from 7 to 8 fairly easily.

In my case I moved all my code from 7 to 8 in just a few days. But I am a developer by trade, so this may be more of a challenge for those just getting started with programming.

Best of Luck

Ian

In the analytical world there is no such thing as art, there is only the science you know and the science you don't know. Characterizing the science you don't know as "art" is a fools game.
Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #3 (permalink)
 Futuresnoob 
San Antonio Texas
 
Experience: Intermediate
Platform: Sierra Charts, TOS
Broker: Edge Clear, Rithmic
Trading: ES and Treasury Spreads
Posts: 102 since Nov 2016
Thanks Given: 50
Thanks Received: 55



iantg View Post
Hi Jason,

NT 7 and 8 both use C# as their PL, so learning C# is really going to be the key. in terms of the differences between 7 and 8, NT changed some a good bit of their methods to use new syntax to accomplish the same task. For example in NT 7 you will find Avg used a lot and in NT 8 this is replaced with Average. Here is a list of the major code breaking changes. https://ninjatrader.com/support/helpGuides/nt8/en-us/?code_breaking_changes.htm

I can't speak to anything regarding 3rd party classes, but if you know C# well, and you understand 7, then read the documentation I provided, you can migrate your code from 7 to 8 fairly easily.

In my case I moved all my code from 7 to 8 in just a few days. But I am a developer by trade, so this may be more of a challenge for those just getting started with programming.

Best of Luck

Ian


Thank you Ian.

Jason

Started this thread Reply With Quote
Thanked by:
  #4 (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,162 since Jan 2013
Thanks Given: 57,341
Thanks Received: 26,267


iantg View Post
But I am a developer by trade, so this may be more of a challenge for those just getting started with programming.

Best of Luck

Ian

This is the main thing. If you already know how to write code -- something, any language -- then learning anything new, which all programmers have had to do many times as they have gone to different platforms and languages, is not that hard. If you really are brand new to programming, then that's another matter.

I can't suggest where to start, if that's what you need to do, but essentially any learning resource that is aimed at beginners could be of help.

The actual language you will need to know is C# ("C sharp," as in musical notation ), but you don't really need all that much of it, frankly, because you won't be really writing a full C# program. The language is the glue that ties together separate calls to already-existing NT functionality. If you have a decent grasp of programming basics, most of what you will need to do is generally going to be telling NT what to do in particular situations. In other words, 99% or so is already done for you in NT itself -- you just have to string together what is already there, at least for the most part.

As to a course in NT7, I would say -- not having any knowledge of the particular course you mentioned -- that it would probably be a mixed bag:

1. If you want to use NT8, well, they are similar, and they do both use C#, but why get a detailed knowledge of the use of NT7 functionality when you can't really use it directly in NT8?

2. On the plus side, it might be a beginning in terms of applying the C# language to do some real-world work, and without some such experience, any coding in either NT7 or 8 will be somewhat like learning Greek on your own.

Obviously, the cost would be a big factor. If you can pick up programming concepts fairly quickly, and/or if you already have some programming knowledge, NT coding may not be that big a jump for you. So your prior experience will be a big factor, as will your knack for learning if you don't have the experience.

Finally, if you are pretty OK with programming itself, a good way to understand NT is to read the code of existing indicators (which is supplied with the platform), look at the reference Ian provided, and ask questions in FIO.

So I suggest you need:
- A fundamental grasp of programming and programming logic, and you will need to use C#
- Some acquaintance with what is called the .NET framework with your C# for some of the general functionality
- The reference Ian provided may help.
- Also, Google is your friend. There is an amazing amount of free programming material out there in many languages. If you need basic C#, these may help.
- Mostly, you will want program examples of existing code that are explained to you or that you can puzzle out. A course might help. Don't spend a lot of money on it, though, because on-line coding examples are readily available via Google.

So look for some resources and program examples, read some indicators that already are out there and see if you can start to make sense of it.

Oh, and I almost forgot, the thing that many programmers never do: "RTFM" -- Read the F**ing Manual. The NT Help file gives documentation of NT functionality very well (in NT7 it's in "NinjaScript" under Help...) I would start reading this, and looking at the examples, right now if I were you. You will get an idea what you need and what you already understand.

You will still need the C# and .NET, though.

Once you catch on to what writing code is all about -- basically thinking logically and step-by-step -- it does become clear, even easy.

Good luck.

Bob.

Reply With Quote
  #5 (permalink)
 
Scalpingtrader's Avatar
 Scalpingtrader 
Hanover, Germany
Legendary Amateur Trader
 
Experience: Beginner
Platform: NinjaTrader
Trading: ES
Posts: 1,945 since Apr 2014
Thanks Given: 3,144
Thanks Received: 5,147

As Bob mentioned, one very valuable ressource is Ninjatrader's own Help Guide:

https://ninjatrader.com/support/helpGuides/nt7/ under Ninjascript - Language Reference you find all the syntax for the code snippets that are natively supported, which for the beginning is probably enough to get started.

Reply With Quote
Thanked by:
  #6 (permalink)
 Futuresnoob 
San Antonio Texas
 
Experience: Intermediate
Platform: Sierra Charts, TOS
Broker: Edge Clear, Rithmic
Trading: ES and Treasury Spreads
Posts: 102 since Nov 2016
Thanks Given: 50
Thanks Received: 55

Thank you all for your help. It is going to be a lot of work ,but I think it will be fun.

Started this thread Reply With Quote




Last Updated on March 4, 2018


© 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