Forex



Go Back   Forex Trading > Downloads > Indicators - Metatrader 4






Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
Thread Tools Display Modes
  #11 (permalink)  
Old 09-01-2006, 12:05 AM
Gramski's Avatar
Senior Member
 
Join Date: Jul 2006
Posts: 267
Gramski is on a distinguished road
Thanks,

Here is the tradestation code of sinewave indicator.



Typ : Indicator, Name : Sine Wave Indicator

Inputs:
Price((H+L)/2);

Vars:
InPhase(0),
Quadrature(0),
Phase(0),
DeltaPhase(0),
count(0),
InstPeriod(0),
Period(0),
DCPhase(0),
RealPart(0),
ImagPart(0);

If CurrentBar > 5 then begin

{Compute InPhase and Quadrature components}
Value1 = Price - Price[6];
Value2 =Value1[3];
Value3 =.75*(Value1 - Value1[6]) + .25*(Value1[2] - Value1[4]);
InPhase = .33*Value2 + .67*InPhase[1];
Quadrature = .2*Value3 + .8*Quadrature[1];

{Use ArcTangent to compute the current phase}
If AbsValue(InPhase +InPhase[1]) > 0 then Phase =
ArcTangent(AbsValue((Quadrature+Quadrature[1]) / (InPhase+InPhase[1])));

{Resolve the ArcTangent ambiguity}
If InPhase < 0 and Quadrature > 0 then Phase = 180 - Phase;
If InPhase < 0 and Quadrature < 0 then Phase = 180 + Phase;
If InPhase > 0 and Quadrature < 0 then Phase = 360 - Phase;

{Compute a differential phase, resolve phase wraparound, and limit delta phase errors}
DeltaPhase = Phase[1] - Phase;
If Phase[1] < 90 and Phase > 270 then DeltaPhase = 360 + Phase[1] - Phase;
If DeltaPhase < 1 then DeltaPhase = 1;
If DeltaPhase > 60 then Deltaphase = 60;

{Sum DeltaPhases to reach 360 degrees. The sum is the instantaneous period.}
InstPeriod = 0;
Value4 = 0;
For count = 0 to 40 begin
Value4 = Value4 + DeltaPhase[count];
If Value4 > 360 and InstPeriod = 0 then begin
InstPeriod = count;
end;
end;

{Resolve Instantaneous Period errors and smooth}
If InstPeriod = 0 then InstPeriod = InstPeriod[1];
Value5 = .25*InstPeriod + .75*Value5[1];

{Compute Dominant Cycle Phase, Sine of the Phase Angle, and Leadsine}
Period = IntPortion(Value5);
RealPart = 0;
ImagPart = 0;
For count = 0 To Period - 1 begin
RealPart = RealPart + Sine(360 * count / Period) * (Price[count]);
ImagPart = ImagPart + Cosine(360 * count / Period) * (Price[count]);
end;
If AbsValue(ImagPart) > 0.001 then DCPhase = Arctangent(RealPart / ImagPart);
If AbsValue(ImagPart) <= 0.001 then DCPhase = 90 * Sign(RealPart);

DCPhase = DCPhase + 90;
If ImagPart < 0 then DCPhase = DCPhase + 180;
If DCPhase > 315 then DCPhase = DCPhase - 360;

Plot1(Sine(DCPhase), "Sine");
Plot2(Sine(DCPhase + 45), "LeadSine");

end;
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
  #12 (permalink)  
Old 09-04-2006, 12:51 AM
Gramski's Avatar
Senior Member
 
Join Date: Jul 2006
Posts: 267
Gramski is on a distinguished road
Quote:
Originally Posted by stlabc
I got one.

For mt3 indicators of RST sinewave/phase/homodyn listed above ,I have done some test and personally think they may have some errors in the programs because there is wrong performance corelative with price according to John's explanation in the book.

BRs
Stl
Thanks,

I got them from the SBFX site in some old MT3 forums. They seemed to be working for them, just by their comments, but there is no way of me knowing.

I was hoping someone might be able to convert them.
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
  #13 (permalink)  
Old 10-19-2006, 02:45 PM
Junior Member
 
Join Date: Apr 2006
Location: London UK
Posts: 17
GuRu123 is on a distinguished road
Center of Gravity

Hi,

Interested to know more about John Elhers (or Ehlers??) Center of Gravity Indicators / method, how it is used and more about it generally, can anyone suggest any links?

Cheers
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
  #14 (permalink)  
Old 10-19-2006, 04:19 PM
Senior Member
 
Join Date: Jun 2006
Posts: 1,510
prasxz is on a distinguished road
Cog

Quote:
Originally Posted by GuRu123
Hi,

Interested to know more about John Elhers (or Ehlers??) Center of Gravity Indicators / method, how it is used and more about it generally, can anyone suggest any links?

Cheers
Hi,

Check this link http://www.fxstreet.com/education/te...anual/gravity/

================
Forex Indicators Collection
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
  #15 (permalink)  
Old 02-18-2007, 07:45 PM
Junior Member
 
