NexusFi: Find Your Edge


Home Menu

 





Plot this!


Discussion in EasyLanguage Programming

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




 
Search this Thread
  #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?
Building models w/Neuroshell and Adaptatrade
Platforms and Indicators
Ticksandtrades.com
Trading Reviews and Vendors
Jigsaw Lifetime License for sale!
Platforms and Indicators
Using multiple Versions of the same DLL in MC.Net
MultiCharts
Historical Price History?
Elite Algorithmic NinjaTrader Trading
 




Last Updated on September 15, 2015


© 2025 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 - Downloads - Top
no new posts