PDA

View Full Version : Wanted gap trading EA



limoymen
09-20-2008 14:26, 02:26 PM
HI,

I need something easy but specific as I really do have the knowledge to do so:

I would like a specialist or an indior that does this:
I would like mt4 to create for me an excel file where I'll loe:
all of the openings (just friday-sundays)
price closed on friday
price open on sunday
if the gap opened up I would like the highest price prior to the price went back into the near on friday and the opposite if the it gapped down
the number of hours it took for the gap to close and when did it shut.

I will provide you an illuion:
inside this file
https://www.nigeriaforextrading.com/attachments/15190327961328191531.png

I will need those values:


september 12 2008 closed at 1.4215
september 15 available at 1.4341
large (before the gap closed) 1.4481 on september 15th at 6:23AM GST
gap closed september 15th at 1h29 PM GST

for those who have a query pleas fell free to reply.
Thank you

alaine16
08-09-2023 18:08, 06:08 PM
There aren't any openings or only a couple of pips. Use oanda the gaps will be filled by them

GUMAN
08-09-2023 19:29, 07:29 PM
You may be interested in reading this: https://www.nigeriaforextrading.com/trading-system-and-egies/99-steve-trading-journal.html

Also resizing your chart would be quite softly.

layaa
08-09-2023 20:50, 08:50 PM
Hi,
This sounds like a missing thread, but I'll give it a try anyhow.

I'm looking for an EA that will allow me to input various parametersSL, TP, TS etc.) and rear test them. There was an EA put out from KirkaFund however I couldn't get it to work and neither could most other folks (just another dead thread!)

Failing this, is there a bit of SW that will allow me to construct my own egy and rear test it?

Many thanks,



Mike

I wonder why the odd 20% of the time the Sunday gap belongs from the wrong direction? Hmmmmm.... Are the Big Boys simply playing with us?

GUMAN
08-09-2023 22:10, 10:10 PM
Discovered that you from the plank.

It is ex4 and I don't have any idea how it works but only check it outside
https://www.nigeriaforextrading.com/attachments/1519032799103623073.ex4

layaa
08-09-2023 23:31, 11:31 PM
Discovered that you here from the board.

It's ex4 and I don't have any clue how it works but only try it outside
Hi Cobra,

Ahh, there is still some life from the beast! :--RRB- I thought this thread was because of the knackers yard!

I too discovered that EA and attempted it, but it never did anything; kept telling me the gap was too small. Maybe there should have been something else with it, like an indior or some thing? Sundays, can it recognise? Does it get the time from the chart?

Tried analyzing it - no outcomes. I hope the author would drop by the forum.

Do you gap trade Sunday/Monday?

I did use another EA I discovered (possibly here) called Gap Trader from Goshur, and that seemed to work except it ignores my input of 0.1 lots and does it's own thing with 0.36 lots LOL! That EA test gave me8K profit in 10 months, but I might be overoptimising it. I'm only starting out with optimisation and do not really understand it entirely.

Cheers,

Mike

layaa
08-10-2023 00:52, 12:52 AM
HI Frenchtrader,

If you want to compare gap trading ideas, then please respond or PM me.


Cheers,


Mike

GUMAN
08-10-2023 02:13, 02:13 AM
Yes Mike I trade openings but manually, I am from the generation that still makes musik using a guitar in the hands.

If you like you may email me and I've someone of my coder Team to look at it doesn't accept your order.

Together with the one I submitted we can not function as it is ex4.


Hi Cobra,

Ahh, There's still some life in the monster! :--RRB- I thought this thread was due for the knackers yard!

I also discovered that EA and attempted it, but it never did anything; kept telling me that the difference was too small. There ought to have been something else with it, like an indior or something? Sundays how can it recognise? Does this get the time from the chart?

Tried analyzing it - no outcomes. I hoped the author would fall by the forum.

Do you gap commerce Sunday/Monday?

I did use a second EA I discovered (possibly here) called Gap Trader...

Bepk3
08-10-2023 03:33, 03:33 AM
Try this one. . .it is coded by FOREXflash.
https://www.nigeriaforextrading.com/trading-system-and-egies/107-gerryvs-laguerre-journal.html

