Forex



Go Back   Forex Trading > Trading systems > Digital Filters
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #711 (permalink)  
Old 07-17-2009, 09:59 PM
Member
 
Join Date: Jan 2009
Posts: 85
Boyens is on a distinguished road
Quote:
Originally Posted by SIMBA View Post
In my experience ,one of the best non customindicators to mark the trend is STLM2..You can check the trend at h4 and h1,or D1 and H4,and when both are coincidental , look at shorter timeframes to trigger an entry with whatever suits you.
I posted a mtf stlm2 in the mtf thread,will repost here,so that you can check it,by just changing STLM2 for FTLM or FTLM_KG you will have the multiple time frame capabilities for these filters too.Additionally ,we can just modify the Ea to be able to test most strategies,including mtf of stlm2..
I would suggest that we create a menu of strategies,and then proceed to first test them historically with standard digital filters,and second,test them ,at leats the most promising ones,forward demo with custom digital filters..Any takers?
I download the #MFT_STLM2_v2 indicator posted by the great Simba, but didn't work for me on my plataform.
This version expired or something?

I'm looking for a STLM MTF to define the trend.

Thanks in advance friends.

Kindly.
__________________
"The greater our knowledge increases the more our ignorance unfolds."
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #712 (permalink)  
Old 08-24-2009, 03:44 AM
Junior Member
 
Join Date: Aug 2009
Posts: 2
linsher is on a distinguished road
Smile It is great help

Thanks for your kind help by posting. It is a great help to me.

Best wishes to all you guys
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #713 (permalink)  
Old 08-24-2009, 04:41 PM
SIMBA's Avatar
Senior Member
 
Join Date: May 2006
Posts: 1,398
SIMBA is on a distinguished road
Great ;)

Quote:
Originally Posted by Boyens View Post
I download the #MFT_STLM2_v2 indicator posted by the great Simba, but didn't work for me on my plataform.
This version expired or something?

I'm looking for a STLM MTF to define the trend.

Thanks in advance friends.

Kindly.
Boyens,

Find them here,you need both compiled in your indicator folder for the MTF to work,then,you can attach just the MTF and play with it,I suggest that you use h4 and/or d1 for trend definition on lower tf charts.

Regards
S
Attached Files
File Type: mq4 #MFT_STLM2_v2.mq4 (1.3 KB, 87 views)
File Type: mq4 STLM2.mq4 (10.3 KB, 108 views)
__________________
Equo ne credite,Teucri.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #714 (permalink)  
Old 09-10-2009, 12:21 AM
Member
 
Join Date: Mar 2009
Location: USA
Posts: 49
MadCow is on a distinguished road
Alternatives for calculating FATL SATL, etc.

Somehow I have my doubts about this multiple cyclic model of the FX market. I don't mean to challenge the utility of indicators based on the model, but I wonder what can the sources of such resonant structures be? Typically resonance requires a delayed reaction to a stimulus. The resonant structure resonates at a period equal to the delay. What can be delayed for 200 hours in this information age? (Perhaps the resonance might be more easily explained if it occured at smaller periods in the M1 TF). What can the stimulus be? News?, Fear and Greed of traders acting as a group? An interesting sociological question, but not useful here.

A second objection is the fact, pointed out by Simba, that the periods of resonance do not match up when measured at different TF's. If there is truly a resonant structure at say 48 1H periods, then it should show as a resonance at 12 4H periods, or 192 15M periods. This does not seem to happen. Why? Doesn't it make you nervous using the cyclic assumption to trade?

Whatever the answers, if the indicators are useful, then there are alternative ways to compute them. We do not need to rely on continuous spectral analysis and adaptive digital filters once we are convinced that there are 2 or 3 cycles that dominate, and that they change frequency (period) and amplitude slowly, etc. We can use FFT's, MESA, Goertzel or whatever to convince ourselves of this... I am not convinced yet, although the 3d pictures are pretty convincing. Then we can use tried and true methods to extract the cyclic signals from each other and from noise.

This signal extraction problem is pretty common in designing communication systems. Just think how your radio receiver (or cell phone if you must) pulls it's signal from the background noise and other signals in the neighborhood. These signals are not stationary, nor is the noise, though it is usually modeled that way. They are pretty complex with varying phase, frequency, and amplitude. Yet they can be reliably extracted in low signal-to-noise environments, provided that they do not interfere with each other.

