• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 3:47am
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 3:47am
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Printable Version

Similar Threads

GET A Scalper EA 21 replies

The Scalper Setup 28 replies

Coral - 5 Pip Scalper 11 replies

$ 2.4 Billion Scalper System 13 replies

Need a good Metatrader broker for a scalper system 14 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 2
Attachments: For the scalper: 1-click-click ftw
Exit Attachments

For the scalper: 1-click-click ftw

  • Last Post
  •  
  • Page 1 2
  • Page 1 2
  •  
  • Post #1
  • Quote
  • First Post: Edited Oct 2, 2012 10:40am May 14, 2012 7:20am | Edited Oct 2, 2012 10:40am
  •  m.m.m.
  • | Commercial Member | Joined Aug 2010 | 269 Posts
disclaimer: any risk lies solely with the user



what is it? - an off of the chart 1-click trading tool (see pic), preferably for the M1, M5

how does it work? - you click the numbers, you get the results;

FYI: programmatically, I subclass the window where the EA is attached (install my own window procedure) to capture the (left) mouse button-click event; so, when a mouse-click occurs, the window procedure wakes up the ea using internal mt4 messaging (send a fake tick), passing along the mouse coordinates where the click occured; the controls are simple mt4 labels;
for those that do not trust others' dlls - I have included the very simple c++ code (visual studio 2010 solution), so you can compile it yourself :D

The ea does not enter an infinite loop so you can add whatever code you want in there to be processed alongside. Or, if you want to use your own controls, just use the dll and check for (left) mouse-button down.


OK, so as you can see (pic), you have to shift the chart so that the fat lady fits in.

Now on to the controls (as seen on the pic; left to right, top to bottom):

0 - reset size ("lots")

1 - add 1k units of ccy to size

10 - add 10k

100 - add 100k (aka 1 std lot)

- your total size is indicated rightmost

now on to the big numbers: last 2 significant digits of bid and ask, respectively (you click you sell / buy, respectively)

CL - close (orders) in loss (order profit + commission < 0)

CP - close in profit (order profit + commission >= 0)

CA - close all

following are working orders, color indicative of gain / loss (inclusive commission); format: "L" for long, "S" for short; size in thousands (100 meaning 100k); open price; profit/loss; you click the order, you close the order

following are stats: profit/loss for the day, over-all, and last not least, total equity

also indicated is the spread

initial deposit and lots should be entered in the input section of the ea (when starting)

Note: when running on multiple currency pairs at a time, equity status is updated asynchronously (as per tick per instance; however, it is always possible to manually synchronise with a mouse-click into the chart)

only tested with windows 7
works with ECN brokers (tested with Armada Markets)
only market orders supported

the mq4/ex4 file(s) go into the \expert folder; the dll file goes into \experts\libraries folder
Attached Image (click to enlarge)
Click to Enlarge

Name: Z.png
Size: 34 KB
Attached File
File Type: zip Z.zip   34 KB | 882 downloads | Uploaded Oct 2, 2012 10:39am
  • Post #2
  • Quote
  • Edited at 7:12am Jul 17, 2012 5:20am | Edited at 7:12am
  •  Ronald123
  • | Joined Jul 2012 | Status: Member | 161 Posts
Hi m.m.m. Great tool, was looking for something like this for a while now! Gonna try it straight away; could you tell me where to put the 'h-file'?
Would really be nice if you'd put in the option to set SL/TS/TP... Oh, one more thing: clicking on the 'Bid-price' seems to open a sell order, and vice verca...

Thanks for making stuff like this available for us.

greetings,
Ronald
95% of the people don't believe 100% they can win, that's why they lose
  • Post #3
  • Quote
  • Jul 17, 2012 9:25am Jul 17, 2012 9:25am
  •  m.m.m.
  • | Commercial Member | Joined Aug 2010 | 269 Posts
Hello,

in order to use the EA you really only need the Z.dll and Z.ex4 files;
the other files are just source code, for those that are interested in how it actually works; and also for those that want to alter/extend it.

At the moment I do not use the EA myself as I am with a non-MT4 broker; so, the maintainance of the application is not one of my priorities. I have done this application for the case that I switch to a MT4 broker, which may happen some time in the future.
Now, adding automatic/predefined SL/TP would be quite easy and would require only a change in the buy() and sell() functions within the Z.mq4 file.
However, a manual adjustment of SL/TP per trade would make it necessary to alter the graphical interface by adding buttons and funtions and I currently do not have the time/will to do that, and also I do not use such features in my personal trading, as I tutor all my trades from start to end, and this tool is intended for short-term trades.

