NexusFi: Find Your Edge


Home Menu

 





Accessing a chart from a strategy


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one kandlekid with 1 posts (0 thanks)
    2. looks_two richtobey with 1 posts (0 thanks)
    3. looks_3 bukkan with 1 posts (0 thanks)
    4. looks_4 Quick Summary with 1 posts (0 thanks)
    1. trending_up 3,549 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?
Iran Lebanon Problem Kills Switzerland Talks, Brent at $ …
Prediction Markets & Event Contracts
Czechia Live at 52.5% as England Rides 4-2 Wave to Co-Fa …
Prediction Markets & Event Contracts
No book, only a stair: journaling fills where price move …
Cryptocurrency
Trump Media to sell instant access to market-moving soci …
Traders Hideout
Without Pulisic, USA 61.5% Live vs. Australia -- France …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Want your NinjaTrader indicator created, free?
5 thanks
Afternoon-close session
1 thanks
Franks Trading Journey
1 thanks
Denied 20K payouts: Alpha Futures
1 thanks
FootPrintV2 Chart for NT8
1 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: 279 since Jun 2009
Thanks Given: 161
Thanks Received: 272


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