Join Date: Dec 2006
Posts: 2
Newman is on a distinguished road
Sine Wave Indicator

I was looking for the Sinewave indicator also and couldn't find it. Comparing the tradestation code and the code for the Instant Trendline.mq4, the first two thirds are the same. I added code and I am posting the indicator. Note that the result seems to be more jagged than it should, so I don't know if it's right. Does anybody have any suggestions?
Attached Files
File Type: mq4 SineWaveIndv0.1.mq4 (5.0 KB, 1371 views)
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
  #16 (permalink)  
Old 02-19-2007, 09:31 AM
SIMBA's Avatar
Senior Member
 
Join Date: May 2006
Posts: 1,380
SIMBA is on a distinguished road
Newman

Quote:
Originally Posted by Newman
I was looking for the Sinewave indicator also and couldn't find it. Comparing the tradestation code and the code for the Instant Trendline.mq4, the first two thirds are the same. I added code and I am posting the indicator. Note that the result seems to be more jagged than it should, so I don't know if it's right. Does anybody have any suggestions?

Hi Newman

The jagged results you obtain are caused by the fact that there are no discernible cycles at the time..you will see almost perfect cycles at times followed by minitrends that cause the jagged results you see
It is interesting to use sinewave(or cybercycle) jointly with the instantaneous trendline,mama,and frama..then it becomes discretional but you have all the important info at your fingertips..there are several ,free,papers by ehlers on his website www.mesasoftware.com

Hope it helped
Simba
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
  #17 (permalink)  
Old 02-20-2007, 04:46 AM
Junior Member
 
Join Date: Dec 2006
Posts: 2
Newman is on a distinguished road
Sinewave indicator

Thanks SIMBA for the info, Newman
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
  #18 (permalink)  
Old 02-20-2007, 05:34 AM
bluto's Avatar
Senior Member
 
Join Date: Sep 2006
Posts: 633
bluto is an unknown quantity at this point
Ehler was a true mystic and a genius able to see the "signs and the numbers" like DeMark & Darvas. Here's a handful from the archives that I use in my EA's. Coded by the brilliant Luis Guilherme Damiani.
Attached Files
File Type: mq4 2nd Order Gaussian High Pass Filter.mq4 (2.6 KB, 1253 views)
File Type: mq4 Center Of Gravity Oscillator.mq4 (3.2 KB, 1286 views)
File Type: mq4 Cyber Cycle Oscillator.mq4 (3.5 KB, 1434 views)
File Type: mq4 Fisher Transform for CCO, COGO or RVI.mq4 (4.0 KB, 1301 views)
File Type: mq4 Fisher Transform over Stochastic Oscillator.mq4 (2.8 KB, 1390 views)
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
  #19 (permalink)  
Old 02-20-2007, 05:35 AM
bluto's Avatar
Senior Member
 
Join Date: Sep 2006
Posts: 633
bluto is an unknown quantity at this point
A few more goodies...
Attached Files
File Type: mq4 Instant Trendline Filter.mq4 (3.2 KB, 1270 views)
File Type: mq4 Probability Density Function.mq4 (2.8 KB, 1205 views)
File Type: mq4 Relative Vigor Index.mq4 (3.2 KB, 1059 views)
File Type: pdf The Macd Indicator Revisited by John F. Ehlers.pdf (186.2 KB, 1611 views)
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
  #20 (permalink)  
Old 02-20-2007, 01:30 PM
Tragapips's Avatar
Member
 
Join Date: Dec 2005
Posts: 87
Tragapips is on a distinguished road
Question

Bluto

Thanks for indicators.

Just one question :How you use the probalility density funtion indicator??
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
"John ehlers", adaptive cci, All John Ehlers, ang_pr, belkhayate indicators, center gravity, center of gravity, center of gravity forex, center of gravity forex indicator, center of gravity indicator, center of gravity indicator forex, Center of Gravity John Ehlers, centre of gravity, cog indicator, cyber cycle, cyber cycle indicator, CyberCycle, ehler indicator, ehler indicators, ehlers, ehlers cyber cycle, ehlers filter mq4, Ehlers Fisher, ehlers fisher transform, ehlers indicator, Ehlers indicators, ehlers mq4, ehlers mql4, Ehlers mt4, ehlers trading, elder, elder impulse, Elder Impulse bar, Elder impulse system, fisher transform, Force Index, forex, GARCH mq4, gravity, Instant trendline filter, inverse fisher transform, Inverse Fisher Transform of RSI, Inverse Fisher Transform of RSIm, john ehler, John Ehlers, John Ehlers Fisher, john ehlers indicators, John Ehlers trading, mama ehlers, search, Sinewave Indicator

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
Max number of indicators in indicators folder? moneyline Metatrader 4 23 05-29-2009 12:37 PM
sinewave and phase indicators based on John Ehlers's theory stlabc Indicators - Metatrader 4 2 08-15-2006 02:39 PM
John murphy book codersguru Documentation 3 12-06-2005 02:25 AM


All times are GMT. The time now is 10:21 PM.



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