Download MetaTrader 5

EA property in chart can not be changed

To add comments, please log in or register
Order the development and track its status via your mobile phone.
Repions
100
Repions 2013.11.14 04:24 

In chart, I Can`t change EA property, after i use simulate tick every 1 second in Start()

How to solve this.....help me Please...!

int start(){
if(!IsTesting() || !IsStopped()) {
   int hwnd=WindowHandle(Symbol(), Period());
   int msg = RegisterWindowMessageA("MetaTrader4_Internal_Message");
         while(!IsStopped()){
            main() ;
            PostMessageA(hwnd, msg, 2, 1);  //  fake ticks
            Sleep(1000);
         }
   }  else main();
   return(0);
}

Ubzen
5394
Ubzen 2013.11.14 06:32  
When using endless loop, change your extern variables to GlobalVariableSet() variables. Then use F3 like its the EA properties page.
Repions
100
Repions 2013.11.14 07:04  
ubzen:
When using endless loop, change your extern variables to GlobalVariableSet() variables. Then use F3 like its the EA properties page.

Sory...i can`t catch your mean... more spesific please...

even F7 not respon

i need all property windows shows like usual not individual Var

Ex Ovo Omnia
3156
Ex Ovo Omnia 2013.11.14 08:03  
I would suggest to post the message using a script, rather than EA. You can easily remove the script and your EA remains untouched.
Ubzen
5394
Ubzen 2013.11.14 08:40  
Repions:

Sory...i can`t catch your mean... more spesific please...

even F7 not respon

i need all property windows shows like usual not individual Var

Here's an example https://www.mql5.com/en/forum/146936/page2#843366. If you want property window then do-not use endless loop.

***Added: looks like in your case you're just looking to generate fake_ticks. So like the other Ovo suggested, try making that into a Script. That way, you'll have a Script generating the Fake_Ticks and Hopefully your Expert_Advisor would become free to use the Properties Window again.

Repions
100
Repions 2013.11.14 10:21  
Ovo:
I would suggest to post the message using a script, rather than EA. You can easily remove the script and your EA remains untouched.

yeah..I've used it before.. i try to include in EA...hope be more compact..

ovo & ubzen Thank all of your concern...

To add comments, please log in or register