You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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 );
Thank you for your help,
Best regards