PaPP v2 indicatore: fix compile - OBJPROP_BOLD inesistente in MQL5, grassetto via font

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
Pietro Giacobazzi
2026-06-16 19:12:34 +00:00
parent 3c4909af0f
commit 78ccb1d819
+1 -2
View File
@@ -191,8 +191,7 @@ void Lbl(string n,string t,int x,int y,int fs,color c,bool b)
ObjectSetInteger(0,o,OBJPROP_YDISTANCE,y);
ObjectSetInteger(0,o,OBJPROP_CORNER,CORNER_LEFT_UPPER);
ObjectSetString(0,o,OBJPROP_TEXT,t);
ObjectSetString(0,o,OBJPROP_FONT,"Consolas");
ObjectSetInteger(0,o,OBJPROP_BOLD,b?1:0);
ObjectSetString(0,o,OBJPROP_FONT,b?"Consolas Bold":"Consolas");
ObjectSetInteger(0,o,OBJPROP_FONTSIZE,fs);
ObjectSetInteger(0,o,OBJPROP_COLOR,c);
ObjectSetInteger(0,o,OBJPROP_BACK,false);