NexusFi: Find Your Edge


Home Menu

 





DrawText or DrawSquare or ???


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Jayswiss with 5 posts (0 thanks)
    2. looks_two rleplae with 3 posts (0 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 ktrader with 1 posts (0 thanks)
    1. trending_up 1,676 views
    2. thumb_up 0 thanks given
    3. group 3 followers
    1. forum 9 posts
    2. attach_file 0 attachments




 
Search this Thread

DrawText or DrawSquare or ???

  #1 (permalink)
 Jayswiss 
San Francisco, CA / USA
 
Experience: Intermediate
Platform: NinjaTrader, TradingView
Trading: ES, TF, NQ, CL, GC
Posts: 29 since Jun 2016
Thanks Given: 4
Thanks Received: 3

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...



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.)

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Exit Strategy
NinjaTrader
ZombieSqueeze
Platforms and Indicators
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
MC PL editor upgrade
MultiCharts
Trade idea based off three indicators.
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
33 thanks
Just another trading journal: PA, Wyckoff & Trends
28 thanks
Tao te Trade: way of the WLD
23 thanks
Bigger Wins or Fewer Losses?
23 thanks
GFIs1 1 DAX trade per day journal
21 thanks
  #3 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 3,003 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,863


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 ?

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #4 (permalink)
 Jayswiss 
San Francisco, CA / USA
 
Experience: Intermediate
Platform: NinjaTrader, TradingView
Trading: ES, TF, NQ, CL, GC
Posts: 29 since Jun 2016
Thanks Given: 4
Thanks Received: 3


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.

Started this thread Reply With Quote
  #5 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 3,003 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,863

I would lean towards using drawbox

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #6 (permalink)
 Jayswiss 
San Francisco, CA / USA
 
Experience: Intermediate
Platform: NinjaTrader, TradingView
Trading: ES, TF, NQ, CL, GC
Posts: 29 since Jun 2016
Thanks Given: 4
Thanks Received: 3

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?

Started this thread Reply With Quote
  #7 (permalink)
 Jayswiss 
San Francisco, CA / USA
 
Experience: Intermediate
Platform: NinjaTrader, TradingView
Trading: ES, TF, NQ, CL, GC
Posts: 29 since Jun 2016
Thanks Given: 4
Thanks Received: 3


rleplae View Post
I would lean towards using drawbox

You mean DrawRectangle ?

Started this thread Reply With Quote
  #8 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 3,003 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,863


Jayswiss View Post
You mean DrawRectangle ?

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

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #9 (permalink)
 
ktrader's Avatar
 ktrader 
glostrup, denmark
 
Experience: Advanced
Platform: Custom platform
Broker: CQG
Trading: Futures, Options, Stocks
Posts: 249 since Aug 2011
Thanks Given: 152
Thanks Received: 275


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...



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)
 Jayswiss 
San Francisco, CA / USA
 
Experience: Intermediate
Platform: NinjaTrader, TradingView
Trading: ES, TF, NQ, CL, GC
Posts: 29 since Jun 2016
Thanks Given: 4
Thanks Received: 3



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?

Started this thread Reply With Quote




Last Updated on July 4, 2016


© 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