Run script through Expert Advisor - page 8

 
Dadas:

Where is your attachment?

Hi Dadas,

LOL - my apology.

The attachment here is just an example https://www.mql5.com/en/forum/139008/page2#622693

-->> 1100 <<--

 
onewithzachy:

Hi Dadas,

LOL - my apology.

The attachment here is just an example https://www.mql5.com/en/forum/139008/page2#622693

Thanks onewithzachy!

Could I ask you a favor?

I do not intend to sell anything! I do not believe those guys who say they are successful at trading and they want to sell some EA.

That is why I am creating my own EA, for me. If someone is successful at trading, he does not have to sell anything!

I want to put 3 buttons or they could be object (like a webding of some size) and I want them to execute onclick a keyboard event:

void AutoCloseAll() {
   keybd_event(18, 0, 0, 0); // ALT down
   keybd_event(65, 0, 0, 0); // A down
   keybd_event(65, 0, 2, 0); // A up
   keybd_event(18, 0, 2, 0); // ALT up
}

I can adjust my own keyboard event to the script HOTKEY that I want.

I will adjust the OBJPROP_XDISTANCE and OBJPROP_YDISTANCE so they appear where I want them.

Could you simplify the code for me?

This is how my EA looks on the chart - just needs the 3 buttons at the bottom.

 
Dadas:


Could I ask you a favor?

Could you simplify the code for me?

Hi Dadas,

Maybe later, I have to see if I have time coz that's a lot of codes, I 'm half finish my button click and haven't continue since ho ho. :(

And please stay on topic, like discuss this click over there than over here, so other forumer may not confuse with un-related comment.


 
onewithzachy:

And please stay on topic, like discuss this click over there than over here, so other forumer may not confuse with un-related comment.



I am sorry if I did smth wrong, but my other comment, I think, was not about this topic, but about ticking a chart.

Unless you mean that question I made to one called smoknfx ...

But that was smth else - you may delete if you think it is not in the right place.

 
Dadas:


I am sorry if I did smth wrong, but my other comment, I think, was not about this topic, but about ticking a chart.

Unless you mean that question I made to one called smoknfx ...

But that was smth else - you may delete if you think it is not in the right place.

Hi Dadas,

You did nothing wrong, sometime discussion went wide and expand which normal thing in any discussion. This thread/topic is about "Run Script through EA" which I think it's a little off if we start talking about "mouse click objects".

 
onewithzachy:

Hi Dadas,

You did nothing wrong, sometime discussion went wide and expand which normal thing in any discussion. This thread/topic is about "Run Script through EA" which I think it's a little off if we start talking about "mouse click objects".


Hi Guys,

First of all, it is not offtopic, because I want to run a Script through EA with the means of "mouse click objects".

It is just expanding the topic further.

Second, I had a thought. When we open EA on chart we get the "X" or "FrownFace" or "SmileyFace" after the EA name.

These objects are clickable. Therefore, the code for this is already in the MT4.

Has not anybody "extracted" this code?

Third, my broker supplies his MT4 with a script called OneClickTrading which looks like this:

The only things are, that I was googling, and this is a tool for brokers, and there is no source code anywhere.

In the scripts folder there is only OneClickTrading.ex4 (attached).

I have been trying to find a free decompiler, but could not.

Help appreciated - maybe you Guys can do smth with this file?

BTW - the OneClickTrading script comes free.

 
OneClickTrading.ex4 requires mt4dll.dll to work
 
Ickyrus:
OneClickTrading.ex4 requires mt4dll.dll to work


Yes, it is there, mt4dll.dll in the libraries folder.

The OneClickTrading script works fine, and it is a temporary solution for me, but I want just 3 buttons to call 3 keyboard events.

I also found this thread: https://www.mql5.com/en/forum/133343/page4

Anyone can instruct me how to use that?

 
Dadas:


Yes, it is there, mt4dll.dll in the libraries folder.

The OneClickTrading script works fine, and it is a temporary solution for me, but I want just 3 buttons to call 3 keyboard events.

I also found this thread: https://www.mql5.com/en/forum/133343/page4

Anyone can instruct me how to use that?


Just found the instructions here: https://www.mql5.com/go?link=https://www.fx1.net/wiki/pmwiki.php/MT4GUI/MT4GUI
 
Dadas:


Hi Guys,

First of all, it is not offtopic, because I want to run a Script through EA with the means of "mouse click objects".

It is just expanding the topic further.

Second, I had a thought. When we open EA on chart we get the "X" or "FrownFace" or "SmileyFace" after the EA name.

These objects are clickable. Therefore, the code for this is already in the MT4.

Has not anybody "extracted" this code?

Third, my broker supplies his MT4 with a script called OneClickTrading which looks like this:

The only things are, that I was googling, and this is a tool for brokers, and there is no source code anywhere.

In the scripts folder there is only OneClickTrading.ex4 (attached).

I have been trying to find a free decompiler, but could not.

Help appreciated - maybe you Guys can do smth with this file?

BTW - the OneClickTrading script comes free.

Hi Dadas,

1. Try the best you can the EA smiley is not clickable.

2. Don't post de-compiled code. Compiled codes are copyrighted material belong to its owner. By de-compiling it, you are violating the owner copyright. mql4-mql5 .com belong to MetaQuotes (MQ), and MQ does not support copyright violation.

3. The ho ho I create there already has buttons, however, if what you looking for is some object graphic design here's an example https://www.mql5.com/en/code/9752 and https://www.mql5.com/en/code/9175 but they are not clickable.

4. Here's another idea without clicking, https://www.mql5.com/en/articles/1378 scroll down and download and try the EA.

Reason: