MQL4参考 图表操作 WindowXOnDropped

WindowXOnDropped

Returns the value at X axis in pixels for the chart window client area point at which the Expert Advisor or script was dropped.

int  WindowXOnDropped();

Parameters

None.

Returned value

The value at X axis in pixels for the chart window client area point at which the expert or script was dropped. The value will be true only if the expert or script were moved with the mouse ("Drag'n'Drop") technique.

Example:

  Print("Expert dropped at point x=",WindowXOnDropped()," y=",WindowYOnDropped());

See also

WindowYOnDropped(), WindowTimeOnDropped(), WindowOnDropped()