Forex



Go Back   Forex Trading > Downloads > Indicators - Metatrader 4
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
  #31 (permalink)  
Old 09-02-2009, 09:48 AM
Junior Member
 
Join Date: Oct 2006
Posts: 5
jonescu is on a distinguished road
Quote:
Originally Posted by d3scart3s View Post
The MetaStock formula is

CI = RSI(14)-Ref(RSI(14),-9)+Mov(RSI(3),3,Simple)

I want to use this to catch divergences with RSI(14).

I would code it myself but I don't know how ...

I use it with Excel and it looks promising at catching many market turns

thanks a million
Here it is a version, not a very polished one (I'm at work right now) but you can test it and let me know if it's fine.

All the best,
Attached Files
File Type: mq4 RSI_Turn.mq4 (2.0 KB, 76 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
  #32 (permalink)  
Old 09-02-2009, 07:57 PM
Junior Member
 
Join Date: Sep 2009
Posts: 3
d3scart3s is on a distinguished road
thanx a million

that's exactly what I was looking for.

It's the formula for the Composite Index. I don't know if you have seen the cover of the book "Technical Analysis for the Trading Professional" by Constance Brown, but that is exactly the indicator that appears beneath RSI(14) on the cover of that book.

I stumbled on that formula in another book but I was never able to find it anywhere on the net. How did you find it?

d3cart3s
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
  #33 (permalink)  
Old 09-03-2009, 02:07 PM
Junior Member
 
Join Date: Oct 2006
Posts: 5
jonescu is on a distinguished road
Quote:
Originally Posted by d3scart3s View Post
that's exactly what I was looking for.

It's the formula for the Composite Index. I don't know if you have seen the cover of the book "Technical Analysis for the Trading Professional" by Constance Brown, but that is exactly the indicator that appears beneath RSI(14) on the cover of that book.
I saw it only after your mention. Looks fine indeed.Maybe it's better to name it CI instead of RSI_Turn.
What I want for you to check if the values of indicator matches your Excel file.

Quote:
I stumbled on that formula in another book but I was never able to find it anywhere on the net. How did you find it?

d3cart3s
I didn't find it on the net, the indicator was written (based on your formula) on a launch break.

All the best,
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
  #34 (permalink)  
Old 09-08-2009, 02:31 PM
Junior Member
 
Join Date: Aug 2009
Posts: 6
InnToom is on a distinguished road
Could you please convert this mt4 code to metastock code?

//+-------------------------------+
//| HMA.mq4
//| Copyright ฉ 2006 WizardSerg <wizardserg@mail.ru>, ?? ??????? ForexMagazine #104
//| wizardserg@mail.ru
//| Revised by IgorAD,igorad2003@yahoo.co.uk |
//| Personalized by iGoR AKA FXiGoR for the Trend Slope Trading method (T_S_T)
//| Link:
//| contact: thefuturemaster@hotmail.com
//+----------------------------------+
#property copyright "MT4 release WizardSerg <wizardserg@mail.ru>, ?? ??????? ForexMagazine #104"
#property link "wizardserg@mail.ru"

#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Aqua
#property indicator_color2 Red
//---- input parameters
extern int period=80;
extern int method=3; // MODE_SMA
extern int price=0; // PRICE_CLOSE
//---- buffers
double Uptrend[];
double Dntrend[];
double ExtMapBuffer[];


//+-----------------------------------------+
//| Custom indicator initialization function |
//+-----------------------------------------+
int init()
{
IndicatorBuffers(3);
SetIndexBuffer(0, Uptrend);
//ArraySetAsSeries(Uptrend, true);
SetIndexBuffer(1, Dntrend);
//ArraySetAsSeries(Dntrend, true);
SetIndexBuffer(2, ExtMapBuffer);
ArraySetAsSeries(ExtMapBuffer, true);

SetIndexStyle(0,DRAW_LINE,STYLE_SOLID,1);
SetIndexStyle(1,DRAW_LINE,STYLE_SOLID,1);

IndicatorShortName("Slope Direction Line("+period+")");
return(0);
}

//+---------------------------------------------+
//| Custor indicator deinitialization function |
//+---------------------------------------------+
int deinit()
{
// ???? ????? ?????? ??????
return(0);
}

//+--------------------------------------+
//| ?????????? ??????? |
//+--------------------------------------+
double WMA(int x, int p)
{
return(iMA(NULL, 0, p, 0, method, price, x));
}

//+-------------------------------------------+
//| Custom indicator iteration function |
//+-------------------------------------------+
int start()
{
int counted_bars = IndicatorCounted();

if(counted_bars < 0)
return(-1);

int x = 0;
int p = MathSqrt(period);
int e = Bars - counted_bars + period + 1;

double vect[], trend[];

if(e > Bars)
e = Bars;

ArrayResize(vect, e);
ArraySetAsSeries(vect, true);
ArrayResize(trend, e);
ArraySetAsSeries(trend, true);

for(x = 0; x < e; x++)
{
vect[x] = 2*WMA(x, period/2) - WMA(x, period);
// Print("Bar date/time: ", TimeToStr(Time[x]), " close: ", Close[x], " vect[", x, "] = ", vect[x], " 2*WMA(p/2) = ", 2*WMA(x, period/2), " WMA(p) = ", WMA(x, period));
}

for(x = 0; x < e-period; x++)

ExtMapBuffer[x] = iMAOnArray(vect, 0, p, 0, method, x);

for(x = e-period; x >= 0; x--)
{
trend[x] = trend[x+1];
if (ExtMapBuffer[x]> ExtMapBuffer[x+1]) trend[x] =1;
if (ExtMapBuffer[x]< ExtMapBuffer[x+1]) trend[x] =-1;

if (trend[x]>0)
{ Uptrend[x] = ExtMapBuffer[x];
if (trend[x+1]<0) Uptrend[x+1]=ExtMapBuffer[x+1];
Dntrend[x] = EMPTY_VALUE;
}
else
if (trend[x]<0)
{
Dntrend[x] = ExtMapBuffer[x];
if (trend[x+1]>0) Dntrend[x+1]=ExtMapBuffer[x+1];
Uptrend[x] = EMPTY_VALUE;
}

//Print( " trend=",trend[x]);
}

return(0);
}
//+------------------------------------+

Last edited by newdigital; 09-08-2009 at 02:42 PM.
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
  #35 (permalink)  
Old 09-13-2009, 06:03 PM
Junior Member
 
Join Date: Aug 2009
Posts: 6
InnToom is on a distinguished road
And could you please convert this metastock code to mt4 code?

Upper:=Mov(C,20,E);
Lower:=Mov(C,21,E);

Upper;Lower;

Buy := Cross(Upper, Lower);
Sell := Cross(Lower,Upper);

Bullish := BarsSince(Buy) < BarsSince(Sell);
Bearish := BarsSince(Buy) > BarsSince(Sell);
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
  #36 (permalink)  
Old 09-13-2009, 06:35 PM
mladen's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,271
mladen is on a distinguished road
InToom,

The code from your post #34 is the Hull moving average and meatastock code of it is like this (without color coding)
PHP Code:
period:=Input("period",1,200,20);
sqrtperiod:=Sqrt(period);
Mov(2*Mov(C,period/2,W)-Mov(C,period,W),LastValue(sqrtperiod),W); 
Metastock code on the other hand is a system of 2 EMAs. Use MACD(20,21,1) and than the Buy and Sell signals would be when MACD line cross 0 line.

EAs coded for something similar are also numerous (one of them, the MACD sample comes with any metatrader installation, so it is available on any metatrader platform. It is coded for 12,26,9 MACD settings, but it is not difficult at all to change those)

Last edited by mladen; 09-13-2009 at 06:48 PM.
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
  #37 (permalink)  
Old 09-14-2009, 10:11 AM
Junior Member
 
Join Date: Aug 2009
Posts: 6
InnToom is on a distinguished road
Thumbs up

Thank you very much mladen.
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
  #38 (permalink)  
Old 10-25-2009, 10:35 AM
Junior Member
 
Join Date: Sep 2009
Posts: 1
Andrey V. is on a distinguished road
Could you please convert this Metastock code to MT4 code?

Bull Power UP signal with 13-period exponential moving average

a:=(H-Mov(C,13,E))>0-(L-Mov(C,13,E));
b:=(L-Mov(C,13,E))<0-(H-Mov(C,13,E));
state:=If(BarsSince(a)<BarsSince(b),1,0);
state>Ref(state,-1)
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
elder, metastock, mt4 to metastock, polarized fractal efficiency, safezone


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

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
Reliable feeds - Metastock etc pip-gandalf Metatrader 4 6 09-07-2007 10:18 AM
Moving average from Metastock maniek Indicators - Metatrader 4 2 06-05-2006 12:13 PM


All times are GMT. The time now is 05:15 PM.



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