GAP Strategy

Strategies are published here.

Moderator: admin

GAP Strategy

Postby Apprentice » Fri Apr 14, 2023 5:56 am

US30 D1 (04-14-2023 1254).png

Based on the request.
https://fxcodebase.com/code/viewtopic.php?f=27&p=150395

Gaps are sharp breaks in price with no trading occurring in between.
In forex they mostly happen on weekends since the Forex market is open 24 hours a day,
seven days a week, and only shuts on weekends.

Open Long
If the price Gup up is greater than the set minimum in pips.

Vice versa for Short
GAP Strategy.lua
(32.52 KiB) Downloaded 146 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36474
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: GAP Strategy

Postby marcoleghorn1972 » Fri Apr 14, 2023 8:23 am

Good afternoon, thanks for your help. I tried to optimize the strategy but no trade opens. I am attaching the screenshot of the settings.
Thank you.
Attachments
gap.jpg
marcoleghorn1972
 
Posts: 28
Joined: Sat Mar 28, 2015 4:40 am

Re: GAP Strategy

Postby Apprentice » Wed Apr 19, 2023 5:47 am

Usually, you will find gaps on D1 and greater.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36474
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: GAP Strategy

Postby marcoleghorn1972 » Wed Apr 19, 2023 9:41 am

Hi, I ran a test from 01/01/2022 to today on ger30 with time frame D1. The strategy opens only one position in the entire period.
marcoleghorn1972
 
Posts: 28
Joined: Sat Mar 28, 2015 4:40 am

Re: GAP Strategy

Postby Apprentice » Sat Apr 22, 2023 12:21 pm

1. Re-download.
2. Try to set "Minimal GAP in pips" to zero.
Snimka zaslona 2023-04-22 191748.png

3. Set "Show Price Gap" to Show
I suspect some of the sources have gaps removed.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36474
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Return to Custom Strategies

Who is online

Users browsing this forum: No registered users and 19 guests