How about using three fixed bandpass filters with bandpass narrow enough to separate the 3 signals, but wide enough to pass the expected frequency variation. Each filter is followed by a phase-locked loop to extract the changing frequency, and a coherent demodulator to extract the amplitude. No spectral analysis required. (Except to select the three bands.) No relative importance required, and no on-the-fly design and modification of filters required. (The extracted signal will be phase-continuous).

All of these elements are either filters, multipliers, or an oscillator with digitally controlled frequency (VCO). The only filter that has an important frequency response is the loop filter, and there are many designs for these. I have many references if anyone is interested. If I can just get my memory to cooperate so that I don't forget what I am trying to program, and if I can resurrect some semblance of coding in C, I may try it myself.

MadCow
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #715 (permalink)  
Old 09-15-2009, 08:34 AM
Junior Member
 
Join Date: Sep 2009
Posts: 1
fle__ is on a distinguished road
Data preprocessing

Richcap, thank you for sharing your code.

Do you know this other version of MESA, writen for Amibroker ?
AmiBroker - AFL Library

It implements various preprocessing (filtering, detrending) that are not included in your code, and that you could benefit of as it should allow for better results on real data.

Hope it will help you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #716 (permalink)  
Old 09-16-2009, 12:41 AM
SIMBA's Avatar
Senior Member
 
Join Date: May 2006
Posts: 1,398
SIMBA is on a distinguished road
Resonant

Quote:
Originally Posted by MadCow View Post
Somehow I have my doubts about this multiple cyclic model of the FX market. I don't mean to challenge the utility of indicators based on the model, but I wonder what can the sources of such resonant structures be? Typically resonance requires a delayed reaction to a stimulus. The resonant structure resonates at a period equal to the delay. What can be delayed for 200 hours in this information age? (Perhaps the resonance might be more easily explained if it occured at smaller periods in the M1 TF). What can the stimulus be? News?, Fear and Greed of traders acting as a group? An interesting sociological question, but not useful here.

A second objection is the fact, pointed out by Simba, that the periods of resonance do not match up when measured at different TF's. If there is truly a resonant structure at say 48 1H periods, then it should show as a resonance at 12 4H periods, or 192 15M periods. This does not seem to happen. Why? Doesn't it make you nervous using the cyclic assumption to trade?

Whatever the answers, if the indicators are useful, then there are alternative ways to compute them. We do not need to rely on continuous spectral analysis and adaptive digital filters once we are convinced that there are 2 or 3 cycles that dominate, and that they change frequency (period) and amplitude slowly, etc. We can use FFT's, MESA, Goertzel or whatever to convince ourselves of this... I am not convinced yet, although the 3d pictures are pretty convincing. Then we can use tried and true methods to extract the cyclic signals from each other and from noise.

This signal extraction problem is pretty common in designing communication systems. Just think how your radio receiver (or cell phone if you must) pulls it's signal from the background noise and other signals in the neighborhood. These signals are not stationary, nor is the noise, though it is usually modeled that way. They are pretty complex with varying phase, frequency, and amplitude. Yet they can be reliably extracted in low signal-to-noise environments, provided that they do not interfere with each other.

How about using three fixed bandpass filters with bandpass narrow enough to separate the 3 signals, but wide enough to pass the expected frequency variation. Each filter is followed by a phase-locked loop to extract the changing frequency, and a coherent demodulator to extract the amplitude. No spectral analysis required. (Except to select the three bands.) No relative importance required, and no on-the-fly design and modification of filters required. (The extracted signal will be phase-continuous).

All of these elements are either filters, multipliers, or an oscillator with digitally controlled frequency (VCO). The only filter that has an important frequency response is the loop filter, and there are many designs for these. I have many references if anyone is interested. If I can just get my memory to cooperate so that I don't forget what I am trying to program, and if I can resurrect some semblance of coding in C, I may try it myself.

MadCow

Hi Madcow,

200 hours delayed reaction in the financial markets will lead to extinction of the players that purported that behaviour and,consequently,the behaviour would dissappear....as you rightly hinted to.

