In indicators we can define a color as the property of the plotted indicator.
How can I make color indexes to use in a graphic object?
- Sorting graphic objects
- Please fix this indicator or EA
- Multi Timeframe Indicators
ObjectSetInteger()
Can be used in mql4 or mql5
Documentation on MQL5: Object Functions / ObjectSetInteger
- www.mql5.com
//| Table of Web Colors| //| Copyright 2011, MetaQuotes Software Corp | //| https://www.metaquotes.net | //| Array of web colors |...
Don't works. I'm trying to use the
#property indicator_color1 clrAqua,clrBlue
to set the color of the object using the index as in indicators, but is not working, because is not an indicator plot. The question is how to convert the (int)color index into (color) to use it in others objects that is not an indicator plot? I can use the (input) parameters, but the color tab is visible even if I do not declare the property.
void create() { Label.Create(0,"label",0,0,0,0,0); ObjectSetInteger(0,"label",OBJPROP_COLOR,1); style(); geometry(); }
Is it possible?
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