Yes, a click onto the bid-price will sell and ask-price will buy, but this is pretty common order with using market orders. But one can re-wire these functions easily within the Z.mq4 file (lbuttondown function). After any change to the .mq4 file it has to be (re)compiled.

Another thing: this tool is intended (or tested) for ecn-type brokers (originally for LMAX).
  • Post #4
  • Quote
  • Jul 20, 2012 6:33pm Jul 20, 2012 6:33pm
  •  fxtr51
  • Joined Jan 2010 | Status: Member | 1,163 Posts
Hello m.m.m ,
in the meanwhile I found how to locate the rectangles.

Only problem now:
When I attach the EA to 2 or more pairs and remove the EA
on 1 pair, the Mt4-platform crashes as soon as
the other instances of the EA on the other pairs de-initialize.

Is there a way to allow for multiple instances ( EA attached to EURUSD, GBPUSD, GBPJPY etc. ) on 1 platform ?

I am asking because I altered the EA into a visual order management tool (drag and drop of lines ). For this purpose I need it on more than one pair.

Regards
  • Post #5
  • Quote
  • Jul 30, 2012 4:59pm Jul 30, 2012 4:59pm
  •  houstontx
  • | Joined Jul 2012 | Status: Member | 5 Posts
Hi, I like the concept of this!
I would like to run multiple instances of this on several open charts at the same time.

Example - Z on audusd, that only displays and interacts with the chart AUDUSD. it does not display any other orders from other charts.
and Z on usdchf running at the same time... etc...

What code would i change to make individual Z ex4 that ran independently of each other?

Hope this makes sense.
Thanks!
  • Post #6
  • Quote
  • Jul 30, 2012 6:28pm Jul 30, 2012 6:28pm
  •  fxtr51
  • Joined Jan 2010 | Status: Member | 1,163 Posts
Quoting houstontx
Disliked
Hi, I like the concept of this!
I would like to run multiple instances of this on several open charts at the same time.

Example - Z on audusd, that only displays and interacts with the chart AUDUSD. it does not display any other orders from other charts.
and Z on usdchf running at the same time... etc...

What code would i change to make individual Z ex4 that ran independently of each other?

Hope this makes sense.
Thanks!
Ignored
The way the dll is programmed, it is not "thread safe".
Which means: You cannot run more than 1 Z.EA on a Mt4 platform.
Otherwise Mt4 will crash.

The only way to run multiple instances, regardless on which pairs
( 4 EAs on AUDUSD on different timeframes, or 2 EAs on 2 different pairs or whatever ) is this:

Make a copy of Z.mq4 (outside of Mt4 ) and rename it to Z_1.mq4.
Do the same for the Z.dll ---> rename a copy to Z1.dll
Change the #import definition in the Z_1.mq4 to the new dll-name.
Then copy the modified Z_1.mq4 into the experts folder
and the renamed dll into the experts/libraries folder
and compile the EA.

This way you can create 10 or 20 different EAs.
Each has its own unique name and itīs own unique dll .
Z_1 EA has Z1.dll imported.
Z_2 EA has Z2.dll imported
Z_3 EA has Z3.dll imported
.... you get the idea

This way you can run 20 or 30 instances of the original EA
on whatever charts you wish to.
Only make sure you never use one of them twice, it would crash
your Mt4 sooner or later.
  • Post #7
  • Quote
  • Aug 1, 2012 7:51am Aug 1, 2012 7:51am
  •  houstontx
  • | Joined Jul 2012 | Status: Member | 5 Posts
Thanks!
That did the trick. I also added an IF statement with order symbol so that I now only see the single charts orders also.
  • Post #8
  • Quote
  • Aug 1, 2012 1:49pm Aug 1, 2012 1:49pm
  •  fxtr51
  • Joined Jan 2010 | Status: Member | 1,163 Posts
Quoting houstontx
Disliked
Thanks!
That did the trick. I also added an IF statement with order symbol so that I now only see the single charts orders also.
Ignored
Yes, that was the easiest way to accomplish what you needed.

I still hope that somebody will make the dll thread safe.
Then I could finish my Visual Order Management EA using the dll.
  • Post #9
  • Quote
  • Aug 1, 2012 2:01pm Aug 1, 2012 2:01pm
  •  houstontx
  • | Joined Jul 2012 | Status: Member | 5 Posts
Just FYI,
I did experience 3 weird order closers without any mouse clicks. I'm going to stop using it on my live account until I'm more confident in what it's doing.
  • Post #10
  • Quote
  • Aug 1, 2012 2:09pm Aug 1, 2012 2:09pm
  •  fxtr51
  • Joined Jan 2010 | Status: Member | 1,163 Posts
