MQL5 v1.27: S/R-Label zeigt nur die Prozentzahl
User: "entferne 'Durchbruch' bei S/R die Prozentzahl reicht mir". vorher: Widerstand 84.536 · Durchbruch 18% jetzt: Widerstand 84.536 · 18% Der ausgeschriebene Hinweis bleibt im Tooltip der Linie erhalten. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
770f994fd1
commit
04ea6934ee
+7
-4
@@ -12,7 +12,9 @@
|
|||||||
//| 4) Der Bot muss laufen (schreibt die CSV alle ~5 s). |
|
//| 4) Der Bot muss laufen (schreibt die CSV alle ~5 s). |
|
||||||
//+------------------------------------------------------------------+
|
//+------------------------------------------------------------------+
|
||||||
#property copyright "Oil Trading Bot"
|
#property copyright "Oil Trading Bot"
|
||||||
#property version "1.26"
|
#property version "1.27"
|
||||||
|
// v1.27 (2026-07-30): S/R-Label zeigt nur noch die Prozentzahl statt
|
||||||
|
// „Durchbruch 34%" (User-Wunsch) — der ausgeschriebene Text bleibt im Tooltip.
|
||||||
// v1.26 (2026-07-30): Beschriftungen + Pfeile stehen jetzt GANZ rechts am
|
// v1.26 (2026-07-30): Beschriftungen + Pfeile stehen jetzt GANZ rechts am
|
||||||
// Chartrand — auf Hoehe des Kurs-Labels (User: „genau so angeordnet wie der
|
// Chartrand — auf Hoehe des Kurs-Labels (User: „genau so angeordnet wie der
|
||||||
// aktuelle Kurs"). RightTime() rechnet dafuer das Ende des Shift-Bereichs
|
// aktuelle Kurs"). RightTime() rechnet dafuer das Ende des Shift-Bereichs
|
||||||
@@ -399,12 +401,13 @@ void Redraw()
|
|||||||
double price = StringToDouble(p[1]);
|
double price = StringToDouble(p[1]);
|
||||||
if(price <= 0) continue;
|
if(price <= 0) continue;
|
||||||
// Feld 3 (optional) = P(Durchbruch) in % aus dem kalibrierten Modell des
|
// Feld 3 (optional) = P(Durchbruch) in % aus dem kalibrierten Modell des
|
||||||
// Bots (User-Wunsch 2026-07-30). Niedrig = Level haelt eher, hoch = bricht
|
// Bots. Niedrig = Level haelt eher, hoch = bricht eher. Im LABEL steht nur
|
||||||
// eher. Wird ans Label gehaengt: „Widerstand 84.536 · Durchbruch 34%".
|
// die nackte Zahl („Widerstand 84.536 · 34%", User-Wunsch 2026-07-30);
|
||||||
|
// der ausgeschriebene Hinweis bleibt im Tooltip der Linie.
|
||||||
string lbl = (typ=="R" ? "Widerstand " : "Unterstuetzung ")
|
string lbl = (typ=="R" ? "Widerstand " : "Unterstuetzung ")
|
||||||
+ DoubleToString(price, (int)_Digits);
|
+ DoubleToString(price, (int)_Digits);
|
||||||
if(InpShowPBreak && k > 2 && StringLen(p[2]) > 0)
|
if(InpShowPBreak && k > 2 && StringLen(p[2]) > 0)
|
||||||
lbl += " · Durchbruch " + p[2] + "%";
|
lbl += " · " + p[2] + "%"; // nur die Zahl (User-Wunsch 2026-07-30)
|
||||||
color col = (typ=="R" ? InpResColor : InpSupColor);
|
color col = (typ=="R" ? InpResColor : InpSupColor);
|
||||||
string nm = PFX + typ + "_" + IntegerToString(idx);
|
string nm = PFX + typ + "_" + IntegerToString(idx);
|
||||||
if(ObjectCreate(0, nm, OBJ_HLINE, 0, 0, price))
|
if(ObjectCreate(0, nm, OBJ_HLINE, 0, 0, price))
|
||||||
|
|||||||
Reference in New Issue
Block a user