Jump to content

DCT Gap EA


ntynamoo

Recommended Posts

GAP means Weekend GAP Friday/Saturday Closing Price <> Sunday/Monday opening Price

 

If the open price is higher than the closing price it will open a sell trade, if lower a buy trade. Following a simple market rule.

 

Trades on the first tick coming in on the opening when there is a price gap in the range set. You need to test this on your Broker e.g. Alpari opens later (1 hour if I recall it well) and closes as well later then others e.g. FXCM.

 

Attach to one chart only and set the pairs to trade in the EA settings, timeframe does not really matter as I recall (I use 15m EURUSD). EURUSD since it has lots of ticks...

 

Cheers

Edited by expat1967
Link to comment
Share on other sites

I like the way this EA lets you choose the size of the gap to open on, but I think something is messed up with the TP. It seems to only use the trailing stop (??). Ideally it would exit a trade on closing the gap. For example, the UC closed a 20 pip gap about half an hour ago, but the EA left the trade open, presumably until it hits the TS at 5 pips.

This would probably explain the very lacklustre backtest results.

Link to comment
Share on other sites

I tested this expert Monday (13 December ) , this expert get Only 2 position

1- Eur/USD

2- EUR/JPY

sl = 50

 

EUR/JPY close in 142 $ profit ( 1 lot - 14.2 pip )

1- but EU not close and now in 200- loss !

2- why EU open and not close ?

3- and why open only 2 pairs ?

 

 

and please send best setting and manual .... thanks

Edited by ho3ain190
Link to comment
Share on other sites

I tested this expert Monday (13 December ) , this expert get Only 2 position

1- Eur/USD

2- EUR/JPY

sl = 50

 

EUR/JPY close in 142 $ profit ( 1 lot - 14.2 pip )

1- but EU not close and now in 200- loss !

2- why EU open and not close ?

3- and why open only 2 pairs ?

 

 

and please send best setting and manual .... thanks

 

Same result on EY as you, which was nice.

UC opened too but didn't close upon closing the gap and is now still open. If it was live I would have closed it manually by now.

EU opened too, but closed at BE after about 30 mins unfortunately. Your EU position should be in nice profit now (did it close when it hit the gap?)

Link to comment
Share on other sites

EU close with 0 pips ( 0 profit )

I have question ? why not open position in others pairs ( like USD/JPY and GBP .... ) ?

whether I must open all 13 chart and attack a expert to all pairs ? or only one chart ?

 

I have the same results today. Last week DCT has opened more positions.

What broker are u using? My broker is Alpari NZ / RU.

Link to comment
Share on other sites

  • 3 months later...

the linked version solved some of the problems mentioned in this thread:

 

hidden SL and TP: To avoid error 130. Using the variables sl_hidden, tp_hidden, (applied only if ECN_Support = TRUE)

 

extern bool lower_tp: if set to true, the EA will close the position after reaching 2/3 of the gap instead of the full gap.

 

extern bool close_on_mon_2am: if set to true, the EA will close the position on Monday 2 AM server time. If, in addition extern bool close_only_in_profit is set to true, the EA will close the position on monday 2 AM only if the position is in profit. It had been set to close the position on Monday 2 AM GMT, so change the line

 

if ((DayOfWeek() == 1 && TimeHour(TimeCurrent()) >= 2) || DayOfWeek() >= 2)

 

to

 

if ((DayOfWeek() == 0 && TimeHour(TimeCurrent()) >= 21) || DayOfWeek() >= 1)

if you are running the EA with ATC brokers (GMT-5)

 

or to

if ((DayOfWeek() == 1 && TimeHour(TimeCurrent()) >= 3) || DayOfWeek() >= 2)

if you are running the EA with Alpari (GMT+1)

 

etc...

 

I've not try it yet, so please post if you find problems or bugs. thanks.

 

(link removed due to bug. Below is the updated version link)

hxxp://mir.cr/PLQRSPD0

Edited by Dan1977
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...