下载MetaTrader 5

这样的图怎么画,完全没有思路

要添加评论,请登录注册
tuyang
18
tuyang  
从'您看到这样的图像了吗?'


实在想不出他综合那些元素画出来的,高人,出来说一说!
okwh
1633
okwh  

ObjectCreate(...........)

tuyang
18
tuyang  

我唯一能明白的是图形上的文字,它也许是Label Object,但是柱状图是啥?如果是矩形的话,它就会随着数据的变化位置而发生变化。难道这个指标整体的位置不是固定的?

Rashid Umarov
管理员
11993
Rashid Umarov  
Yes, these objects are the Label objects with Wingding font (I think). See Wingdings
tuyang
18
tuyang  
Hi, Rosh,

Wingdings is ArrowObject, but it is still based on price, not based on absolute screen pixel (Label Object is based on pixel).

I get that image from your post, can you share the code?

Thanks a lot.
Rashid Umarov
管理员
11993
Rashid Umarov  
I have not the source code of posted picture, a only copy&pasted it.

Use this example:
      {
      ObjectCreate("Test",OBJ_LABEL,0,0,0);
      ObjectSet("Test",OBJPROP_COLOR,White);
      ObjectSet("Test",OBJPROP_CORNER,0);
      ObjectSet("Test",OBJPROP_XDISTANCE,30);
      ObjectSet("Test",OBJPROP_YDISTANCE,30);
      ObjectSetText("Test", "Month", 10, "Wingdings", Red) ;
      }
liuxiaodong
282
liuxiaodong  
这个指标我有 !改天给你贴上来。
要添加评论,请登录注册