//--- 例程 CChartObjectArrow::Create
#include <ChartObjects\ChartObjectsArrows.mqh>
//---
void OnStart()
{
CChartObjectArrow arrow;
//--- 设置对象参数
double price=SymbolInfoDouble(Symbol(),SYMBOL_BID);
if(!arrow.Create(0,"Arrow",0,TimeCurrent(),price,181))
{
//--- 箭头创建错误
printf("箭头创建: 错误 %d!",GetLastError());
//---
return;
}
//--- 使用箭头
//--- . . .
}
|