Position of EA on chart

 

Hi,

I would appreciate some help on the two issues described below.

If a user drags and drops an EA to the chart, is there any way of finding out the exact time/price where the user has dropped/released the EA?

Another question: can an EA make some kind of call to the user interface of metatrader to open the new order menu or modify order menu of an existing order.

Thank you!

 
Regarding the first question:
int first=1;
void OnTick() {
	if(first == 1) {
		//do something
		first=0; 
	} 
}

Or do you mean the X, Y positions of the chart?

Second question: I think it is not possible to control the gui through MQL5. But you can display your own order box on the chart.

 

Hi,

thanks for the suggestion.

yes, I meant the positions on the chart; I already found out that the priceondropped and timeondropped functions calculate this.

I think calling the gui can be done through the windows api but I don't know how. I'm trying to open the order modify window for an order that is managed by the EA.

Suggestions are welcome.

Thank you!