Jump to content

Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.

  • Welcome Guests

    Welcome. You are currently viewing the forum as a guest which does not give you access to all the great features at Traders Laboratory such as interacting with members, access to all forums, downloading attachments, and eligibility to win free giveaways. Registration is fast, simple and absolutely free. Create a FREE Traders Laboratory account here.

nuno-online

Easylanguage: Function to Plot Text Verticaly

Recommended Posts

Hi nuno,

 

No, currently there is no inbuilt function to perform that action.

 

However you can start with the following code and add as you want.

Use the Input Txt_Adjust accordingly to the market you are using.

Input: Txt_adjust (5);// Points  
Input: TxtClr	  (RGB(255,135,00)); 
//========================= 
var: TX1(0); var: TX7(0);  
var: TX2(0); var: TX8(0); 
var: TX3(0); var: TX9(0); 
var: TX4(0); var: TX10(0); 
var: TX5(0); var: TX11(0); 
var: TX6(0); var: TX12(0); 
//========================== 
If LastBarOnChart then begin 

TX1 = text_new(Date,Time,High+Txt_adjust*5 Points,"H"); 
TX2 = text_new(Date,Time,High+Txt_adjust*4 Points,"E"); 
TX3 = text_new(Date,Time,High+Txt_adjust*3 Points,"L"); 
TX4 = text_new(Date,Time,High+Txt_adjust*2 Points,"L"); 
TX5 = text_new(Date,Time,High+Txt_adjust   Points,"O"); 

TX6 = text_new(Date,Time,Low-Txt_adjust    Points,"L"); 
TX7 = text_new(Date,Time,Low-Txt_adjust*2  Points,"A"); 
TX8 = text_new(Date,Time,Low-Txt_adjust*3  Points,"P"); 
TX9 = text_new(Date,Time,Low-Txt_adjust*4  Points,"U"); 
TX10 = text_new(Date,Time,Low-Txt_adjust*5 Points,"T"); 
TX11 = text_new(Date,Time,Low-Txt_adjust*6 Points,"A"); 
//Above the Bar 
Text_SetColor(TX1,TxtClr);Text_SetStyle(TX1,2,1); 
Text_SetColor(TX2,TxtClr);Text_SetStyle(TX2,2,1); 
Text_SetColor(TX3,TxtClr);Text_SetStyle(TX3,2,1); 
Text_SetColor(TX4,TxtClr);Text_SetStyle(TX4,2,1); 
Text_SetColor(TX5,TxtClr);Text_SetStyle(TX5,2,1); 
//Below the Bar 
Text_SetColor(TX6,TxtClr);Text_SetStyle(TX6,2,0); 
Text_SetColor(TX7,TxtClr);Text_SetStyle(TX7,2,0); 
Text_SetColor(TX8,TxtClr);Text_SetStyle(TX8,2,0); 
Text_SetColor(TX9,TxtClr);Text_SetStyle(TX9,2,0); 
Text_SetColor(TX10,TxtClr);Text_SetStyle(TX10,2,0); 
Text_SetColor(TX11,TxtClr);Text_SetStyle(TX11,2,0);	 
End;

 

Cheers,

EasyTrader_I

Share this post


Link to post
Share on other sites

I found

 

 

MidStr

Returns a part, starting from a specified position and of a specified length, of a specified string expression.

 

Usage

MidStr("String",Pos,Num)

 

Where: String - a string expression the specified part is to be taken from

Pos - a numerical expression specifying the position, from the left side of the string, of the starting character of the part

Num - a numerical expression specifying the length, in characters, of the part

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.