NexusFi: Find Your Edge


Home Menu

 





Accessing a chart from a strategy


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one bukkan with 1 posts (0 thanks)
    2. looks_two Quick Summary with 1 posts (0 thanks)
    3. looks_3 kandlekid with 1 posts (0 thanks)
    4. looks_4 richtobey with 1 posts (0 thanks)
    1. trending_up 3,390 views
    2. thumb_up 0 thanks given
    3. group 3 followers
    1. forum 3 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 richtobey 
San Antonio
 
Experience: Advanced
Platform: NinjaTrader Interactive Brokers
Broker: Interactive Brokers
Trading: forex
Posts: 45 since Oct 2010
Thanks Given: 0
Thanks Received: 116

When you create a strategy, it creates it's own charts.

Q1 - I'm wondering if attaching a strategy to an existing chart, would somehow make that chart's child objects visible programatically. So if I manually drew a line on a chart and named it "X." Could I then access that line with a tag of "X" from that strategy. Anybody?

Q2 - Does anybody know how to access an ATM's values such as stop amount or target 1 programatically. I thinking that this might be possible through inheritance somehow in the spirit of this post.

@font-face { font-family: "Cambria"; }p.MsoNormal, li.MsoNormal, div.MsoNormal { margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman"; }a:link, span.MsoHyperlink { color: blue; text-decoration: underline; }a:visited, span.MsoHyperlinkFollowed { color: purple; text-decoration: underline; }div.Section1 { page: Section1; } Access to NinjaTrader built-in functions from classes - NinjaTrader Support Forum

Thanks. Rich


Visit my NexusFi Trade Journal Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Orban at 29pct as Hungary Votes Tomorrow -- McIlroy Surg …
Prediction Markets & Event Contracts
Wood Mackenzie Drops $200 Oil Forecast -- Airspace Expir …
Prediction Markets & Event Contracts
After $87M Settles NO: Irans Nuclear Redline Sets Up the …
Prediction Markets & Event Contracts
Al Arabiya: US-Iran Draft Deal Within Hours Contains Hor …
Prediction Markets & Event Contracts
Rubios Good News Within Hours and the 30-Day Math: Why H …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 thanks
2026 Jlab journal
10 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
6 thanks
2026 Fire Horse
5 thanks
  #3 (permalink)
kandlekid
College Point, NY (Queens)
 
Posts: 63 since Nov 2009
Thanks Given: 5
Thanks Received: 20


Q1 ... I imagine that if you instantiate the line from within the strategy, you could "in theory" manipulate it. Unfortunately, I believe that when the strategy owns or has control of an object, you can't manually access it.


Reply With Quote
  #4 (permalink)
 bukkan 
Calcutta, India
 
Experience: Intermediate
Platform: ArthaChitra
Posts: 278 since Jun 2009
Thanks Given: 161
Thanks Received: 271


richtobey View Post
Q1 - I'm wondering if attaching a strategy to an existing chart, would somehow make that chart's child objects visible programatically. So if I manually drew a line on a chart and named it "X." Could I then access that line with a tag of "X" from that strategy. Anybody?

in NT7, a strategy can access any drawobject drawn by itself or by the user (i.e. drawobject manually drawn by the user).

a strategy cannot access any drawobject as drawn by any other strategy.


Reply With Quote




Last Updated on December 31, 2010


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts