I could use a hand with some code please. - NinjaTrader Programming | futures io social day trading
futures io futures trading


I could use a hand with some code please.
Updated: Views / Replies:429 / 2
Created: by KennyK Attachments:0

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
 

I could use a hand with some code please.

  #1 (permalink)
Elite Member
Sunshine Coast Queensland Australia
 
Futures Experience: Intermediate
Platform: Ninja Trader, DT7.
Broker/Data: Ninjatrader
Favorite Futures: AUD Futures
 
KennyK's Avatar
 
Posts: 89 since Apr 2013
Thanks: 29 given, 22 received

I could use a hand with some code please.

HI,
I could use a hand with some code please.
I need to know how to click on either the high or low of a bar, (let's say the low of a bar for this example), we'll call this low "point A", and capture the price, then click on a the high or low of a second bar, (for this example a high), which we'll call "point B", and capture this price as well as well as the bar count from "point A" to "point B".
The 2 prices I would store in variables, the bar count would also go to a variable.
I would also with the same 2 clicks like to draw a Gann Fan on the chart using the speed of the range clicked on using a calculation involving the price and time value stored in the variables.

I am not sure where the click would have to be? Either on the bar either above or below the mid point?
Or above the high and below the low? Or perhaps something else?

Not sure if any of the native Gann Fan methods when called actually draw a Gann fan that looks the same as the one in the drawing tools and automatically has the same adjustable properties and parameters show in the indi properties window? But would like to know.

P.S. I have just done a C# coding course and have successfully coded two indicators so far.
I have found coding windows programs in Visual Studio much easier than coding indicators in NT7.
Mainly because all the learning was coding windows programs in Visual Studio, so I am reasonably familiar with that stuff. But Not so familiar with what's what in Ninja Script.

I'd really appreciate some guidance.

Cheers,
Ken.

Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Elite Member
Austin TX
 
Futures Experience: Intermediate
Platform: SaintGobain Crystal Ball
Favorite Futures: 6E
 
Posts: 80 since Oct 2010
Thanks: 102 given, 129 received



KennyK View Post
HI,
I could use a hand with some code please.
I need to know how to click on either the high or low of a bar, (let's say the low of a bar for this example), we'll call this low "point A", and capture the price, then click on a the high or low of a second bar, (for this example a high), which we'll call "point B", and capture this price as well as well as the bar count from "point A" to "point B".
The 2 prices I would store in variables, the bar count would also go to a variable.
I would also with the same 2 clicks like to draw a Gann Fan on the chart using the speed of the range clicked on using a calculation involving the price and time value stored in the variables.

I am not sure where the click would have to be? Either on the bar either above or below the mid point?
Or above the high and below the low? Or perhaps something else?

Not sure if any of the native Gann Fan methods when called actually draw a Gann fan that looks the same as the one in the drawing tools and automatically has the same adjustable properties and parameters show in the indi properties window? But would like to know.

P.S. I have just done a C# coding course and have successfully coded two indicators so far.
I have found coding windows programs in Visual Studio much easier than coding indicators in NT7.
Mainly because all the learning was coding windows programs in Visual Studio, so I am reasonably familiar with that stuff. But Not so familiar with what's what in Ninja Script.

I'd really appreciate some guidance.

Cheers,
Ken.

since ChartPanel has a MouseClick event you can subscribe to that:

 
Code
        protected override void OnStartUp()
        {
            // remove previous handler
            this.ChartControl.ChartPanel.MouseClick -= ChartControl_MouseClick;
            // add a new handler
            this.ChartControl.ChartPanel.MouseClick += new System.Windows.Forms.MouseEventHandler(ChartControl_MouseClick);
        }

        // the handler
        void ChartControl_MouseClick(object sender, MouseEventArgs e)
        {
            Print("mouse x: " +e.X +", y: " +e.Y);
        }
No sure about GannFann... maybe somebody else can answer that
J

Reply With Quote
The following user says Thank You to Jaba for this post:

Reply



futures io > > > > > I could use a hand with some code please.

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Gamblers Fallacy and the Hot Hand tturner86 Psychology and Money Management 15 April 25th, 2016 05:46 PM
Fishing with a hand grenade kbit Jokes 2 May 30th, 2014 07:25 PM
second hand ninja trader artfuls NinjaTrader 2 December 7th, 2013 12:26 AM
Open Outcry hand gestures shodson Traders Hideout 2 September 22nd, 2013 03:39 PM
Apple has more cash on hand than Uncle Sam RM99 News and Current Events 2 July 30th, 2011 12:39 AM


All times are GMT -4. The time now is 03:17 PM.

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-11 in 0.09 seconds with 19 queries on phoenix via your IP 54.226.172.30