NT7 Better Arrows and Other Symbols - NinjaTrader Programming | futures io social day trading
futures io futures trading


NT7 Better Arrows and Other Symbols
Updated: Views / Replies:2,784 / 2
Created: by hunter548 Attachments:3

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
 

NT7 Better Arrows and Other Symbols

  #1 (permalink)
Elite Member
western ny
 
Futures Experience: Intermediate
Platform: ninjatrader
Broker/Data: Amp Futures/CQG
Favorite Futures: 6E, ES
 
hunter548's Avatar
 
Posts: 104 since Nov 2009
Thanks: 197 given, 90 received

NT7 Better Arrows and Other Symbols

I like darker backgrounds with white text. When using the DrawArrowUp() or DrawArrowDown() functions, I found out that NT7 automatically colors all symbol outlines to match the text color, hence white in this case. The same thing applies to other symbols like dots and triangles using similar DrawDots() and DrawTrianglesUp/Down() functions.

After spending some time researching the issue, I figured out the syntax needed to add solid color symbols to any NT7 indicator using DrawText(). Lacking a specific example to plagarize, I ultimately put the pieces together to create the solid arrows I wanted.

I thought I'd share exactly what code I wrote and where it goes within a program to make it easier to plagarize (and also so I could find it to use later myself). I started with TMFT's DualCCI_Beta_V2 and changed the dots displayed to arrows.

The updated indicator I renamed DualCCI_Beta_V3. If you open it for edit, you'll see where I commented what I changed or added. I'm not a programmer, so you may find mistakes I made, but I dabble a lot and it does what I wanted with the arrows.

The following hits the highlights of what I changed and/or added:

#region Variables

private bool drawArrowOnPricePanel = true;
private Color arrowUpColor = Color.DodgerBlue;
private Color arrowDnColor = Color.Red;

private System.Drawing.Font textFont;

protected override void OnBarUpdate()

textFont = new Font("Wingdings 3", 20);


DrawText("UpSymbol" + CurrentBar, true, "#", 0, Low[0]-pSeparation*TickSize, 0, arrowUpColor, textFont, StringAlignment.Center, Color.Empty, Color.Empty, 10);


DrawText("DownSymbol" + CurrentBar, true, "$", 0, High[0]+pSeparation*TickSize, 0, arrowDnColor, textFont, StringAlignment.Center, Color.Empty, Color.Empty, 10);

---- The # and $ characters define the Arial to Wingdings 3 conversion for the up and down arrow symbols I chose. I attached an excel spreadsheet to show other character possibilities and make it easier to convert to different symbol by substituting a different character.----

#region Properties
Lines 398 - 442
Changed dot references to Arrow references so you can choose to display arrows or not and change their color.
****************

The following link gives gives a Ninjatrader link to how to use the DrawText() function.

Hma rising and falling arrows - Page 3 - NinjaTrader Support Forum

This link gives an indicator that shows the end result of using DrawText() with lots of arrow options and text boxes.

https://futures.io/39695-post4.html

The following pic shows how the arrows look:

Attached Thumbnails
NT7 Better Arrows and Other Symbols-snap1.png  
Attached Files
Register to download File Type: cs DualCCI_beta_v3.cs (22.2 KB, 52 views)
Register to download File Type: xls WINDINGS3 CONVERSION.xls (26.5 KB, 66 views)
Reply With Quote
The following 6 users say Thank You to hunter548 for this post:
 
  #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
Denver, CO
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: NinjaTrader Brokerage
Favorite Futures: ES
 
NinjaTrader's Avatar
 
Posts: 1,260 since May 2010
Thanks: 153 given, 1,890 received


If I recall, instantiating new fonts is expensive and should be avoided thus, you should remove "textFont" from OnBarUpdate() and assign it in OnStartUp() only once.

Reply With Quote
The following 2 users say Thank You to NinjaTrader for this post:

Reply



futures io > > > > > NT7 Better Arrows and Other Symbols

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
Compare two Symbols Allansun NinjaTrader 4 November 13th, 2014 12:43 PM
Asian market Symbols for NT7 skyfly NinjaTrader 6 July 25th, 2011 11:05 PM
symbols and margin johni MultiCharts 1 July 9th, 2011 04:45 PM
Index Symbols TonyB Open E Cry 4 July 6th, 2011 01:17 PM
Trading Multi Symbols gmlee EasyLanguage Programming 1 February 2nd, 2011 12:21 AM


All times are GMT -4. The time now is 08:59 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.08 seconds with 20 queries on phoenix via your IP 54.160.245.121