IMHO there may be different causes of cycles,if you read the materials at the Foundation for the Study of Cycles,you may see that among the noted probable causes they cite the stars,the planets,the solar flare activity,geomagnetic storms,etc,etc,so many causes that it is best to just study the possibilities in private, while trading the effects when they are quantifiable on a reward to risk basis.

Basically ,IMO,cycles are like a preset chain of action reaction behaviour that usually takes similar time to be accomplished from week to week,day to day,hour to hour(think about predator&prey models)..how much time does it take to run the sell stops and then fullfill that big customer buy order at a better price?...How much time takes for your competitor to notice and start intruding in your game?how much time does it take for the previous longs to either be stopped out or chickened out of their positions(and there is a component of volatility here) ?..Well,I believe that this process takes ,usually,x time,+- y std...so,as long as the std is workable and the y doesn`t kill you in the waiting,this patterns are tradable.

In conceptual trading terms,if 2 or 3 hours after Frankfurt opening,with the London session going on,I see prices stall at a weekly S1 after a downmove that just went fast and furious 50 pips below previous support(aka running of stops)...and,simultaneously my H4 cycles are signalling a turn,I take the long.

Currency pairs may have a near optimal compression of volatility at H4(all tfs compress volatility from tick data),and the lower timeframes may be too noisy for our filters to detect the cycles....Or maybe,and very probably ,our filters are not good enough for that.

Please feel free to go ahead with your idea,it may offer an alternative view about this fascinating issue...I believe most of the people here will try to help you.

Regards
S
__________________
Equo ne credite,Teucri.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #717 (permalink)  
Old 10-01-2009, 06:17 AM
Member
 
Join Date: May 2006
Posts: 47
juanchoc is on a distinguished road
Interesting post..
Does anyone know how did Noxa to modify the SSA algorithm in order to make it causal?
I've been working on the subject for the past two moths, but haven't got much time to wrap it up.
I read in some of the posts of this thread that Noxa CSSA uses neural networks??? Can someone corroborate this?
By the way, just a multilayer feed forward NN or maybe a auto-encoder NN?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #718 (permalink)  
Old 10-01-2009, 08:39 PM
biddick's Avatar
Senior Member
 
Join Date: Mar 2009
Posts: 127
biddick is on a distinguished road
'' Casual'' part comes from echo state network :Echo state network - Scholarpedia
But still SSA algorithm nothing but curve fitting.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #719 (permalink)  
Old 10-03-2009, 06:33 AM
Member
 
Join Date: Mar 2009
Location: USA
Posts: 49
MadCow is on a distinguished road
Quote:
Originally Posted by SIMBA View Post
Hi Madcow,

...

Please feel free to go ahead with your idea,it may offer an alternative view about this fascinating issue...I believe most of the people here will try to help you.

Regards
S
Thanks Simba for the explanation and encouragement, but before I proceed I want to make sure that the cycles are not a figment of the way the price is processed. I would like to ask whether the cyclic components could possibly be the result of aliasing.

GUM1 SPectrum.JPG Let me show you what I mean. Here is GBPUSD M1 and two spectral plots from R_MESA. The first plot is the spectrum of GU M1 with no processing. The second is the spectrum of GU M1 after passing it through an anti aliasing filter designed so that the signal can be sampled at 1 hour intervals without violating Nyquists sampling theorum. If the M1 signal is simply sampled at 1 hour intervals, without first low pass filtering (and that's precisely what the H1 close is), the subsampling process will introduce aliased artifacts. Because the M1 close has significant energy below 120 min period, sampling at 60 min will alias a lot of energy into the H1 samples. All the peaks that show left of 120 minutes will appear as peaks in the H1 spectrum. The location of the peaks can be calculated, but the process is a mess, so I have not done it. Also MESA may not pick up all the aliased energy, like an FFT would.

Now lets look at the spectrum of GU H1 with no anti aliasing filter applied.
GUH1 spectrum.JPG
Where did all those peaks come from? If I was the church lady, I might think it was SATAN... but in fact I think it is aliasing. Perhaps I should subsample the filtered M1 price and look at it's spectrum. But that's for another day.

Incidentally, thanks to RC for the excellent software tools.

Regards... MadCow...
P.S. Think how much more we can alias into the H4 spectrum.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #720 (permalink)  
Old 10-03-2009, 12:37 PM
SIMBA's Avatar
Senior Member
 
Join Date: May 2006
Posts: 1,398
SIMBA is on a distinguished road
H4,Nonlinearity and Fractal scaling

Quote:
Originally Posted by MadCow View Post
Thanks Simba for the explanation and encouragement, but before I proceed I want to make sure that the cycles are not a figment of the way the price is processed. I would like to ask whether the cyclic components could possibly be the result of aliasing.

Attachment 90897 Let me show you what I mean. Here is GBPUSD M1 and two spectral plots from R_MESA. The first plot is the spectrum of GU M1 with no processing. The second is the spectrum of GU M1 after passing it through an anti aliasing filter designed so that the signal can be sampled at 1 hour intervals without violating Nyquists sampling theorum. If the M1 signal is simply sampled at 1 hour intervals, without first low pass filtering (and that's precisely what the H1 close is), the subsampling process will introduce aliased artifacts. Because the M1 close has significant energy below 120 min period, sampling at 60 min will alias a lot of energy into the H1 samples. All the peaks that show left of 120 minutes will appear as peaks in the H1 spectrum. The location of the peaks can be calculated, but the process is a mess, so I have not done it. Also MESA may not pick up all the aliased energy, like an FFT would.

Now lets look at the spectrum of GU H1 with no anti aliasing filter applied.
Attachment 90899
Where did all those peaks come from? If I was the church lady, I might think it was SATAN... but in fact I think it is aliasing. Perhaps I should subsample the filtered M1 price and look at it's spectrum. But that's for another day.

Incidentally, thanks to RC for the excellent software tools.

Regards... MadCow...
P.S. Think how much more we can alias into the H4 spectrum.
Madcow,

A picture is worth a thousand words...see attached a scan I run to find and draw a composite cycle slope of up to 4 cycles(per timeframe) in different timeframes

H1..Looked for cycles up periodicity between 90 to 180 bars within the last 540 bars

M30,M15,M5...Same equivalent analysis...so basically I am oversampling 1,2,4 and 12 times with exactly the same results.

If you see the pics you will see that the scan found just 2 cycles,not 1 nor 4, exactly the same 2 cycles in the 4 different timeframes,same periodicity 108 and 153 H1 bars equivalent,same amplitude and same phase...This doesn`t happen always,aliasing and ghosts and spectral resonance of harmonic and subharmonics usually appear in the picture fogging the reality,but when you see this perfect match,you know you can trade this cyclic model,at any of the 4 timeframes ...even at h4 if you wished to do so....by using oversampling,you can sample several times per bar(use m15 sampling in h4 for example)...but you really do not need to.

