Jump to content

Fontsize option


gringoh

Recommended Posts

Hello,

 

 

Just a short question, I would like to add a font size option to the code bellow but I cannot manage to make it work, I tried the following code but it is not working:

 

 

SetLabel ("iProfit12", DoubleToStr (tu/MathPow(10,DecPts()), DecPts()), ColorOnSign(tp), eiX0Row, eiOffsetY+2*eiStepY, fontsize );

 

 

Here the source code:

 

 

extern int FontSize = 8;

//+--------------------------------------------------------------------------+

//| Options positions |

//+--------------------------------------------------------------------------+

extern int eiOffsetY = 25; // (Y) Offset text vertically

extern int eiStepY = 14; // (Y) Step displacements of the text vertically

 

extern int eiX0Row = 3 ; // (X) Coordinate of the first column

 

//+--------------------------------------------------------------------------+

//| Color Settings |

//+--------------------------------------------------------------------------+

extern color ecText = White; // Text Color

extern color ecProfit = Lime; // Color profit

extern color ecLoss = Red; // Color loss

 

 

SetLabel ("iProfit12", DoubleToStr (tu/MathPow(10,DecPts()), DecPts()), ColorOnSign(tp), eiX0Row, eiOffsetY+2*eiStepY );

 

 

Help needed I am sure it is not that complicated...

 

 

Thank you very much for who will help me,

 

 

Best regards

Link to comment
Share on other sites

I am sure it is not so complicated, I tried to move the "fontsize" option, but the indicator was not displayed at all, then it was but on the wrong corner, then whithout the good color...

 

Arffff help needed pleaaaseeeee,

 

Be sure I will share what I am preparing,

 

Best regards

Link to comment
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.

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...