NexusFi: Find Your Edge


Home Menu

 





DrawLine Value Needed! Help.


Discussion in NinjaTrader

Updated
    1. trending_up 996 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 4 posts
    2. attach_file 0 attachments




 
Search this Thread

DrawLine Value Needed! Help.

  #1 (permalink)
kidvic
Los Angeles, CA
 
Posts: 92 since Mar 2015
Thanks Given: 13
Thanks Received: 3

How do I have get the price value of DrawLine("EntryShortLine" , true, 2, EntryShort, -1, EntryShort, Color.Blue, DashStyle.Solid, 1);


It draws it perfectly on the chart, but I want the price value of entryshortline when it's plotted. How do I do that?
In other words the Y value.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
ZombieSqueeze
Platforms and Indicators
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Are there any eval firms that allow you to sink to your …
Traders Hideout
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
Futures True Range Report
The Elite Circle
 
  #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


I hope this could help you :

 
Code
          // look if there is a line with the tag "EntryShortLine"
          foreach (IDrawObject draw in DrawObjects["EntryShortLine")
         {    
            if (draw is ILine)
            {
                 ILine drawnLine = (ILine) draw;
                 Print("EntryShortLine (value): " + draw.endY);
            }
          }

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #4 (permalink)
kidvic
Los Angeles, CA
 
Posts: 92 since Mar 2015
Thanks Given: 13
Thanks Received: 3


rleplae View Post
I hope this could help you :

 
Code
          // look if there is a line with the tag "EntryShortLine"
          foreach (IDrawObject draw in DrawObjects["EntryShortLine")
         {    
            if (draw is ILine)
            {
                 ILine drawnLine = (ILine) draw;
                 Print("EntryShortLine (value): " + draw.endY);
            }
          }

Thanks!!!!

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

There is a little typo :

change :

 
Code
 draw.endY);

in :


 
Code
drawline.endY);

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote




Last Updated on October 31, 2015


© 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