DrawText or DrawSquare or ??? - NinjaTrader Programming | futures io social day trading
futures io futures trading


DrawText or DrawSquare or ???
Updated: Views / Replies:356 / 9
Created: by Jayswiss Attachments:0

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
 
Thread Tools Search this Thread
 

DrawText or DrawSquare or ???

  #1 (permalink)
Elite Member
San Francisco, CA / USA
 
Futures Experience: Intermediate
Platform: NinjaTrader, TradingView
Favorite Futures: ES, TF, NQ, CL, GC
 
Posts: 29 since Jun 2016
Thanks: 4 given, 3 received

DrawText or DrawSquare or ???

Could someone point me in the right direction of what to use to most efficiently "draw" the red/green boxes as shown in my attached indicator? I'm not sure if I should be using a shape draw, or a filled square Wingding. There could be thousands of these little boxes on the screen...

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


These would be in an indicator box below the chart.

I would be assigning values to different things to draw the boxes at specific rows (e.g. 10, 20, 30, 40, 50, etc.)

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
Omer עומר / Israel י
 
Futures Experience: Master
Platform: NinjaTrader, Proprietary,
Broker/Data: Ninjabrokerage/IQfeed + Synthetic datafeed
Favorite Futures: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
 
rleplae's Avatar
 
Posts: 2,489 since Sep 2013
Thanks: 1,704 given, 3,694 received
Forum Reputation: Legendary


You will have to do some tests
I'm thinking of, the number of handles that are available... 1000 is not a problem, but a long chart might be more of an issue... depends on the details, do the boxes stay static, once they are drawn ?

Reply With Quote
 
  #4 (permalink)
Elite Member
San Francisco, CA / USA
 
Futures Experience: Intermediate
Platform: NinjaTrader, TradingView
Favorite Futures: ES, TF, NQ, CL, GC
 
Posts: 29 since Jun 2016
Thanks: 4 given, 3 received


rleplae View Post
You will have to do some tests
I'm thinking of, the number of handles that are available... 1000 is not a problem, but a long chart might be more of an issue... depends on the details, do the boxes stay static, once they are drawn ?

I hope they stay static ... but yes that's the intention.

Reply With Quote
 
  #5 (permalink)
Elite Member
Omer עומר / Israel י
 
Futures Experience: Master
Platform: NinjaTrader, Proprietary,
Broker/Data: Ninjabrokerage/IQfeed + Synthetic datafeed
Favorite Futures: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
 
rleplae's Avatar
 
Posts: 2,489 since Sep 2013
Thanks: 1,704 given, 3,694 received
Forum Reputation: Legendary

I would lean towards using drawbox

Reply With Quote
 
  #6 (permalink)
Elite Member
San Francisco, CA / USA
 
Futures Experience: Intermediate
Platform: NinjaTrader, TradingView
Favorite Futures: ES, TF, NQ, CL, GC
 
Posts: 29 since Jun 2016
Thanks: 4 given, 3 received

On a 30" monitor I have about 4000 displaying. But this on on a different platform that uses HTML5/Canvas (with Chrome + dual GPU hw acceleration - no problem).

I'd actually like to have 2 individual indicators like this per chart across 8 charts. So about 4000 objects per chart * 8 charts.... 32,000 objects. I have a pretty big system for it if that matters. i7-6700k w/64gb memory and dual cards. Not sure if NT will have issues processing this or not but I guess I'll find out. That's why I'm asking early in this thread how to best "draw" these boxes in a most efficient manner. I would think wingding squares maybe?


Last edited by Jayswiss; July 4th, 2016 at 03:39 AM.
Reply With Quote
 
  #7 (permalink)
Elite Member
San Francisco, CA / USA
 
Futures Experience: Intermediate
Platform: NinjaTrader, TradingView
Favorite Futures: ES, TF, NQ, CL, GC
 
Posts: 29 since Jun 2016
Thanks: 4 given, 3 received


rleplae View Post
I would lean towards using drawbox

You mean DrawRectangle ?

Reply With Quote
 
  #8 (permalink)
Elite Member
Omer עומר / Israel י
 
Futures Experience: Master
Platform: NinjaTrader, Proprietary,
Broker/Data: Ninjabrokerage/IQfeed + Synthetic datafeed
Favorite Futures: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
 
rleplae's Avatar
 
Posts: 2,489 since Sep 2013
Thanks: 1,704 given, 3,694 received
Forum Reputation: Legendary


Jayswiss View Post
You mean DrawRectangle ?

yes
keep also in mind that the windows native drawing functions are available

Reply With Quote
 
  #9 (permalink)
Elite Member
glostrup, denmark
 
Futures Experience: Advanced
Platform: Custom platform
Broker/Data: CQG
Favorite Futures: Futures, Options, Stocks
 
ktrader's Avatar
 
Posts: 249 since Aug 2011
Thanks: 151 given, 274 received


Jayswiss View Post
Could someone point me in the right direction of what to use to most efficiently "draw" the red/green boxes as shown in my attached indicator? I'm not sure if I should be using a shape draw, or a filled square Wingding. There could be thousands of these little boxes on the screen...

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


These would be in an indicator box below the chart.

I would be assigning values to different things to draw the boxes at specific rows (e.g. 10, 20, 30, 40, 50, etc.)

Draw 2 pixels (pr rectangle) on top of each other , up-scale it in the GPU and draw the resulting image.

Reply With Quote
 
  #10 (permalink)
Elite Member
San Francisco, CA / USA
 
Futures Experience: Intermediate
Platform: NinjaTrader, TradingView
Favorite Futures: ES, TF, NQ, CL, GC
 
Posts: 29 since Jun 2016
Thanks: 4 given, 3 received



ktrader View Post
Draw 2 pixels (pr rectangle) on top of each other , up-scale it in the GPU and draw the resulting image.

Oh that seems like a good idea. Anything that leverages the GPU would be great. I've read that WIC is supposed to be good...

WIC Plugins - ASP.NET Image resizing for IIS

Do you mean using something like that?

I don't follow why we need 2 pixels?

Reply With Quote

Reply



futures io > > > > > DrawText or DrawSquare or ???

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
Help with drawtext floyd084 NinjaTrader Programming 1 July 11th, 2015 06:22 PM
DrawText - DrawTextFixed ceramictilepro NinjaTrader Programming 1 February 4th, 2014 01:35 PM
DrawText in subpanel, How? ECI Ed NinjaTrader Programming 3 October 21st, 2013 09:32 PM
DrawText() Problem when converting NT6.5 to NT7 qzhang119 NinjaTrader Programming 6 September 23rd, 2012 02:57 PM
N7 SwingHigh/Low DrawText ceramictilepro NinjaTrader Programming 7 February 7th, 2011 08:57 PM


All times are GMT -4. The time now is 06:54 PM.

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.12 seconds with 19 queries on phoenix via your IP 54.90.92.204