NexusFi: Find Your Edge


Home Menu

 





Plot this!


Discussion in EasyLanguage Programming

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




 
Search this Thread

Plot this!

  #1 (permalink)
 Pitrader 
Canada
 
Posts: 12 since Feb 2011

I have some code below that I would like to modify but I am not much of a coder.

The code below prints the high of the bar.

What I need is to have the high +1 tick and only 2 digits before the decimal and 2 digits after the decimal displayed.


Any help would be appreciated.

 
Code
using elsystem;  
using elsystem.drawing;  
using elsystem.drawingobjects;  
  
inputs:  
	bool iShowCenter(true);  
	  
variables:  
	TextLabel TL(null),  
	BNPoint BNP(null);  
  
  
if barstatus(DataNum + 1) = 2 then  
begin  
  
	if iShowCenter then  
	begin  
		BNP = BNPoint.Create(CurrentBar, High ); 
		TL = TextLabel.Create(BNP, Numtostr(High, 2));  
		//TL.AutoShow = true;  
		TL.Color = Color.red;  
		//TL.Name = "TL" + NumtoStr(CurrentBar, 0) + "C";  
		TL.Persist = true;  
		TL.TextString = Numtostr(High,2 );  
		TL.HStyle = HorizontalStyle.Center;  
		TL.VStyle = VerticalStyle.Bottom;  
		//TL.SetPointValue(BNP);  
		  
		DrawingObjects.Add(TL);  
	end;  
end

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
Request for MACD with option to use different MAs for fa …
NinjaTrader
NexusFi Journal Challenge - April 2024
Feedback and Announcements
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Retail Trading As An Industry
58 thanks
Battlestations: Show us your trading desks!
49 thanks
NexusFi site changelog and issues/problem reporting
47 thanks
GFIs1 1 DAX trade per day journal
32 thanks
What percentage per day is possible? [Poll]
31 thanks






Last Updated on September 15, 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