look this line, you are missing a parentesis ) ...
ObjectCreate("PivotLine", OBJ_HLINE,0, CurTime();
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
hi guys, need some help here, i'm very new to this programming, i'm seeing this error " '\end_of_program' - unbalanced left parenthesis C:\Program Files\MetaTrader - Alpari UK\experts\indicators\pivot1.mq4 (37, 1) "
Below is the code....your help is really appreciated !!!!
#property indicator_chart_window
double YesterdayHigh;
double YesterdayLow;
double YesterdayClose;
double Day_Price[][6];
double Pivot;
int start()
{
YesterdayHigh = Day_Price[1][3];
YesterdayLow = Day_Price[1][2];
YesterdayClose = Day_Price[1][4];
Pivot = ((YesterdayHigh + YesterdayLow + YesterdayClose)/3);
ObjectCreate("PivotLine", OBJ_HLINE,0, CurTime();
ObjectSet("PivotLine", OBJPROP_COLOR, Magenta);
ObjectSet("PivotLine", OBJPROP_STYLE, STYLE_DASH);
}
return(0);
thank in advance...