NexusFi: Find Your Edge


Home Menu

 





Plot this!


Discussion in EasyLanguage Programming

Updated
    1. trending_up 1,432 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?
Wood Mackenzie Drops $200 Oil Forecast -- Airspace Expir …
Prediction Markets & Event Contracts
Penalties in Budapest, Peace Deadline in Tehran: Arsenal …
Prediction Markets & Event Contracts
Four New E-mini Futures Launch June 29 -- Russell 3000, …
Emini and Emicro Index
Ceasefire Collapse: Iran Fires 24 Missiles, Israel Hits …
Traders Hideout
Weekend Update: First Qatari LNG Transit Attempted -- IR …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
197 thanks
Sober Journey With S&P
27 thanks
30 Sessions
20 thanks
Volume Indicators
8 thanks
BERN ALGOS algo trading journal
8 thanks




Last Updated on September 15, 2015


© 2026 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