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 2,906 views
    2. thumb_up 0 thanks given
    3. group 3 followers
    1. forum 3 posts
    2. attach_file 0 attachments




 
Search this Thread

Accessing a chart from a strategy

  #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 [AUTOLINK]NinjaTrader[/AUTOLINK] built-in functions from classes - [AUTOLINK]NinjaTrader[/AUTOLINK] 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?
Exit Strategy
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
NexusFi Journal Challenge - May 2024
Feedback and Announcements
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
48 thanks
Just another trading journal: PA, Wyckoff & Trends
34 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
24 thanks
GFIs1 1 DAX trade per day journal
22 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


© 2024 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 - Privacy Policy - Downloads - Top
no new posts