Forex Factory
  • Login

  • Username: Password:
  • 9:41am

  • Search
  • Home

  • Forums

  • Trades

  • Calendar

  • News

  • Market

  • Brokers

Options

Search

Subscribe to Thread

Bookmark Thread

First Page First Unread Last Page Last Post

Printable Version

Similar Threads

does a 4 color RSI indicator exist? 0 replies

3D Indicator? Does It Exist? 1 reply

a multibasket spread indicator for 28 pairs. does it exist? 0 replies

Does this indicator exist 0 replies

Does a COT indicator exist? 5 replies

  • Commercial Content
  • /
  • Reply to Thread
  • 3

Does this indicator exist?

  • Post# 1
  • Quote
  • First Post: Dec 20, 2012 8:31pm
  • forexhard
    Commercial Member | 557 Posts | Joined May 2011
Not sure if this exists already or not, so please advise.

I'm looking for an indicator that you can drop on to any chart (e.g., EU M1) and it will scan all your broker's index and then tell you which pairs (or commodities, etc) are near their historical highs or lows, and by how much. For example, it might say E/U within 400p (18%) of 5-Year High of 1.6XXXX. Or, NZ/U within 225p (9%) of 3-Year Low of 0.4XXXX.

For example, if you set it to '5yr' and '80%' you would probably get back twenty or more lines. The idea would be to tweak the percentage input until only a few lines show up on pairs that are the closest to either their historical high or low. Searching 20% ought to come back with many fewer lines than, say, 80%.

If someone volunteers to make this from scratch for me, my wish list would include open inputs for the backtest (e.g., 2yrs, 5yrs, 10yrs, etc.), the percentage parameter I am hunting for (e.g, 20%), and inputs for font, font size, font color, and corner selection.

Cheers,
FxH
  • Post# 2
  • Quote
  • Dec 20, 2012 10:57pm
  • CodeMeister
    Joined Sep 2009 | 1,388 Posts | Status: Making Code While Making Pips
It is very hard to find and load that much historical data unless you have a special feed. Would you trust results from your broker's historical data?
  • Post# 3
  • Quote
  • Dec 21, 2012 12:09am
  • forexhard
    Commercial Member | 557 Posts | Joined May 2011
Quoting CodeMeister
It is very hard to find and load that much historical data unless you have a special feed. Would you trust results from your broker's historical data?
I would say so, yes.

I suppose based on your comments that it would be smart to add pair selection input lines, so that only those pairs are searched. That would eliminate quite a bit of bandwidth, being able to eliminate the exotics and such, right?

And is it possible to preserve the data after it's been retrieved, so that it doesn't have to start from Zero each time you open it?
  • Post# 4
  • Quote
  • Dec 21, 2012 12:25am
  • nubcake
    Joined Oct 2009 | 2,373 Posts | Status: schadenfreude tastes like joy
Quoting forexhard
I would say so, yes.

I suppose based on your comments that it would be smart to add pair selection input lines, so that only those pairs are searched. That would eliminate quite a bit of bandwidth, being able to eliminate the exotics and such, right?

And is it possible to preserve the data after it's been retrieved, so that it doesn't have to start from Zero each time you open it?
let's straighten this out a little... making an indi or script that you drop on a chart and scans ALL pairs is do-able, but with a bit of fudging and messing around and more bother than it is worth. however, making one that just scans the chart it is applied to is somewhat trivial. scanning for a high / low is utterly basic, and to answer your question about making it not re-scan over and over then yes that's also trivial. once a scan is done you only need to find some way to store the last-known date that you have scanned up to and then never waste time checking beyond this datetime each time a new bar forms. you could store this datetime value in a file, but it's much easier just to drop some specifically named object on your chart AT the datetime that you have scanned up to and then just read the time1 value of this object before you go to do a scan... but this only works if you don't intend to keep closing and re-opening the chart because you'll just lose this 'bookmark' object each time you close a chart, so in that case you'd just write to file and be done with it.

you should have a crack at writing this yourself if you have any inclination to try, otherwise someone will probably do it for you (not me, cbf).

