//--- 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;
}
//--- 화살표 사용
//--- . . .
}
|