Trading Articles
Article Categories
Article Tools
Coding style - great model
Updated September 7, 2011
Top Posters
looks_one
Antisyzygy
with 3 posts (0 thanks)
looks_two
droid17
with 2 posts (0 thanks)
looks_3
Saroj
with 1 posts (2 thanks)
looks_4
Quick Summary
with 1 posts (0 thanks)
trending_up
1,827 views
thumb_up
2 thanks given
group
2 followers
forum
6 posts
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)
Coding style - great model
(login for full post details)
#1 (permalink )
Arcata, CA
Experience: Intermediate
Platform: NinjaTrader
Trading: index futures, oil
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!
The following 2 users say Thank You to Saroj for this post:
Best Threads (Most Thanked) in the last 7 days on futures io
(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.
(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
(login for full post details)
#5 (permalink )
Denver, Colorado, USA
Posts: 36 since Aug 2011
Thanks: 6 given,
17
received
droid17
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.
(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
(login for full post details)
#7 (permalink )
Denver, Colorado, USA
Posts: 36 since Aug 2011
Thanks: 6 given,
17
received
droid17
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.
Last Updated on September 7, 2011
Right now
Ongoing
Right now
February
Coming soon
March
Register to Attend
Elite only