The cycles are exactly the same...what are the possibilities that these are ghosts?...As I told you before it is just a question of having the right tools to measure what is happening...

Richcap may disagree with my view,but,IMO,MESA is not the right tool,Fourier with all its variations,including Goertzel ,is slightly better...but what we really need to think about is the concept of Fractal Cycles,so,we have to enter into the realms of nonlinearity and fractal scaling if we really want to "model" the market.

I won`t try to convince anybody of anything else,I already have all the tools I need in the realm of cycles,so,if you are not convinced by both Richcap and mine findings,then the logical conclusion is to forget about cycles..If you are convinced,or at least convinced enough to try,I will help you as long as your approach is original and useful and,obviously,as long as I don`t have to disclose any propietary work done at our private Group.

Regards
S
Attached Images
File Type: gif c&c19.gif (40.1 KB, 23 views)
File Type: gif c&c20.gif (39.2 KB, 14 views)
File Type: gif c&c21.gif (35.4 KB, 8 views)
File Type: gif c&c22.gif (35.4 KB, 10 views)
__________________
Equo ne credite,Teucri.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks

Tags
trading, goertzel, digital, digital filter, Digital Filters, ssa mq4, SSA.mq4, goertzel_cycle, entropy, hurst, fajst_k


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Digital Filters (basic explanation) newdigital Digital Filters 42 07-20-2009 04:57 AM
digital filters newdigital Indicators - Metatrader 3 3 12-07-2005 08:18 AM
Digital filters newdigital Documentation 4 12-02-2005 07:04 PM


All times are GMT. The time now is 08:36 PM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.