How to Detect Square or Arrow in Chart - NinjaTrader Programming | futures io social day trading
futures io futures trading


How to Detect Square or Arrow in Chart
Updated: Views / Replies:1,329 / 5
Created: by westsider 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
 

How to Detect Square or Arrow in Chart

  #1 (permalink)
Elite Member
Los Angeles, California
 
Futures Experience: Intermediate
Platform: Ninjatrader
Broker/Data: Stage 5
Favorite Futures: ES AAPL
 
Posts: 83 since Jun 2011
Thanks: 41 given, 102 received

How to Detect Square or Arrow in Chart

I have a 3rd party indicator that I would like to make strategy entries from. It does not generate plots or and bool conditions just a DrawSquare object on the chart. I know its possible to detect these. Does anyone know how?
Thanks
Westsider

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)
Market Wizard
Cleveland Ohio/United States
 
Futures Experience: Advanced
Platform: Tradestation
Broker/Data: various
Favorite Futures: futures
 
Posts: 2,388 since Jul 2012
Thanks: 1,139 given, 4,387 received
Forum Reputation: Legendary



westsider View Post
I have a 3rd party indicator that I would like to make strategy entries from. It does not generate plots or and bool conditions just a DrawSquare object on the chart. I know its possible to detect these. Does anyone know how?
Thanks
Westsider

I assume the code is locked. Why not ask the developer for assistance?

If you have any questions please send me a Private Message or use the futures.io "Ask Me Anything" thread
Reply With Quote
 
  #4 (permalink)
Elite Member
Los Angeles, California
 
Futures Experience: Intermediate
Platform: Ninjatrader
Broker/Data: Stage 5
Favorite Futures: ES AAPL
 
Posts: 83 since Jun 2011
Thanks: 41 given, 102 received

The code is locked - as it should be. I contacted the developer. They said there were no plans to offer any plots in the future.

Reply With Quote
The following user says Thank You to westsider for this post:
 
  #5 (permalink)
Elite Member
Cedar Rapids, iowa
 
Futures Experience: Intermediate
Platform: Ninjatrader
Broker/Data: Ninjatrader - Continuum
Favorite Futures: 6E, TF, 6J
 
Tasker_182's Avatar
 
Posts: 626 since Aug 2009
Thanks: 426 given, 1,126 received


westsider View Post
I have a 3rd party indicator that I would like to make strategy entries from. It does not generate plots or and bool conditions just a DrawSquare object on the chart. I know its possible to detect these. Does anyone know how?
Thanks
Westsider

Not sure if this will meet your needs but from the Ninja help file:

NinjaScript > Language Reference > Drawing >

DrawObjects



Definition
A collection holding all of the draw objects on the chart for the primary bar series. The draw objects can be manually drawn or script generated objects.



Property Value

A collection of IDrawObject objects.



Syntax

DrawObjects

DrawObjects[string tag]

DrawObjects.Count






Examples

// Example #1: Finding the draw object of a specific tag

protected override void OnBarUpdate()

{

if (DrawObjects["someTag"] != null && DrawObjects["someTag"].DrawType == DrawType.Line)

{

// Do something

}

}



// Example #2: Number of draw objects on a chart

protected override void OnBarUpdate()

{

if (DrawObjects.Count == 3)

{

// Do something

}

}



// Example #3: Looping through the collection to find specific draw objects

protected override void OnBarUpdate()

{

// Loops through the DrawObjects collection

foreach (IDrawObject draw in DrawObjects)

{

// Finds line objects that are attached globally to all charts of the same instrument

if (draw.Tag.StartsWith("@") && draw is ILine)

{

ILine globalLine = (ILine) draw;



// Changes the line color and prints its starting and end points

globalLine.Pen.Color = Color.Black;

Print("Start: " + globalLine.StartBarsAgo + " End: " + globalLine.EndBarsAgo);

}



// Finds non-global line objects

else if (draw is ILine)

{

ILine drawnLine = (ILine) draw;



// Determines if this is a manually drawn or script generated line

Print("Line Object: " + draw.Tag + " Manually Drawn: " + draw.UserDrawn);

}

}

}

"Money is better than poverty, if only for financial reasons." - Woody Allen
Reply With Quote
The following 2 users say Thank You to Tasker_182 for this post:
 
  #6 (permalink)
Elite Member
Los Angeles, California
 
Futures Experience: Intermediate
Platform: Ninjatrader
Broker/Data: Stage 5
Favorite Futures: ES AAPL
 
Posts: 83 since Jun 2011
Thanks: 41 given, 102 received

WOW! - Very helpful. I will chew through these options today - Thanks very much @Tasker_182
I didn't see this in the help section

Reply With Quote

Reply



futures io > > > > > How to Detect Square or Arrow in Chart

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
How to detect CL chop session roach1972 Traders Hideout 8 August 5th, 2013 01:01 PM
Question about : GANN SQUARE - Help Please ? amy vaulhausen NinjaTrader 2 September 27th, 2012 08:23 AM
Square scaling of charts wldman NinjaTrader 29 October 3rd, 2011 12:54 PM
Indicator to detect commitment of traders Chipmunk The Elite Circle 18 June 16th, 2011 09:44 AM
Slightly Different - Detect Chop - Trader.Jon NinjaTrader Programming 1 August 30th, 2010 01:49 PM


All times are GMT -4. The time now is 06:22 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-17 in 0.10 seconds with 19 queries on phoenix via your IP 54.82.81.154