Quoting houstontx
Disliked
Just FYI,
I did experience 3 weird order closers without any mouse clicks. I'm going to stop using it on my live account until I'm more confident in what it's doing.
Ignored
Oh no. That isnīt good.
Have you tried my Stealth Trade Management EA ?
http://www.forexfactory.com/showthread.php?t=371147
Maybe it is usefull for you ?
  • Post #11
  • Quote
  • Aug 2, 2012 12:19pm Aug 2, 2012 12:19pm
  •  houstontx
  • | Joined Jul 2012 | Status: Member | 5 Posts
Quoting fxtr51
Disliked
Oh no. That isnīt good.
Have you tried my Stealth Trade Management EA ?
http://www.forexfactory.com/showthread.php?t=371147
Maybe it is useful for you ?
Ignored
Looks cool, I'll give it a go
  • Post #12
  • Quote
  • Sep 23, 2012 11:47am Sep 23, 2012 11:47am
  •  Black Fox
  • Joined Oct 2011 | Status: Trading... | 224 Posts
Quoting houstontx
Disliked
Just FYI,
I did experience 3 weird order closers without any mouse clicks. I'm going to stop using it on my live account until I'm more confident in what it's doing.
Ignored
Anyone else using this tool on live account?
m.m.m. please respond man. Is it safe?
:: everything is awesome ::
  • Post #13
  • Quote
  • Edited Sep 24, 2012 3:21am Sep 23, 2012 1:29pm | Edited Sep 24, 2012 3:21am
  •  m.m.m.
  • | Commercial Member | Joined Aug 2010 | 269 Posts
It's safe as long as you run only one instance.

In any case first try in demo and, if you are confident with it, run it live; but remember: if it works in demo it will work in live mode if you do exactly the same thing
  • Post #14
  • Quote
  • Sep 23, 2012 3:26pm Sep 23, 2012 3:26pm
  •  Black Fox
  • Joined Oct 2011 | Status: Trading... | 224 Posts
OK, thanks. I'm going to test it and I'll be back right here in few weeks with my observations.
:: everything is awesome ::
  • Post #15
  • Quote
  • Sep 24, 2012 7:16am Sep 24, 2012 7:16am
  •  houstontx
  • | Joined Jul 2012 | Status: Member | 5 Posts
I use it all the time. you need to be careful on where you click the mouse after you have an open position. If you click on the price scale where the position is listed, it will close.
  • Post #16
  • Quote
  • Sep 24, 2012 7:46am Sep 24, 2012 7:46am
  •  Black Fox
  • Joined Oct 2011 | Status: Trading... | 224 Posts
Quoting houstontx
Disliked
I use it all the time. you need to be careful on where you click the mouse after you have an open position. If you click on the price scale where the position is listed, it will close.
Ignored
Putting mt4-thread safety aside, my only concern would be not to open an order accidentaly.
:: everything is awesome ::
  • Post #17
  • Quote
  • Sep 24, 2012 9:03am Sep 24, 2012 9:03am
  •  m.m.m.
  • | Commercial Member | Joined Aug 2010 | 269 Posts
Quoting houstontx
Disliked
you need to be careful on where you click the mouse after you have an open position. If you click on the price scale where the position is listed, it will close.
Ignored
sorry for that; however, this is a minor issue and can be resolved as follows:
open the EA in the metaeditor and replace line 90, where it says:
Inserted Code
if (mx >= cx - 128)
with:
Inserted Code
if (mx >= cx - 128 && mx <= cx)
recompile. done.
  • Post #18
  • Quote
  • Sep 24, 2012 9:12am Sep 24, 2012 9:12am
  •  m.m.m.
  • | Commercial Member | Joined Aug 2010 | 269 Posts
Quoting Black Fox
Disliked
Putting mt4-thread safety aside, my only concern would be not to open an order accidentaly.
Ignored
Should not happen, if only one EA uses the DLL at a time.

And I will upload a new version that will work with multiple instances, soon.
  • Post #19
  • Quote
  • Sep 24, 2012 5:25pm Sep 24, 2012 5:25pm
  •  m.m.m.
  • | Commercial Member | Joined Aug 2010 | 269 Posts
OK, so a new version is up; it supports multiple currency pairs now.

First test on demo!
  • Post #20
  • Quote
  • Oct 2, 2012 10:41am Oct 2, 2012 10:41am
  •  m.m.m.
  • | Commercial Member | Joined Aug 2010 | 269 Posts
Attention: Important update has been released!
  • Platform Tech
  • /
  • For the scalper: 1-click-click ftw
  • Reply to Thread
    • Page 1 2
    • Page 1 2
0 traders viewing now
  • More
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2021