- #property indicator_chart_window
- extern bool Fibo = True;
- extern color clrs = White;
- extern int Label_Size=30;
-
- int init()
- {
- return(0);
- }
- int deinit()
- {
- ObjectDelete("黄金点");
-
- return(0);
-
- int start()
- {
- Fibo = (High[1]-Low[1])*0.618 + Low[1];
- if (Fibo == True)
- {
- if (Close[0] > Fibo) clrs = DarkGreen;
- if (Close[0] < Fibo) clrs = Red;
- }
-
- string Market_Price = DoubleToStr(Fibo, Digits);
-
- ObjectCreate("黄金点", OBJ_LABEL, 0, 0, 0);
- ObjectSetText("黄金点", Market_Price, Label_Size, "Comic Sans MS", clrs);
-
- }
复制代码
请达人给看看,在MQ4里运行提示0错误、0警告,为什么还无法正常显示??
哪里写的不对,请指教 |