Indikatorbuffer - Statisch oder Dynamisch definieren
Hallo MQL5 Spezialisten.
Ich hab' schon wieder MQL5-Schmerzen. Die statische Definition von Plotbuffern empfinde ich als sehr schmerzhaft. Das muß wohl ein Relikt von MQL4 sein. Das tut richtig weh :D Code:
#property indicator_plots 1 Code:
PlotIndexSetInteger(0,PLOT_DRAW_TYPE, DRAW_LINE); Siehe dazu http://www.expert-advisor.com/forum/...eile-code.html Jetzt aber mein Problem: Wie definiere ich die Farben eines INDICATOR_COLOR_INDEX Code:
#property indicator_color1 clrRed,clrLime Code:
PlotIndexSetInteger(3,PLOT_LINE_COLOR, clrRed ); Und überhaupt sind mir diese colorlines etwas suspekt, vor allem die indexnummern. anscheinend wird der colorindex nach hinten verschoben Dieser Code funktioniert! Sonderbar ist die Indizierung Code:
SetIndexBuffer(0,IndBuffer,INDICATOR_DATA); // Ozymandias Centerline Grüße Otto |
Alle Zeitangaben in WEZ +2. Es ist jetzt 02:00 Uhr. |
Powered by vBulletin® Version 3.8.5 (Deutsch)
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.6.1
Powered by vBCMS® 2.7.0 ©2002 - 2024 vbdesigns.de
Copyright ©2009 - 2023 by Expert-Advisor.com - Das Metatrader Forum