price marker for Draw object - NinjaTrader Programming | futures io social day trading
futures io futures trading


price marker for Draw object
Updated: Views / Replies:2,358 / 7
Created: by baberg 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
 
Thread Tools Search this Thread
 

price marker for Draw object

  #1 (permalink)
Trading Apprentice
Canada
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: Forex
 
Posts: 29 since Jul 2011
Thanks: 4 given, 1 received

price marker for Draw object

Hello,

I have one DrawHorizontalLine in my script. Is it possible to get a price marker on y axis for it ? (without adding a plot/DataSeries on top of it)

Maybe with a parameter inside Initialise{} or something ?

Thanks again.

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
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,651 since Mar 2010
Thanks: 4,226 given, 25,601 received
Forum Reputation: Legendary



baberg View Post
Hello,

I have one DrawHorizontalLine in my script. Is it possible to get a price marker on y axis for it ? (without adding a plot/DataSeries on top of it)

Maybe with a parameter inside Initialise{} or something ?

Thanks again.

I am not aware that this is possible. But why don't you want to add a plot?

Reply With Quote
 
  #4 (permalink)
Trading Apprentice
Canada
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: Forex
 
Posts: 29 since Jul 2011
Thanks: 4 given, 1 received

My aim was to get a price marker for a value calculated only on last bar.

I tried first :

if(Bars.LastBarOfSession) PlotColors[0][0]=Color.Yellow
else PlotColors[0][0]=Color.Empty

but I still got a fragment of line displayed from candle [1] to [0]


Now for the easier and valid way : if(Bars.LastBarOfSession) DataSeries ...does de job (no line at all)


Thanks again. I'll rename you officially "my coding guard"

Reply With Quote
 
  #5 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,651 since Mar 2010
Thanks: 4,226 given, 25,601 received
Forum Reputation: Legendary


baberg View Post
My aim was to get a price marker for a value calculated only on last bar.

I tried first :

if(Bars.LastBarOfSession) PlotColors[0][0]=Color.Yellow
else PlotColors[0][0]=Color.Empty

but I still got a fragment of line displayed from candle [1] to [0]

Now for the easier and valid way : if(Bars.LastBarOfSession) DataSeries ...does de job (no line at all)

Thanks again. I'll rename you officially "my coding guard"

Sorry, I do not understand, where you want to draw a line. Also why do you want to use Bars.LastBarOfSession?

Maybe you can attach a chart and manually draw a line where you want to plot it.

Reply With Quote
 
  #6 (permalink)
Trading Apprentice
Canada
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: Forex
 
Posts: 29 since Jul 2011
Thanks: 4 given, 1 received

I wrote :
DrawHorizontalLine("tag",true,Close[0]+ATR(Close,14)[0],Color.Yellow,DashStyle.DashDot,1);
in order to get a line at LAST price level + ATR

but I needed a price marker so in the end I added a dataseries to plot yellow on top of it :
if(Bars.LastBarOfSession) marker.Set(Close[0]+ATR(Close,14)[0]);

if I didn't place if(Bars.LastBarOfSession) in front to get the marker, I'd have a zigzag line of the price+ATR for every candle on top of my horizontal line (therefore 2 lines and one I don't want at all)

Did I code it a distorded way ?! I'm a crazy aloof mind.


Last edited by baberg; August 21st, 2011 at 03:02 PM.
Reply With Quote
 
  #7 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,651 since Mar 2010
Thanks: 4,226 given, 25,601 received
Forum Reputation: Legendary

Horizontal Line at the Close of the Bar

Maybe something like this?

Attached Files
Register to download File Type: zip HorizontaLine.zip (3.5 KB, 112 views)
Reply With Quote
 
  #8 (permalink)
Trading Apprentice
Canada
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: Forex
 
Posts: 29 since Jul 2011
Thanks: 4 given, 1 received

I knew it was there on purpose but which purpose. Thanks a lot.

Reply With Quote

Reply



futures io > > > > > price marker for Draw object

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Price marker at specific time meyer99 NinjaTrader 5 July 22nd, 2011 08:04 PM
Draw object Properties kenz987 NinjaTrader Programming 1 November 10th, 2010 10:48 AM
Draw on both Price & Indicator Panel NT7? Wessel NinjaTrader Programming 12 July 15th, 2010 09:41 AM
Price marker from actual candle stick jsengxx NinjaTrader Programming 4 December 16th, 2009 12:29 PM
Code to draw a hash on the main price window cunparis NinjaTrader Programming 10 November 17th, 2009 09:59 AM


All times are GMT -4. The time now is 09:46 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-12 in 0.11 seconds with 20 queries on phoenix via your IP 54.221.93.187