Coding style - great model - futures io
futures io futures trading



Coding style - great model


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Antisyzygy with 3 posts (0 thanks)
    2. looks_two droid17 with 2 posts (0 thanks)
    3. looks_3 Saroj with 1 posts (2 thanks)
    4. looks_4 Quick Summary with 1 posts (0 thanks)
    1. trending_up 1,827 views
    2. thumb_up 2 thanks given
    3. group 2 followers
    1. forum 6 posts
    2. attach_file 1 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
 

Coding style - great model

(login for full post details)
  #1 (permalink)
Arcata, CA
 
Experience: Intermediate
Platform: NinjaTrader
Trading: index futures, oil
 
Saroj's Avatar
 
Posts: 486 since Jun 2009
Thanks: 232 given, 413 received

I've attached an indicator written by Gordon Brest that epitomizes the best coding style (IMHO): very well organized; easy to see where specific code purpose lies... a great model to avoid "spaghetti code"... enjoy!

Attached Files
Register to download File Type: cs AaMA.cs (27.5 KB, 75 views)
Started this thread Reply With Quote
The following 2 users say Thank You to Saroj for this post:

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)
Denver, Colorado, USA
 
 
Posts: 36 since Aug 2011
Thanks: 6 given, 17 received


I like the use of indents, but I typically like more spaces between For loops, if statements, etc.

Reply With Quote
 
(login for full post details)
  #4 (permalink)
Baltimore
 
 
Posts: 5 since Sep 2011
Thanks: 1 given, 1 received

Hi all,

I am a Java programmer. I am new to autotrades. What language is this in? Do only certain platforms run custom code?

Thanks,

Andrew

Reply With Quote
 
(login for full post details)
  #5 (permalink)
Denver, Colorado, USA
 
 
Posts: 36 since Aug 2011
Thanks: 6 given, 17 received


droid17 View Post
Hi all,

I am a Java programmer. I am new to autotrades. What language is this in? Do only certain platforms run custom code?

Thanks,

Andrew

NinjaTrader is in C#. Its very similar, sort of like if C++ and Java had a baby. There is still garbage collection, etc.

Reply With Quote
 
(login for full post details)
  #6 (permalink)
Baltimore
 
 
Posts: 5 since Sep 2011
Thanks: 1 given, 1 received

Ah gotcha! Do certain platforms run custom auto trading code? Looks like the attached was for Ninja Trader?

Thanks,

Andrew

Reply With Quote
 
(login for full post details)
  #7 (permalink)
Denver, Colorado, USA
 
 
Posts: 36 since Aug 2011
Thanks: 6 given, 17 received


droid17 View Post
Ah gotcha! Do certain platforms run custom auto trading code? Looks like the attached was for Ninja Trader?

Thanks,

Andrew

I know NinjaTrader uses C#, but I am not sure about other platforms. I used to code Metatrader 4 and it was basically C (not C++). Tradestation, I believe, uses a scripting language called "EasyLanguage". Metatrader 5 I think uses C++, or some object oriented language which is very similar. Multicharts uses "Easy Language", which I am totally unfamiliar whether or not its a derivative of the Tradestation language. You can probably just do a quick Google search and check out some examples of other platforms. I apologize I am not more help, I have used primarily NinjaTrader and Metatrader 4.

Reply With Quote


futures io Trading Community Platforms and Indicators NinjaTrader > Coding style - great model


Last Updated on September 7, 2011


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