I created a custom CCI. It works as intended. Except; the level numbers are displayed in the background color of the accompanying line.
How can I get rid off the background color. I tried setting the BGCOLOR to white but that doesn't do a thing.
Included are the image and a portion of the code I wrote to draw the upper level (80). Any guidance would be welcomed.
if (PositiveLevel > 0) { // defined by user// Check if the object already exists (to avoid duplicating it)if (ObjectCreate("BuyZone", OBJ_HLINE, subWindow, 0, 0) == 0) //subwindow defined earlier
{
// If the object already exists, delete it firstObjectDelete("BuyZone");
}
// Set the properties of the Positive lineObjectSetInteger(0, "BuyZone", OBJPROP_RAY_RIGHT, true); // Extend the line to the rightObjectSetDouble (0, "BuyZone", OBJPROP_PRICE1, PositiveLevel); // Price level where the line will be drawn// Attach the Positive line to the specified subwindowObjectSetInteger(0, "BuyZone", OBJPROP_SELECTABLE, false); // Make it not selectableObjectSetInteger(0, "BuyZone", OBJPROP_SELECTED, false); // Deselect the objectjObjectSetInteger(0, "BuyZone", OBJPROP_COLOR, openOrder); // Line color (you can change this) ObjectSetInteger(0, "BuyZone", OBJPROP_STYLE, CCI_Style); // Line style (you can change this)ObjectSetInteger(0, "BuyZone", OBJPROP_WIDTH, CCI_Width); // Line width (you can change this)
}
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hello;
I created a custom CCI. It works as intended. Except; the level numbers are displayed in the background color of the accompanying line.
How can I get rid off the background color. I tried setting the BGCOLOR to white but that doesn't do a thing.
Included are the image and a portion of the code I wrote to draw the upper level (80). Any guidance would be welcomed.
Thank you.