Any LUCK on drawing tool code help? - NinjaTrader | futures io social day trading
futures io futures trading


Any LUCK on drawing tool code help?
Updated: Views / Replies:1,372 / 8
Created: by hector24 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
 

Any LUCK on drawing tool code help?

  #1 (permalink)
Elite Member
austin, texas
 
Futures Experience: Intermediate
Platform: ninja trader
Favorite Futures: currency futures
 
Posts: 508 since Jan 2011
Thanks: 14 given, 231 received

Any LUCK on drawing tool code help?

Does anyone know how to code a drawing tool for Ninja that could be helpful to everyone. I am looking for a line that will project out to the right from the point of control from my cursor. I would like to click the bottom or top of a candle or anywhere on my chart, then the line would come up automatically, from that point and to the right. I would like for the Ray line to just plot from spot to right horizontally to have the instrument price indicated on the Ray line labeled. It would be really nice also if I could have a button on my screen that I could just click and start drawing my lines and stay on until I unable it. Any help would be appreciated. This would sure save time. Right now with the Ninja Ray line you have to adjust it in order for it to line up horizontally. The Horizontal tool is kind of confusing for me for what I am trying to mark. Also the Swing indicator plots automatically and I want to choose from what bottom or top to plot from. Any help would be appreciated.

Reply With Quote
 
  #2 (permalink)
Trading Apprentice
Leicester England
 
Futures Experience: Beginner
Platform: NinjaTrader, MT4
Broker/Data: MBTrading
Favorite Futures: EUR/USD
 
Posts: 35 since Apr 2012
Thanks: 2 given, 23 received

Hi,

here is a simple method using a macro ( works perfect for me).

// Macro Scheduler 11

// NT7 Ray Line
Press F3

GetCursorPos>X,Y

// Ray Start position
LClick

// X = X+100
Add>X,100

// Ray Second Position
MouseMove>X,Y

// Draw Ray
LClick

Or use free AutoHotkey .

I have a dedicated trading keyboard for single key execution.

Reply With Quote
The following 2 users say Thank You to pfabcTrader for this post:
 
  #3 (permalink)
Elite Member
austin, texas
 
Futures Experience: Intermediate
Platform: ninja trader
Favorite Futures: currency futures
 
Posts: 508 since Jan 2011
Thanks: 14 given, 231 received



pfabcTrader View Post
Hi,

here is a simple method using a macro ( works perfect for me).

// Macro Scheduler 11

// NT7 Ray Line
Press F3

GetCursorPos>X,Y

// Ray Start position
LClick

// X = X+100
Add>X,100

// Ray Second Position
MouseMove>X,Y

// Draw Ray
LClick

Or use free AutoHotkey .

I have a dedicated trading keyboard for single key execution.

PF, really appreciate it. Is this for Ninja? I see you use Multicharts. If so where do I install this code at and how. Sorry I know nothing about coding or writing script but I think I can do this one if guided.

Thanks
Hector

Reply With Quote
 
  #4 (permalink)
Trading Apprentice
Leicester England
 
Futures Experience: Beginner
Platform: NinjaTrader, MT4
Broker/Data: MBTrading
Favorite Futures: EUR/USD
 
Posts: 35 since Apr 2012
Thanks: 2 given, 23 received

Hi,

The sample macro script is for controlling Ninja7 keys and mouse.
You need to get a macro, I use the Macro Scheduler for all my work
but the free AutoHotkey will work but I have not used it.

Download AutoHotkey and play with it.

Reply With Quote
The following 2 users say Thank You to pfabcTrader for this post:
 
  #5 (permalink)
Elite Member
austin, texas
 
Futures Experience: Intermediate
Platform: ninja trader
Favorite Futures: currency futures
 
Posts: 508 since Jan 2011
Thanks: 14 given, 231 received

drawing tool


pfabcTrader View Post
Hi,

The sample macro script is for controlling Ninja7 keys and mouse.
You need to get a macro, I use the Macro Scheduler for all my work
but the free AutoHotkey will work but I have not used it.

Download AutoHotkey and play with it.

PF sorry to bother you but where do I get the Macro Scheduler.

Thanks
Hector

