| / | Forum |
|
samangp4
2007.06.25 10:29
How can i close any order without this Dialog windows I Wanna close position by code without any Human Plz Help me
With out this Window... |
|
Automated Trading Championship 2006 Has Begun Both Participants and ourselves worked hard during these two months. Since now, nothing will depend on us or on expert developers, everything will be done automatically. We have just to watch the development of the Championship. |
33780 |
Rosh
2007.06.25 11:49
|
|
samangp4
2007.06.25 12:14
When Expert Run & Execute this code: Example: OrderClose(3432945,0.10,1.3445,1,CLR_NONE); this Form Show Again & Need 1 person to close order How can i click close button of this form by code?!
I Wanna click close button by code at current point. |
33780 |
Rosh
2007.06.25 12:17
No. It's impossible. You need use dll in this matter.
|
|
fireflies
2007.06.25 12:26
Is it probably because in Tools > Options > Expert Advisors you have selected
"Allow live trading" AND "Ask manual confirmation" ?
|
33780 |
Rosh
2007.06.25 12:32
fireflies wrote:
Is it probably because in Tools > Options > Expert Advisors you have selected "Allow live trading" AND "Ask manual confirmation" ? Yes. Uncheck this option and confirmation won't appear. |
|
samangp4
2007.06.25 12:32
can u give me an Api Function to do this? Or Dll name in system 32 do u know Name of this button?? btnClose Or.... :) |
|
samangp4
2007.06.25 12:34
it doesn't work its impossible |
5089 |
stringo
2007.06.25 15:27
samangp4 wrote: How can i close any order without this Dialog windows I Wanna close position by code without any Human Plz Help me With out this Window... Disable "Ask manual confirmation" in the expert properties |
|
xnasir
2007.06.26 01:44
1. MAKE A NEW SCRIPT AND ADD THE FOLLOWING CODE TO IT 2. SELECT THE CURRENTLY OPENED POSITION AND DOUBLE CLICK THE ABOVE SAVED SCRIPT, WHICH WILL APPEAR IN THE NAVIGATOR WINDOW (VIEW > NAVIGATOR) 3. THE SCRIPT WILL CONFIRM IF YOU REALLY WISH TO CLOSE THE SELECTED POSITION. //+------------------------------------------------------------------+ //+------------------------------------------------------------------+ |
|
samangp4
2007.06.26 23:41
by this code u can click any Button in any location by SetCursorPosition
|