as for historical data, i probably wouldn't trust too much any data prior to a few years ago, but you can usually see that the data gets dirty from a certain point if you actually look at the chart.
  • Post# 5
  • Quote
  • Dec 21, 2012 12:35am
  • CodeMeister
    Joined Sep 2009 | 1,388 Posts | Status: Making Code While Making Pips
Quoting forexhard
I would say so, yes.

I suppose based on your comments that it would be smart to add pair selection input lines, so that only those pairs are searched. That would eliminate quite a bit of bandwidth, being able to eliminate the exotics and such, right?

And is it possible to preserve the data after it's been retrieved, so that it doesn't have to start from Zero each time you open it?
If you believe that there's a software fix for everything, you are like many others - wrong.
  • Post# 6
  • Quote
  • Dec 21, 2012 1:24am
  • forexhard
    Commercial Member | 557 Posts | Joined May 2011
Nubcake, no it doesn't matter if the indi works with just one pair or several. I was just wishing out loud. As for historical data accuracy, all I'm after is high and low points over N bars, and how far the current price is from those points based on simple search parameters.

CodeMeister, I have no idea what your point is. But if you're not here to help, then by all means feel free to stay out of my conversation.
  • Post# 7
  • Quote
  • Dec 21, 2012 1:44am
  • nubcake
    Joined Oct 2009 | 2,373 Posts | Status: schadenfreude tastes like joy
Quoting forexhard
Nubcake, no it doesn't matter if the indi works with just one pair or several. I was just wishing out loud. As for historical data accuracy, all I'm after is high and low points over N bars, and how far the current price is from those points based on simple search parameters.

CodeMeister, I have no idea what your point is. But if you're not here to help, then by all means feel free to stay out of my conversation.
so what are you going to do? are you going to try yourself, or wait for someone to do it for you?

if you can find the high and low of the current bar, then it's not much more difficult to find the high and low of the last 2 bars. if you can find the h/l of the last 2 bars then it's just the same to find it for the last 10, 20, 100, 1000...... etc.

all you are left with after that is storing the value and also the datetime of where you have checked up to in time so that you don't bother testing before then anymore. toss in a bit of file read/write and you are done.

then you can do whatever math you want on those values.
  • Post# 8
  • Quote
  • Dec 21, 2012 2:11am
  • forexhard
    Commercial Member | 557 Posts | Joined May 2011
Quoting nubcake
so what are you going to do? are you going to try yourself, or wait for someone to do it for you?....
If I could do this myself, don't you think I would have instead of starting this thread?
  • Post# 9
  • Quote
  • Dec 21, 2012 3:19am
  • futurespec
    Joined May 2011 | 724 Posts | Status: If you think I'm mad, I must be mad
This is close to what you ask for. (but not exactly as have no time to play)

It is for you (not me to adapt to your needs).
Add all the pairs that you want to monitor to mPairs[] string

HTH

M.
Attached File
File Type: mq4 mn FHard.mq4   3 KB | 31 downloads
  • Post# 10
  • Quote
  • Dec 21, 2012 5:25am
  • forexhard
    Commercial Member | 557 Posts | Joined May 2011
Futurespec, thanks alot for your first effort. I set it for 99% and this is what came back. And having it search every pair available was extremely fast and didn't affect my platform in the slightest.

I do like it. It definitely seems worth building on. Hopefully someone else can step in and complete it.

Thanks again!
Attached Image
  • Post# 11
  • Quote
  • Dec 21, 2012 6:45am
  • futurespec
    Joined May 2011 | 724 Posts | Status: If you think I'm mad, I must be mad
Do not know what you meant by "building on" but as your OP had a few other things in then I modded it slightly for you.

Finished with it now.

M.
Attached File
File Type: mq4 mn FHard.mq4   5 KB | 69 downloads
  • Post# 12
  • Quote
  • Last Post: Dec 21, 2012 12:40pm
  • forexhard
    Commercial Member | 557 Posts | Joined May 2011
Quoting futurespec
Do not know what you meant by "building on" but as your OP had a few other things in then I modded it slightly for you.

Finished with it now.

M.
Many Thanks!
Thread Tools Search this Thread
Show Printable Version Show Printable Version
Email This Thread Email This Thread
Search this Thread:

Advanced Search

  • Commercial Content
  • /
  • Does this indicator exist?
  • Reply to Thread
0 traders viewing now

©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