Get all draw objects - NinjaTrader Programming | futures io social day trading
futures io futures trading


Get all draw objects
Updated: Views / Replies:4,850 / 18
Created: by dimkdimk Attachments:1

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 1  
 
Thread Tools Search this Thread
 

Get all draw objects

  #1 (permalink)
 Vendor: www.quanttradingcapital.com.au 
Melbourne
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: IB, ThinkOrSwim, Kinetic
Favorite Futures: Options, Forex
 
dimkdimk's Avatar
 
Posts: 38 since Dec 2009
Thanks: 0 given, 6 received

Get all draw objects

Hi All,

I need to enumerate all drawing objects on the chart that were created by some propriatary indicators ( I don't have access to source code). I need to get those strings, their tags and bar numbers.

Anyone knows how to implement this ?
Undocumented solutions will do.

Thank you.

Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Elite Member
Calcutta, India
 
Futures Experience: Intermediate
Platform: ArthaChitra
 
Posts: 278 since Jun 2009
Thanks: 161 given, 259 received


foreach (ChartObject co in ChartControl.ChartObjects)
{
// do your stuff here
}


cheers

Reply With Quote
 
  #4 (permalink)
 Vendor: www.tools4trading.de 
Erfurt Germany
 
Futures Experience: Master
Platform: rtMagic, NinjaTrader
Broker/Data: AMP/CQG, IAB
Favorite Futures: ES, 6E, FDAX, FGBL
 
Posts: 338 since Aug 2011
Thanks: 54 given, 460 received


Koepisch View Post
Hi,

with the above snippit i can't enumerate drawing objects, which were owned by other indicators. I want to enumerate triangles from an other indicator. How can i do that with Ninja 7?

Regards

"owned by other indicators"... without public exported ("strategy enabled") values, you dont have a warranty for stable results or the right sequence change/access on "drawing" only values...

Its work... while the NT7 databox use internal the same mothod to enumerate any indiactor plot values.

Reply With Quote
 
  #5 (permalink)
Elite Member
@ Germany
 
Futures Experience: Beginner
Platform: NinjaTrader
Broker/Data: Mirus Futures/Zen-Fire
Favorite Futures: FDAX
 
Posts: 440 since Nov 2011
Thanks: 254 given, 369 received

I had tried this script, but it will show only my user drawn objects. Do you have another solution or can you share your test script? Can an indicator lock any access from outside?

Reply With Quote
 
  #6 (permalink)
Elite Member
Vienna Austria
 
Futures Experience: Advanced
Platform: NinjaTrader
Favorite Futures: Forex
 
AlBundy's Avatar
 
Posts: 25 since Jun 2013
Thanks: 10 given, 11 received

How to get more than 2 decimal digits?


bukkan View Post
foreach (ChartObject co in ChartControl.ChartObjects)
{
// do your stuff here
}


cheers

When I run co.ToString() I receive all information regarding the drawn objects. Unfortunately the .ToString() function displays for StartY & EndY only 2 decimal digits and this is not enough - especially for FOREX. Example:

'Line' Time='2/6/2015 12:30:00 PM', StartBar='1722' StartY='1.13' EndTime='2/12/2015 9:00:00 AM' EndBar='1907' EndY='1.13'

In real StartY is 1.12601 and EndY is 1.12685 - as you see the above values are totally useless in case I want to save all user drawn lines into the database and re-draw them once the user opens the chart again. This object is a raising line and the returned information lets believe it is a horizontal line.

Is there any chance how to get a more accurate value [at least 4 digits after comma]?

Thank you!


Last edited by AlBundy; February 14th, 2015 at 09:32 AM.
Reply With Quote
 
  #7 (permalink)
Elite Member
Birmingham UK
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: IG/eSignal
Favorite Futures: Dax
 
ratfink's Avatar
 
Posts: 3,336 since Dec 2012
Thanks: 11,276 given, 7,090 received


AlBundy View Post
When I run co.ToString() I receive all information regarding the drawn objects. Unfortunately the .ToString() function displays for StartY & EndY only 2 decimal digits and this is not enough - especially for FOREX. Example:

'Line' Time='2/6/2015 12:30:00 PM', StartBar='1722' StartY='1.13' EndTime='2/12/2015 9:00:00 AM' EndBar='1907' EndY='1.13'

In real StartY is 1.12601 and EndY is 1.12685 - as you see the above values are totally useless in case I want to save all user drawn lines into the database and re-draw them once the user opens the chart again. This object is a raising line and the returned information lets believe it is a horizontal line.

Is there any chance how to get a more accurate value [at least 4 digits after comma]?

Thank you!

You could print individual elements and use the standard C# string formatting to get more places.

Travel Well
Reply With Quote
 
  #8 (permalink)
Elite Member
Vienna Austria
 
Futures Experience: Advanced
Platform: NinjaTrader
Favorite Futures: Forex
 
AlBundy's Avatar
 
Posts: 25 since Jun 2013
Thanks: 10 given, 11 received


ratfink View Post
You could print individual elements and use the standard C# string formatting to get more places.

Sorry, but I don't understand how I should do it. In the IChartObject there is not any member for the Y values. Or what did you mean?

Reply With Quote
 
  #9 (permalink)
Elite Member
Birmingham UK
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: IG/eSignal
Favorite Futures: Dax
 
ratfink's Avatar
 
Posts: 3,336 since Dec 2012
Thanks: 11,276 given, 7,090 received


AlBundy View Post
Sorry, but I don't understand how I should do it. In the IChartObject there is not any member for the Y values. Or what did you mean?

I assume there is a nested access route through the object list, but I haven't used it so may be wrong.

Travel Well
Reply With Quote
 
  #10 (permalink)
Elite Member
Wrocław, Poland
 
Futures Experience: Intermediate
Platform: NinjaTrader, Racket
Favorite Futures: Ockham's razor
 
gregid's Avatar
 
Posts: 651 since Aug 2009
Thanks: 321 given, 605 received



AlBundy View Post
Sorry, but I don't understand how I should do it. In the IChartObject there is not any member for the Y values. Or what did you mean?

There is a Y object, try this:
 
Code
foreach (ChartObject co in ChartControl.ChartObjects)
{
    // do your stuff here
    Print(co.Y.ToString());
}

Reply With Quote

Reply



futures io > > > > > Get all draw objects

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fib extenions I can draw ricktrades ThinkOrSwim 3 July 7th, 2014 02:38 PM
Little help with Draw Region jram77 NinjaTrader Programming 14 September 26th, 2013 12:21 AM
Flashing signal objects in NT7 aligator Traders Hideout 5 January 31st, 2011 11:35 PM
How to draw a 2d map ?!? paolopoletti NinjaTrader Programming 3 January 17th, 2011 02:42 AM
Who asked the question about hotkey for remove draw objects? Todd Traders Hideout 3 June 8th, 2010 10:43 PM


All times are GMT -4. The time now is 11:23 AM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts
Page generated 2017-12-13 in 0.13 seconds with 20 queries on phoenix via your IP 54.227.51.103