Download MetaTrader 5

Position of EA on chart

To add comments, please log in or register
FXTrader_X
84
FXTrader_X  

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!

balazs321
169
balazs321  

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.

FXTrader_X
84
FXTrader_X  

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!

To add comments, please log in or register