Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Horizontal Ray in Drawing Tools
Collapse
X
-
@alligator - do you think you could add a checkbox to the properties to make it have the price marker ?
-
Hi xiinteractive, you can use the updated version of DrawingTools.Line with Shift key pressed to make horizontal Lines, by this way you have start time and end time.
For now, there is a wrong code in the line 450 in the file @Lines.cs and this cause than when OnMouseDown action and EndAnchor.IsEditing is changed to false, during the first building, the line will take the datapoint of the actual position of the cursor and will not take the datapoint of StartAnchor when Shift key is down.
You can solve it changing the file name erasing the @ at the start of the name and after this, modifying the next data:
"dataPoint.CopyDataValues(EndAnchor);"
to
"Anchor45(StartAnchor, dataPoint, chartControl, chartPanel, chartScale).CopyDataValues(EndAnchor);"
After that, just compile.
Change the name again an add the @ at the start of the name while ninjascript editor is still open to auto compile tha change.
Ninjatrader support, please make this change for the next version to solve the problem. Thank you very much!
I will attach the file and you can replace the prior version, to solve it easily.
If you don't have opened a NinjaScript Editor Window, so you need open it.
Before replacing the file please open NinjaTrader and open a New NinjaScript Editor Window to auto compile.Attached Files
Leave a comment:
-
sorry man... when I first installed it, the Anchor Date field was missing and that is why I posted my message... then one day I went to use the Horizontal Ray and much to my surprise, the Anchor Date field was there. I use it all the time... I mark daily VPOCs with it every day. Thank you!Originally posted by aligator View Post
You already have it.
Leave a comment:
-
You already have it.Originally posted by xiinteractive View Post
@alligator:
Did you develop this drawing tool? I need a Horizontal Ray EXACTLY like this except I need the "Anchor Time" included in the Data section.
Also Please provide the URL to the original post about this
Thanks
Leave a comment:
-
@alligator:Originally posted by aligator View PostDear Support,
Please consider including a HorizontalRay line to the drawing tools (DrawingTools.Lines), a badly missed and perhaps the most useful of all lines for marking price action support and resistant lines on a chart. A feature that is commonly used by all traders.
Please note that there is already a custom add-on on the Forum for drawing Horizontal Rays (a 1-anchor click that also prints the series value on the Horizontal Ray) that can be nicely incorporated into the NT8 DrawingTools.Lines instead of being a separate add-on.
I have attached the add-on.
Thanks.
Did you develop this drawing tool? I need a Horizontal Ray EXACTLY like this except I need the "Anchor Time" included in the Data section.
Also Please provide the URL to the original post about this
Thanks
Leave a comment:
-
please add my vote for SFT-2149 for the Horizontal Ray .... and I would like it to include the "Anchor Time" field in the Data section.
thanks
Leave a comment:
-
Thank. Majority of the hot keys are default NT8 hot keys used for drawing tools and everyone should already have them. As noted in the indicator notes ant additional hot keys need to be created by the user for the those tools to become functional.Originally posted by Mindset View PostAligator - fab indicator - I would suggest one addition to the notes - a list of the hot key commands required - as I discovered half of the hot keys were missing and I kept having to go through and find the particular combo you were using. Awesome work though.
Also, I have provided in the notes for the indicator a list of new hot keys used for Rev 6 in downloads. I assumed people will read these notes, create any missing hot key, and then download and install the indicator.
Regardless, perhaps only a few of the hot keys, if any, may need to be identified. I will be glad to add additional hot key notes if someone gives me a list of drawing tools icons that are missing hot keys on their system.
Cheers!Last edited by aligator; 05-10-2022, 10:21 PM.
Leave a comment:
-
Aligator - fab indicator - I would suggest one addition to the notes - a list of the hot key commands required - as I discovered half of the hot keys were missing and I kept having to go through and find the particular combo you were using. Awesome work though.
Leave a comment:
-
me too can't seem to get the horizontal ray to do anything??
Aligator asks for the HorizontalRay Add on to be installed but when I found it - it said it was an older version of one my NT already had??
so it's there but nothing happens
Edit
Ok so it requires Hot key combo Ctrl + End
I found in my NT that this key combo was blank - hence Aligator's code is sending a key combo that didn't do anything.
Simply add the combo in Hot Keys and it all worksLast edited by Mindset; 05-10-2022, 12:13 AM.
Leave a comment:
-
installed the toolbar but when I click on the horizontal ray icon nothing happens.
- Likes 1
Leave a comment:
-
ThanksOriginally posted by aligator View Post
Good luck! If you just check the boxes for the above 12 items, you will almost get the arrangement order that you want.
Regardless, if you are modifying the indicator, please make sure to rename your modified indicator to something different and with credit to the original indicator so that the integrity of the original indicator is maintained.
It was just an example. I use more tools
No worries, this code changes are only for my personal use
Have a nice day
Leave a comment:
-
Good luck! If you just check the boxes for the above 12 items, you will almost get the arrangement order that you want.Originally posted by AmCTrading07 View Post
Sorry, my english is not good enough and I think that i didn't explain it correctly
I want to reorder/modify the code to show the buttons in a personalized way, and I don't know what parts of the code do I have to reorder (the indicator only allows you to show or hide the buttons, not to reorder them)
I assume that reordering some code sentences with the test and error way, I will accomplish it. But it was just to do it faster xD
I would like to have something like this:
1. Save image
2. Line
3. Label Ray
4. Horizontal Ray
5. Horizontal Line
6. Extended Line
7. Channel
8. Vertical Line
9. Path
10. Arrow
11. Rectangle
12. Fibonacci Retracements
Regardless, if you are modifying the indicator, please make sure to rename your modified indicator to something different and with credit to the original indicator so that the integrity of the original indicator is maintained.
Leave a comment:
-
Sorry, my english is not good enough and I think that i didn't explain it correctlyOriginally posted by aligator View Post
There is always potential for messing a code with many lines. I would suggest checking the boxes for only those draw tools that you use most frequently to keep toolbar to a minimum.
I want to reorder/modify the code to show the buttons in a personalized way, and I don't know what parts of the code do I have to reorder (the indicator only allows you to show or hide the buttons, not to reorder them)
I assume that reordering some code sentences with the test and error way, I will accomplish it. But it was just to do it faster xD
I would like to have something like this:
1. Save image
2. Line
3. Label Ray
4. Horizontal Ray
5. Horizontal Line
6. Extended Line
7. Channel
8. Vertical Line
9. Path
10. Arrow
11. Rectangle
12. Fibonacci Retracements
Leave a comment:
-
There is always potential for messing a code with many lines. I would suggest checking the boxes for only those draw tools that you use most frequently to keep toolbar to a minimum.Originally posted by AmCTrading07 View Post
Thanks Kate and aligator,
The problem was that i had change some line of code in the indicator. Indicator deleted, reimported from the original and everything working fine
By the way, I would like to reorder the positions of the toolbar buttons. After reviewing the code, I assume that I have to reorder certain code blocks or change the order of every button (00, 01, 02...)
Eg: [Display(Name="Stay In Draw Mode", Description="Button for stay in draw mode", Order=0, GroupName="2. Drawing Tools")]
Before messing the code again, can you please indicate me which way to follow? Change the order of the block code for every button or change the Order=X code only?
Leave a comment:
-
Thanks Kate and aligator,Originally posted by aligator View Post
I have no problem with the indicator either. Please note that the default NT icon for Ellipse is a circle (a perfect ellipse) not a classic elongated ellipse. Do you see a circle after you check the box for ellipse? Perhaps you have made unintended code changes (DrawEllipse instead of Draw.Ellipse) that cause this issue. I would recommend delete the indicator all together. Then, download and install the most recent "A mahToolBar6" here:
Let me know if this resolved your problem.
Cheers!
The problem was that i had change some line of code in the indicator. Indicator deleted, reimported from the original and everything working fine
By the way, I would like to reorder the positions of the toolbar buttons. After reviewing the code, I assume that I have to reorder certain code blocks or change the order of every button (00, 01, 02...)
Eg: [Display(Name="Stay In Draw Mode", Description="Button for stay in draw mode", Order=0, GroupName="2. Drawing Tools")]
Before messing the code again, can you please indicate me which way to follow? Change the order of the block code for every button or change the Order=X code only?
Leave a comment:
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CaptainJack, 05-29-2026, 05:09 AM
|
0 responses
45 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 05:09 AM
|
||
|
Started by CaptainJack, 05-29-2026, 12:02 AM
|
0 responses
30 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 12:02 AM
|
||
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
99 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
177 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
170 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|

Leave a comment: