Forex Factory
  • Login

  • Username: Password:
  • 2:02am

  • Search
  • Home

  • Forums

  • Trades

  • Calendar

  • News

  • Market

  • Brokers

Options

Search
Search
Search

Subscribe to Thread

Bookmark Thread

First Page First Unread Last Page Last Post

Printable Version

Similar Threads

Gap Up? 4 replies

Creating a gap indicator 4 replies

Help needed to mod gap indicator 11 replies

Pivot Indicator/Gap in History 4 replies

  • Platform Tech
  • /
  • Reply to Thread
  • 17

Gap indicator

  • Last Post
  • First Unread
  •  
  • Page 1 23 4
  •  
  • Post# 1
  • Quote
  • First Post: May 7, 2007 3:28pm
  • Numb3rs
    Joined Feb 2007 | 5,504 Posts | Status: Flipping coins
Hello I am looking for an MT4 indicator that will pointout gaps from the close of one bar to the open of the next and show the amount of the gap in pips.

Does anyone know of an indicator like this and where to find it?
Liberty always wins because tyranny self-destructs.
  • Post# 2
  • Quote
  • May 7, 2007 4:21pm
  • Kurka Fund
    Joined Mar 2007 | 431 Posts | Status: Member
whats the purpose of this ?

The gap would just be the difference in the tick that started the new bar compared to the last tick.
Keep it simple stoopid....
  • Post# 3
  • Quote
  • May 7, 2007 5:29pm
  • Numb3rs
    Joined Feb 2007 | 5,504 Posts | Status: Flipping coins
I gap trade so if there is a way like with an indicator to scan for gaps then it might save time.
Liberty always wins because tyranny self-destructs.
  • Post# 4
  • Quote
  • May 7, 2007 5:51pm
  • WHTenn
    Joined Nov 2006 | 1,732 Posts | Status: Member
Question, what are the advantages of trading gaps?

I looked for an indicator and cannot locate one for you.

Good Luck
  • Post# 5
  • Quote
  • May 7, 2007 6:03pm
  • Numb3rs
    Joined Feb 2007 | 5,504 Posts | Status: Flipping coins
Quoting WHTenn
Question, what are the advantages of trading gaps?

I looked for an indicator and cannot locate one for you.

Good Luck
Here is a video on gap plays.

http://forexclips.com/freetradingvideos/gap-play-video/gap-play-video.html

Sometimes multiple pares will gap on open and I need to check and measure each gap to decide what one is best to trade. An indicator could make this go much faster.

Hope this helps you to understand

Thanks for your time in looking for the indicator.
Liberty always wins because tyranny self-destructs.
  • Post# 6
  • Quote
  • May 7, 2007 6:26pm
  • Kurka Fund
    Joined Mar 2007 | 431 Posts | Status: Member
So you want it to only do this on the market open every sunday ? Give me your rules and I will program it ... looks really easy.
Keep it simple stoopid....
  • Post# 7
  • Quote
  • May 7, 2007 6:51pm
  • Numb3rs
    Joined Feb 2007 | 5,504 Posts | Status: Flipping coins
Quoting Kurka Fund
So you want it to only do this on the market open every sunday ? Give me your rules and I will program it ... looks really easy.
Ok thanks alot!

All I want the indicator to do is point out the gap on market open with some sort of marker and then have text telling me how big the gap is in pips.

Again "thanks"!
Liberty always wins because tyranny self-destructs.
  • Post# 8
  • Quote
  • May 7, 2007 8:46pm
  • WHTenn
    Joined Nov 2006 | 1,732 Posts | Status: Member
Numb3rs, thanks for the video. Now I have a better understanding.

Wish you many pips!
  • Post# 9
  • Quote
  • May 7, 2007 10:01pm
  • Kurka Fund
    Joined Mar 2007 | 431 Posts | Status: Member
Here is an EA on built on this method.... test it and make some suggestions.

I would load it on a bunch of 1 min charts

Parameters......
PHP Code:

extern string  comment1        
= " Time and date of last Fridays Close ";
extern datetime MarketClose    = D'2007.05.04 22:00'; // set this to the Date and time of Fridays Close
extern string  MarketOpen      = "00:00"; // Set this to the time that the market opens on Sundays

extern string  comment2       = " ============================== ";
extern double  MinGap         = 10; // if the GAP between open and close is < MinGap then no trade will be executed
extern int     Risk           = 10; // Percentage of account balance that you are going to use to calculate Lot size
extern string  comment        = " Pips added to GAP for TP and SL, if 0, TP and SL = GAP ";
extern int     TakeProfit     = 0; // if you want to set the TP = to the GAP leave this alone. it you want it higher set it to a positive interger, lower = neg interger
extern int     StopLoss       = 0; // same as TP 
This looks like a good way to start the week.... i look foward to seeing how the testing turns out...

Improvements....

1. Automatically calculate "datetime() = to fridays close time"..... anyone know how to do this ???

2. Add some cool trailing stop or something...give me your suggestions on order management...

have fun... BTW it will work on Live accounts but limits the order size to 0.01 lots....
Keep it simple stoopid....
  • Post# 10
  • Quote
  • May 7, 2007 10:59pm
  • Numb3rs
    Joined Feb 2007 | 5,504 Posts | Status: Flipping coins
Thank you Kurka Fund.
I am not sure how to install this. Meta editor wont compile it. Also, do I save it in scripts or indicators?
Just from reading it it looks like it might work.

Quoting Kurka Fund
Here is an EA on built on this method.... test it and make some suggestions.

I would load it on a bunch of 1 min charts

Parameters......
PHP Code:
 
extern string  comment1        
= " Time and date of last Fridays Close ";
extern datetime MarketClose    = D'2007.05.04 22:00'; // set this to the Date and time of Fridays Close
extern string  MarketOpen      = "00:00"; // Set this to the time that the market opens on Sundays
 
extern string  comment2       = " ============================== ";
extern double  MinGap         = 10; // if the GAP between open and close is < MinGap then no trade will be executed
extern int     Risk           = 10; // Percentage of account balance that you are going to use to calculate Lot size
extern string  comment        = " Pips added to GAP for TP and SL, if 0, TP and SL = GAP ";
extern int     TakeProfit     = 0; // if you want to set the TP = to the GAP leave this alone. it you want it higher set it to a positive interger, lower = neg interger
extern int     StopLoss       = 0; // same as TP 
This looks like a good way to start the week.... i look foward to seeing how the testing turns out...

Improvements....

1. Automatically calculate "datetime() = to fridays close time"..... anyone know how to do this ???

2. Add some cool trailing stop or something...give me your suggestions on order management...

have fun... BTW it will work on Live accounts but limits the order size to 0.01 lots....
Liberty always wins because tyranny self-destructs.
  • Post# 11
  • Quote
  • May 7, 2007 11:03pm
  • Kurka Fund
    Joined Mar 2007 | 431 Posts | Status: Member
its an EA..... Just save it in your experts folder > attach to a chart > set the parameters you want > then wait for the market to open.

if there is a gap larger than what you specified then it will open the trade.

try it on a bunch of 1 min charts this sunday....
Keep it simple stoopid....
  • Post# 12
  • Quote
  • May 7, 2007 11:17pm
  • Numb3rs
    Joined Feb 2007 | 5,504 Posts | Status: Flipping coins
Ok I got it under experts now. Does it need to stay as a php file or do I need to change it?

Sorry I am not familiar with EAs.
Liberty always wins because tyranny self-destructs.
  • Post# 13
  • Quote
  • May 7, 2007 11:28pm
  • Kurka Fund
    Joined Mar 2007 | 431 Posts | Status: Member
OOPS i feel dumb.. I forgot to post it... here you go...
Attached File
File Type: ex4 GapTrader v_01 Secure.ex4   5 KB | 1,202 download
Keep it simple stoopid....
  • Post# 14
  • Quote
  • May 7, 2007 11:42pm
  • banzai
    Joined Jun 2006 | 308 Posts | Status: Member
There was a gap on last Friday and today on the EURAUD pair. That's North Pro demo.
Attached Image (click to enlarge)
Click to Enlarge

Name: euraud05082007a.jpg
Size: 30 KB
  • Post# 15
  • Quote
  • May 7, 2007 11:46pm
  • Numb3rs
    Joined Feb 2007 | 5,504 Posts | Status: Flipping coins
Quoting Kurka Fund
OOPS i feel dumb.. I forgot to post it... here you go...
No problem.

I see now it has to be a ex4 file. I was making it mq4.

Anyway thanks a bunch and will see what happens on sunday.
Liberty always wins because tyranny self-destructs.
  • Post# 16
  • Quote
  • May 7, 2007 11:47pm
  • Kurka Fund
    Joined Mar 2007 | 431 Posts | Status: Member
The EA will only take into account the difference between Fridays close and Sundays open.... thats what the video said
Keep it simple stoopid....
  • Post# 17
  • Quote
  • May 7, 2007 11:50pm
  • Numb3rs
    Joined Feb 2007 | 5,504 Posts | Status: Flipping coins
Quoting banzai
There was a gap on last Friday and today on the EURAUD pair. That's North Pro demo.
This strategy is looking for gaps at the open of the week only not just any gap, because they have a high statistical probability of back filling. Some call this strategy "Fading the opening gap".
Liberty always wins because tyranny self-destructs.
  • Post# 18
  • Quote
  • May 7, 2007 11:52pm
  • Numb3rs
    Joined Feb 2007 | 5,504 Posts | Status: Flipping coins
Quoting Kurka Fund
The EA will only take into account the difference between Fridays close and Sundays open.... thats what the video said
Yes thats what I want. Perfect! I can't wait to test it out.

great work
Liberty always wins because tyranny self-destructs.
  • Post# 19
  • Quote
  • May 8, 2007 5:03pm
  • Numb3rs
    Joined Feb 2007 | 5,504 Posts | Status: Flipping coins
KK

I am not sure if this a problem or not. When I load the EA it shows that it is active but on the chart it has a instead of a . Will the apear on Sunday's open?
Attached Image
Liberty always wins because tyranny self-destructs.
  • Post# 20
  • Quote
  • May 8, 2007 5:37pm
  • jlowder
    Joined Jul 2006 | 225 Posts | Status: Member
Quoting Numb3rs
KK

I am not sure if this a problem or not. When I load the EA it shows that it is active but on the chart it has a instead of a . Will the apear on Sunday's open?
On your tool bar there is a bar that says "expert advisors". Click that to turn on EA's. Then right click on the EA, open it and make sure "Allow live trading" is selected. You should see a smiley face and be good to go at that point.

Jason
Thread Tools Search this Thread
Show Printable Version Show Printable Version
Email This Thread Email This Thread
Search this Thread:

Advanced Search

  • Platform Tech
  • /
  • Gap indicator
  • Reply to Thread
    • Page 1 23 4
0 traders viewing now
  • More

©2013 Forex Factory, Inc. / Terms of Use / Privacy Policy

Forex Factory® is a registered trademark.

Connect

  • Facebook
  • Twitter
  • RSS

Company

  • About FF
  • FF Blog
  • Careers at FF
  • Advertising
  • Contact FF

Products

  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer

Website

  • Homepage
  • Search
  • User Guide
  • Member List
  • Online Now
  • Report a Bug