Programming for dummies - Help - NinjaTrader Programming | futures io social day trading
futures io futures trading


Programming for dummies - Help
Updated: Views / Replies:1,852 / 9
Created: by Ausy Mick Attachments:4

Welcome to futures io.

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

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

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

Reply
 
Thread Tools Search this Thread
 

Programming for dummies - Help

  #1 (permalink)
Elite Member
Florida
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: ES
 
Ausy Mick's Avatar
 
Posts: 69 since Jun 2009
Thanks: 45 given, 62 received

Programming for dummies - Help

Hi guys

All this effort from Sharky and his team has got me inspired, and so this weekend I
attempted to create my first indicator. The only problem is that I can not program my
way out of a brown paper bag.... . So I request some help.

After a couple of hours i finally figured out the drawarrow command and when certain
conditions are met I have the following code

DrawArrowUp("My arrow" + CurrentBar.ToString() , true, 0, High[0] + (TickSize *3), Color.Green);

My question is this: Is there a way to code it so that you can select the color of the
arrow from the indicator panel. (i.e making the color of the arrow a variable?)

From what I have seen in other indicators is that they have the following code
underneath the end region of the variables section.

Private Color barColorUp = Color.Blue

and in the Properties section the code

[Description(Color of Bars)]
[Category("Visual")]
public Color BarColorUp
{
get {return barColorUp;}
set {barColorUp = value;}
}

I have tried to cut paste this code but it always gives errors on compile. Any recommendations ?

Appreciate the help - Mick

Reply With Quote
 
  #2 (permalink)
Administrator: Retired Backtester
 Vendor: speedytradingservers.com 
Rennes France
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: IB/Kinetick
Favorite Futures: Futures
 
sam028's Avatar
 
Posts: 3,366 since Jun 2009
Thanks: 3,574 given, 3,982 received

You piece of code looks good, what is exactly the error ?
Are your sure the error is in this indicator ?

Reply With Quote
 
  #3 (permalink)
Elite Member
Florida
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: ES
 
Ausy Mick's Avatar
 
Posts: 69 since Jun 2009
Thanks: 45 given, 62 received


Hi Sam

I get error message:

System.Drawing.Color does not contain a definition for barColorUp - CS 0117

I will post the code in just a bit

Thanks for the help

Reply With Quote
 
  #4 (permalink)
Elite Member
Arcata, CA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: index futures, oil
 
Saroj's Avatar
 
Posts: 482 since Jun 2009
Thanks: 223 given, 389 received

do you have barColorUp defined (I think as integer, but you have to check) either in the variables section or in the procedure section?

Reply With Quote
 
  #5 (permalink)
Elite Member
Arcata, CA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: index futures, oil
 
Saroj's Avatar
 
Posts: 482 since Jun 2009
Thanks: 223 given, 389 received

Here's a different way of doing it that gives user access to all the plot properties...

Its a ".cs" file so you have to copy it into the NT indicators folder and then compile... (open anything and click "compile")... can't remember if NT will allow you to open this one until compiled... just try it and see...

You may already have this cs file... its a common one.

Actually this indicator is pretty cool because it paints a diff color if slope is good.

Attached Files
Register to download File Type: cs SMA_Colors.cs (10.2 KB, 15 views)
Reply With Quote
 
  #6 (permalink)
Elite Member
Florida
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: ES
 
Ausy Mick's Avatar
 
Posts: 69 since Jun 2009
Thanks: 45 given, 62 received

here is the code

Here is the code - the cs file has the error

and two screenshots


Thanks again ...

Attached Thumbnails
Programming for dummies - Help-capture1.jpg   Programming for dummies - Help-capture2.jpg  
Attached Files
Register to download File Type: cs BlineBoogie.cs (6.0 KB, 9 views)
Reply With Quote
 
  #7 (permalink)
Elite Member
Florida
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: ES
 
Ausy Mick's Avatar
 
Posts: 69 since Jun 2009
Thanks: 45 given, 62 received

Thanks Saroj,

I will import and try that ....

Reply With Quote
 
  #8 (permalink)
Elite Member
Arcata, CA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: index futures, oil
 
Saroj's Avatar
 
Posts: 482 since Jun 2009
Thanks: 223 given, 389 received

Ausy... I didn't realize you were doing triangles... I'm a beginner on the coding thing too.. searching for an example for triangles... meantime sam or another experienced code might tell you what's wrong.

Reply With Quote
 
  #9 (permalink)
Administrator: Retired Backtester
 Vendor: speedytradingservers.com 
Rennes France
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: IB/Kinetick
Favorite Futures: Futures
 
sam028's Avatar
 
Posts: 3,366 since Jun 2009
Thanks: 3,574 given, 3,982 received


Ausy Mick View Post
Thanks Saroj,

I will import and try that ....

Line 54:

DrawArrowUp("My arrow" + CurrentBar.ToString() ,true, 0,Low[0]- (TickSize * 3) ,barColorUp);

and not

DrawArrowUp("My arrow" + CurrentBar.ToString() ,true, 0,Low[0]- (TickSize * 3) ,Color.barColorUp);


Last edited by sam028; September 21st, 2009 at 01:30 PM. Reason: playing with colors...
Reply With Quote
The following user says Thank You to sam028 for this post:
 
  #10 (permalink)
Elite Member
Florida
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: ES
 
Ausy Mick's Avatar
 
Posts: 69 since Jun 2009
Thanks: 45 given, 62 received


BIG THANK YOU to both of you guys.....

Got it working .....

You made my day !



Just another reason why futures.io (formerly BMT) rocks - traders helping traders

Reply With Quote

Reply



futures io > > > > > Programming for dummies - Help

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Visual Programming (programming without coding) LukeGeniol Platforms and Indicators 11 September 16th, 2016 01:49 PM
NinjaTrader and VS2010 for Dummies MXASJ NinjaTrader Programming 48 February 4th, 2015 12:22 PM
Help with programming concept r3algood NinjaTrader Programming 3 July 30th, 2011 04:21 AM
DENNIS MILLER: MIDDLE EAST FOR DUMMIES tigertrader Off-Topic 0 October 16th, 2010 12:32 PM
Central Banking For Dummies ntsst3 Off-Topic 0 October 14th, 2010 11:43 PM


All times are GMT -4. The time now is 02:35 AM.

Copyright © 2017 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
Page generated 2017-12-17 in 0.12 seconds with 20 queries on phoenix via your IP 54.82.56.95