layaa
08-10-2023 04:54, 04:54 AM
Yes Mike I exchange gaps but manually, I'm from the generation that makes musik using a guitar in the palms.

If you prefer you may email me and I've someone of my coder Team to look at it why it will not accept your order.

Together with the one I submitted we can not work as it's ex4. Hi Cobra,
I mean to just trade manually too, simply use the EA for optimising SL, TP, TS etc.. A system I tried on a week Sunday open and the week earlier, using GBPUSD EURUSD, was to exchange in reverse direction to gap, in the open of first pub of the week, using SL 100 TP 40. Resulted in 2 wins in fourteen days. Checking back for 11 weeks, revealed that GU EU'd -400 pips drawdown using 800 pip wins, net result 400 pips that, @ 1 lot $4000 and @ 2 lots = $8000 etc., etc.. That would pay my weekly shopping bill!

Because I did these tests, I wondered how I could eliminate those nasty 100 pip drawdowns and I found that of the drawdowns went against the trend (indeed, all the wins almost always went together with the trend - that wins that went against the trend only had a 50-80 pip retracement, resulting in TP, before continuing on the trend), which brings us back to 'how can one predict the trend?' ! Hmmmm....

Anyhow, just for today, I want to find an EA that is going to do the following:-

1) discover close of last bar of Friday commerce

two) detect direction of gap (occasionally 0.1 pips - 60 pips) when Sunday evening commerce starts again. This may not be possible on egy testing. Perhaps the EA could have an integrated calendar to synchronise with test dates?

3) place a trade in reverse direction to gap direction i.e. if gaps up, place SELL commerce vice versa.

4) should be able to utilize MT4 egy tester and discover every Friday/Sunday gap for the time frame chosen, in which ever timeframe I select (analysing visual results isn't possible on just a daily chart as it often does not reveal whether it strike the TP before or after SL.)

5) factor SL, TP, TS, - all values in pips.

