Download MetaTrader 5
To add comments, please log in or register
Interested in social trading? Read the article!
steve21
33
steve21 2014.03.18 15:50 
Hello,
can anyone help me to change the position where the window be show after start, please.

I want it at the right corner
Horizontal 3390 Pixels from left

Vertical 140 Pixels from top

#property copyright "Copyright © 2011, sangmane."
#property link "[email="sangmane@forexfactory.com"]sangmane@forexfactory.com[/email]"
 
#import "EasyOrder.dll"
int EasyOrder(int hwnd);
 
int start()
{
string obj;
int i;
 
int hwnd = WindowHandle(Symbol(),0);
if(hwnd==0) {
return(0);
}
int ret = EasyOrder(hwnd);
if(ret<0) {
Alert("Dll function failed!");
return(0);
}
if(ret==1) {
ModifyOrder();
} else {
for(i=ObjectsTotal()-1; i>=0; i--) {
obj = ObjectName(i);
if(StringFind(obj,"EASYORDER",0)>=0) ObjectDelete(obj);
}
}
InitLines();
return (0);
}

        
/
To add comments, please log in or register