Learning the MT4 Language.... or trying.
I am trying to draw a rectangle that is LightSkyBlue with a label that says Supply.
I have a part of it, but hit a wall. Any ideas or help?
Also, how do you attach files. They all seem to be web links only. Do you upload your scripts somewhere?
I am trying to draw a rectangle that is LightSkyBlue with a label that says Supply.
I have a part of it, but hit a wall. Any ideas or help?
Inserted Code
void OnStart()
{
double x1 = Time[0] - PeriodSeconds() * 0.5;
double x2 = Time[0] + PeriodSeconds() * 20.5;
double y1 = High[0];
double y2 = Low[0];
// Draw the rectangle
ObjectCreate("Supply", OBJ_RECTANGLE, 0, x1, y1, x2, y2);
ObjectSet("Supply", OBJPROP_COLOR, LightSkyBlue);
ObjectSet("Supply", OBJPROP_WIDTH, 1);
} Also, how do you attach files. They all seem to be web links only. Do you upload your scripts somewhere?