You can build a non-trading feature to it (won't exchange current day) as it's just necessary for optimisation.

I have attached two EAs for you to look at.


BTW, I'd want to know how you exchange the Friday-Sunday gap?

Many thanks for your kind offer to try and assist me with my issue.


Regards,


Mike

PS Back testing GBPUSD and only trading with the trend, let me easily increase the TP out of 40 to 100. The only times I dropped was when I wrongly identified the trend! Today, all we need is an EA to spot the trend and we're filthy rich LOL !! If you snap your fingers, I'll wake up....
https://www.nigeriaforextrading.com/attachments/15190328041244418953.zip
https://www.nigeriaforextrading.com/attachments/15190328061798835983.zip

GUMAN
08-10-2023 06:15, 06:15 AM
I am still a babycoder.

Still learning and now comes MT5 in addition to all.

When there is a small mod to create I could ask my coder friends but a new proyect is overly much as we all are very busy at the moment.

Anyhow I am interested to see how the ones you posted play, also thanks for the hint to Parazite.

I just trade the difference to fill, nothing else, than other approaches come in play.


Hi Cobra,
I intend to just trade manually too, just use the EA for optimising SL, TP, TS etc. ....

layaa
08-10-2023 07:36, 07:36 AM
I am still a babycoder, lol.

Still learning and today comes MT5 in addition to all.

When there is a little mod to create I can ask my coder friends but a new proyect is overly much as all of us are very busy at the moment.

Anyhow I am curious to learn how the ones that you posted play, also thanks for the sign to Parazite.

I only trade the difference to fill, nothing else, compared to other approaches come in play. Really, when I think of this, if I trade in the direction of this trend, no matter of what the difference does, then I am not really taking any benefit of the weekend difference; I might equally well choose to follow the tendency from the start of Tuesday's daily candle!

I've proved to myself that the difference direction is largely irrelevant to which direction the trade will go; it consistently follows the tendency!

So, it seems I've got two options:-
1. Trade mechanically in the contrary direction of this gap, using SL=100/TP=40, expect in the numbers and make money by trading more than two lots, or

2. Place trades only in the direction of this trend, utilize bigger TP=100-200 and make money by being right most of the time, utilizing mini-lots.

Hmmmm... let me think!

Regards,


Mike

PS. Regarding coding an EA I understand - it has to take a while. Thank you for the deal.

GUMAN
08-10-2023 08:56, 08:56 AM
Should you trade contrary to the open gap and not from the path to fill it you will have 85% chance to be wrong, at least until it gets stuffed.

layaa
08-10-2023 10:17, 10:17 AM
should you trade contrary to the open gap and not in the path to fill it you will have 85% chance to be wrong, at least till it gets filled. Hi Cobra,
What do you mean by against the open difference? Do you really mean in the contrary direction to the difference management?


Mike

GUMAN
08-10-2023 11:38, 11:38 AM
Well, when we are talking about gap trading we discuss the close of the gap.

There are some smart heads that made a statistic that says that 85% of weekend gaps get filled earlier or later.

Now I hear already from all sides that gaps don't exist in FX and that's right for banks but our lazy retailbrokers compel us to have BBQs and some Scotch and/or Guinness in the weekend and don't enable us to trade.

I just picked one that was really broad but it's to explain how this works.

You see the blue line that marks friday close along with a massive gap to our platform open on sunday.

To exchange the gap you would really like to exchange in the direction of the red arrow because you expect that in any given time this gap will get filled and it had been the case.

Is that clear?
https://www.nigeriaforextrading.com/attachments/1519032807536276096.jpg

layaa
08-10-2023 12:59, 12:59 PM
Hi Cobra,

I would be grateful of your findings, even if you've got a spare minute, on which trade (in the oppposite direction to the gap direction, with SL=100, TP=40) or at the direction of the price trend, irrespective of the gap direction, (SL=100, TP=100) makes most cash from the connected GBPUSD chart.

I wrote down 11 weeks transactions GBPUSD, using the mechanical method of trading in the opposite way to gap direction, with SL=100, TP=40 and had just one drawdown of -100 pips, that is a 90% success.

This success rate might not apply to pairs because each has it's own daily rate of motion, so SL TP may need to be altered so. Surely, over the exact same period EURUSD had three -100 losses and USDCAD has -700 pip drawdown, so this mechanical method isn't usable across all currencies with only one SL TP level. In the event of the declines across e.g. 10 pairs lineup at the exact same time, it's yelling gnashing of teeth time!

I did note the GBPUSD trade that dropped went against the tendency on 17th Aug.. Gap was down (the transaction would have been BUY) but was the fad and the two went in opposite directions! If you set up a daily chart, using vertical lines on a number of Sunday opens, and utilize it on 10 distinct pairs, you will probably observe that the losing transactions almost always went against the tendency, which I guess figures...

I've marked the Sunday opens with vertical red lines (the Friday bars are those to the left). My broker is Alpair UK who's GMT 1.

The Daily bars often don't reveal if price strike SL or TP first, which explains why I want the EA to work on any timeframe.

I will continue to look at how the mechanical system may be used on other pairs, but maybe not havng an EA to get testing means it's a SLOW task...

that I hope that you find this information useful and if you have some suggestions for improvement, they would be most welcome.

regards,


Mike
https://www.nigeriaforextrading.com/attachments/1519032809119657998.jpg

layaa
08-10-2023 14:20, 02:20 PM
Here's another chart pic with difference instructions marked with yellow arrows along with the 17th Aug trade indied with yellowish X

Hope they're better compared to the preceding one.


Mike

Noticed some arrows have been 'missing', as has the yellowish X, but I trust you can make sense of what remains. It appears that basically, if the gap is below the 10SMA SELL, also if above BUY and if it is at the bottom /top of a curve, then the Stochastic can function as tie-breaker. However, why wait until Sunday to set trades if gap direction isn't significant?
https://www.nigeriaforextrading.com/attachments/15190328111944004740.jpg

layaa
08-10-2023 15:40, 03:40 PM
Well, if we are talking about gap trading we discuss the finish of the gap.

There are some clever minds which made a statistic that says that 85 percent of most weekend openings get filled earlier or later.

Now I hear from all sides that gaps don't exist in FX and that is ideal for banks but our lazy retailbrokers force us to have BBQs and some Scotch and/or Guinness in the weekend and don't allow us to trade.

I simply picked one that was really broad but it's to explain how this works.

You see the blue line which marks friday near and a.. . Hi Cobra,
Yes, quite clear, thanks. Howevev, because film, if you were to exchange the trend rather than the gap you may create more profit, and earlier. Am I correct? How many pips over the gap and how many pips below?

Just think, while bankers sweat over the weekend, it enables us as you rightly see, to indulge in the finer points of existence. I'll bet they take their Blackberrys to the toilet also!! Me? Only 'Private Eye'!

Cheers,

Mike

GUMAN
08-10-2023 17:01, 05:01 PM
Sure Mike, you have all the motives but than that I wouldn't call it Gap trading, let us call it Blue Monday trading roughly.

Enormous gaps are largely formed by weekend events like meetings etc and will give the market good reasons to react further on it throughout the first days of this week.


Hi Cobra,
Yes, quite clear, thanks. Howevev, because film, if you should exchange the trend instead of the gap you will create more profit, and sooner. Am I correct? How many pips above the gap and how many pips below?

Just think, while bankers perspiration over the weekend, so it enables us, as you rightly see, to indulge in the finer things of life. I will bet they even take their Blackberrys into the toilet too!! Me? Only 'Private Eye'!

Cheers,

Mike

layaa
08-10-2023 18:22, 06:22 PM
Sure Mike, you have all of the reasons but than I wouldn't call it Gap trading, let us call it Blue Monday trading roughly.

Big gaps are largely shaped by weekend events such as meetings etc and can give the market great reasons to respond further on it throughout the very first days of this week. Hi Cobra,
You are right, what I am doing should not really be called Gap Trading; I am not looking merely to fill the gap, I am looking to go beyond it. It's my version of difference trading!

I will keep you edued how I am doing.

Enjoy a Fantastic weekend,

Cheers,

Mike

layaa
08-10-2023 19:43, 07:43 PM
Hi Cobrafox,

2 trades on 02/11 total 80 pips

Two trades 9/11 total -200 pips (such as an idiot I dropped my lots. DOH!)

Two trades 16/11 total 80 pips.

Both trades GBUSD EURUSD.

I believe USDCHF is a much better fit for this egy than EURUSD.

Cheers,

Mike

Anpkniomopemooxmlinwz
08-10-2023 21:03, 09:03 PM
Hello Cobrafox,

Two trades on 02/11 total 80 pips

Two trades 9/11 total -200 pips (like an idiot I doubled my lots. DOH!)

Two trades 16/11 total 80 pips.

Both trades GBUSD EURUSD.

I think USDCHF is a better match for this egy than EURUSD.

Cheers,

Mike Mike,

I have been studying and trading the gaps much like you've described. Curious if you've kept at it and what the results have been. Thanks Beforehand. - Brian

layaa
08-10-2023 22:24, 10:24 PM
Mike,

I have been studying and trading the gaps much like you've described. Curious what the results have been and if you've kept at it. Thanks in advance. - Brian Hi Brian,
I only dabbled at Gap trading some time back, nothing severe.

I have moved on to using trend lines and SR.. Consider stretching some trend lines (both flat and sloping) by a few days/week ago forward, and see where they touch future price reversals. They're the very best way to predict price changes!


Cheers,


Mike

oleabc
08-10-2023 23:45, 11:45 PM
Hi Cobra, I'd be grateful of your findings, if you have a spare minute, on which trade (from the oppposite direction to the gap direction, with SL=100, TP=40) or at the direction of the price trend, irrespective of the gap direction, (SL=100, TP=100) makes most money from the attached GBPUSD chart. I manually wrote down 11 weeks trades GBPUSD, using the mechanical method of trading in the contrary direction to gap direction, with SL=100, TP=40 and had just one drawdown of -100 pips, which is a 90% achievement. This success rate might not apply to all pairs... Hello Mike, can you tell me what was your experience with gap trading following this years?
Thank you.
Alin