Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Chart Trader Order Drawing Line
Collapse
X
-
Chart Trader Order Drawing Line
Is there a way through Ninja Script that I can draw custom line with a "cross" option and label text similar to the ones that are drawn by Chart Trader when you place an order? I would like to build a custom function if the "cross" is placed to remove the line and also do some other stuff. If its possible to draw the chart trader "price marker" line with all its functionality then that would be ideal.1 PhotoTags: None
-
Hello trader-ap,
Yes, you can render just about anything you want, within the chart area (not within the price margin to the right).
Including all of the click functionality of the order lines is going to be work.
The order will update with the Account.OrderUpdate event.
Below are links to working with mouse clicks.
Custom rending.
Working with orders through an account object.
I need some guidance. I need to create a script that has 3 plots that are public and they plot either a 1 or 0. But I need to create another indicator that has 3 chart buttons that sets these variables. The first indicator needs to get those values from the second indicator depending on the button clicks. Because of usingChelsea B.NinjaTrader Customer Service
-
Thanks for this. On these threads, I could not see which NinjaScript calls I can make to draw the Chart Trader Price Line "object".(see attached). I want to essentially press a key and mouse click this object onto the chart. at the mouse click point. I am fine with the code for the key press and mouse click but need some help on which class / function I can call to draw the "Chart Trader Price Line" object with all the functionality it has for changing the quantity straight from the chart.
I am assuming there is a class NinjaTrader.Gui.Chart.ChartTrader which has functions that could be called to draw the ChartTrader price line on the chart.. What I would like to know is which function to call to bring up this price line based on a price point I will supply into the function (not necessarily the click point). Additionally I will supply the quantity and order type and simulated order flag so that the line is all pre-configured and ready to submit.Last edited by trader-ap; 08-15-2022, 07:20 PM.
Comment
-
Hello trader-ap,
Lines are drawn with RenderTarget.DrawLine()
Rectangles are drawn with RenderTarget.DrawRectangle()
Text is drawn with RenderTarget.DrawTextLayout().
"I am assuming there is a class NinjaTrader.Gui.Chart.ChartTrader which has functions that could be called to draw the ChartTrader price line on the chart"
No, there is not. NinjaTrader does not write code for you to replace the ChartTrader. It already has its own chart trader. You have to design your own. It will be work.Chelsea B.NinjaTrader Customer Service
Comment
-
Thanks. It would be great if a request could be made to the Engineering team to make available the Chart Trader functionality calls and be supported through documentation in the Language Reference for the future. There is rich functionality in here and its a shame to have to reinvent this when the NT8 team have already developed it and could allow public class functions to use / extend it.
Comment
-
Hello trader-ap,
This request is being tracked with ID# SFT-5603.
Please note, we receive many requests and cannot reasonably implement all requested features or changes. Interest is tracked internally and if enough interest is tracked, it would be weighed against how feasible it would be to make those changes to consider implementing, so we cannot offer an ETA or promise of fulfillment.
When new features are implemented, they will be listed in the Release Notes page of the Help Guide. The ID number may be different than the internal feature request tracking ID, but the description of the feature will let you know if that feature has been implemented.
Release Notes - https://ninjatrader.com/support/help...ease_notes.htmChelsea B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by SantoshXX, Today, 03:09 AM
|
0 responses
13 views
0 likes
|
Last Post
by SantoshXX
Today, 03:09 AM
|
||
Started by DanielTynera, Today, 01:14 AM
|
0 responses
2 views
0 likes
|
Last Post
by DanielTynera
Today, 01:14 AM
|
||
Started by yertle, 04-18-2024, 08:38 AM
|
9 responses
42 views
0 likes
|
Last Post
by yertle
Today, 01:00 AM
|
||
Started by techgetgame, Yesterday, 11:42 PM
|
0 responses
14 views
0 likes
|
Last Post
by techgetgame
Yesterday, 11:42 PM
|
||
Started by sephichapdson, Yesterday, 11:36 PM
|
0 responses
2 views
0 likes
|
Last Post Yesterday, 11:36 PM |
Comment