Reply With Quote
 
  #6 (permalink)
Trading Apprentice
Leicester England
 
Futures Experience: Beginner
Platform: NinjaTrader, MT4
Broker/Data: MBTrading
Favorite Futures: EUR/USD
 
Posts: 35 since Apr 2012
Thanks: 2 given, 23 received

Hi,

here is the AutoHotKey version.

Install AutoHotKey
Copy the text into NotePad and save as yourName.ahk
DoubleClick on the file yourName.ahk
Your macro is now ready for execution, you will see an H icon in the task bar.
Go to Ninja Chart and move mouse to your line starting point and press
the Shift r key. works for me!

( No need for Macro Scheduler )

----------------------------------------------------------------------------------------------------

+r:: ; Shift R ,Hot Key to execute script

Send {F3} ; Ninja Ray Draw

MouseGetPos, xpos, ypos

MouseClick, left, xpos, ypos

MouseClick, left, xpos + 100, ypos

return


-------------------------------------------------------------------------------------------------------

Reply With Quote
The following 2 users say Thank You to pfabcTrader for this post:
 
  #7 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,240 since Jun 2009
Thanks: 29,352 given, 83,223 received

@monpere has a ton of fantastic autohotkey scripts here that automate a lot of tasks for NinjaTrader:

https://futures.io/ninjatrader/22956-autohotkey-scripts.html

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
The following 2 users say Thank You to Big Mike for this post:
 
  #8 (permalink)
Elite Member
austin, texas
 
Futures Experience: Intermediate
Platform: ninja trader
Favorite Futures: currency futures
 
Posts: 508 since Jan 2011
Thanks: 14 given, 231 received

lines


pfabcTrader View Post
Hi,

here is the AutoHotKey version.

Install AutoHotKey
Copy the text into NotePad and save as yourName.ahk
DoubleClick on the file yourName.ahk
Your macro is now ready for execution, you will see an H icon in the task bar.
Go to Ninja Chart and move mouse to your line starting point and press
the Shift r key. works for me!

( No need for Macro Scheduler )

----------------------------------------------------------------------------------------------------

+r:: ; Shift R ,Hot Key to execute script

Send {F3} ; Ninja Ray Draw

MouseGetPos, xpos, ypos

MouseClick, left, xpos, ypos

MouseClick, left, xpos + 100, ypos

return


-------------------------------------------------------------------------------------------------------

Thanks PF. If I may, can you look at this image of my chart with a sample that I was looking for.
Maybe I should have put this in the first post. I did install your code and it quite does not look
like what I am looking for. Is there any way to adjust it to look like the sample attached and is
there anyway to get this on a button on my chart that I can just click to activate hit.

ray sample - hector24's library

Thanks
Hector

Reply With Quote
 
  #9 (permalink)
Trading Apprentice
Leicester England
 
Futures Experience: Beginner
Platform: NinjaTrader, MT4
Broker/Data: MBTrading
Favorite Futures: EUR/USD
 
Posts: 35 since Apr 2012
Thanks: 2 given, 23 received

Hi,
My chart looks like yours, disable Snap Mode otherwise you will sometimes get a slope line.

I'm new to Ninja and don't know how to integrate a button into a chart.
I solved that problem by attaching a second USB-keyboard (or Number Pad)
and allocate each macro-script to a single key.

PF

Reply With Quote
The following 2 users say Thank You to pfabcTrader for this post:

Reply



futures io > > > > Any LUCK on drawing tool code 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
Do you believe in luck in trading? dario1 Traders Hideout 57 August 30th, 2012 06:01 PM
What is luck and what is skill? MyTotoro Currency Futures 15 May 18th, 2012 09:04 AM
drawing tool properties ? benrock NinjaTrader 10 April 4th, 2012 02:52 PM
Edit the Fibonacci Time Extension Drawing Tool George NinjaTrader Programming 12 May 9th, 2011 08:58 PM
GOM drawing OHLC and candlestick code tinkerz NinjaTrader Programming 4 March 8th, 2010 03:14 PM


All times are GMT -4. The time now is 06:52 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-13 in 0.12 seconds with 37 queries on phoenix via your IP 54.90.92.204