• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Custom Chart Trader position lines

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • martyn73
    started a topic Custom Chart Trader position lines

    Custom Chart Trader position lines

    Is it possible to target the Chart Trader position lines in an indicator? I want to move them to the left matching the chart right margin. I'm also interested to know if it's possible to target their ZOrder?

  • NinjaTrader_ChelseaB
    replied
    Hello martyn73,

    Unfortunately, there is no NinjaScript access to the Chart Trader order lines. Also it would not be possible to remove these while ChartTrader is enabled. These are part of the core functionality of Chart Trader.

    Your lines could be drawn on the left side of the chart if these are the price and times provided to object. Or the lines could be custom rendered.
    Or you could completely recreate the Chart Trader as a custom area and not enable ChartTrader.

    Leave a comment:


  • martyn73
    replied
    And to clarify why, because my tool executes orders, when a chart trader line falls on top of it there is a chance that when you select the chart trader line above my tool, it will also execute an order. Which obviously is not desired.

    Leave a comment:


  • martyn73
    replied
    Chelsea,

    Thanks, was aware of those. But if possible, I want to specifically target the visuals of existing Chart Trader position lines. And not create my own. I'm developing an order execution indicator that renders on the right side of the chart panel and leverages the Chart Trader panel. When orders are submitted through this tool, or through the Chart Trader panel, I want the Chart Trader position lines to start to the left of my tool instead of them to start at the right side of the chart panel.

    Leave a comment:


  • NinjaTrader_ChelseaB
    replied
    Hello martyn73,

    With an indicator you can use the Addon approach to finding an account object and then looping through the orders for that account.

    Below is a public link to the help guide.
    https://ninjatrader.com/support/help...rs_account.htm
    https://ninjatrader.com/support/help...rderupdate.htm

    You could find the orders, and then draw lines using the price of those orders.

    An indicator can have the ZOrder set. The Drawing objects placed by the script will be relative to the scripts ZOrder.
    https://ninjatrader.com/support/help.../setzorder.htm

    Leave a comment:

Latest Posts

Collapse

Topics Statistics Last Post
Started by NinjaCustomer, Today, 12:29 PM
0 responses
1 view
0 likes
Last Post NinjaCustomer  
Started by Steve L, Today, 11:32 AM
0 responses
2 views
0 likes
Last Post Steve L
by Steve L
 
Started by prabbala, Today, 10:41 AM
0 responses
1 view
0 likes
Last Post prabbala  
Started by bebbus, Today, 10:36 AM
0 responses
3 views
0 likes
Last Post bebbus
by bebbus
 
Started by edmata1109, Today, 10:18 AM
0 responses
8 views
0 likes
Last Post edmata1109  
Working...
X