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
  #1 (permalink)  
Old 09-04-2007, 02:28 PM
Member
 
Join Date: Jul 2007
Posts: 93
walterw is on a distinguished road
Fantail VMA for MT4

Let me say Hello to the MT4 comunity... My name is Walter and I am doing some research on forex... my homebase Forum is Traders Laboratory I just started there a thread about a new powerfull method I am developing that you can access it here Walter`s Forex "Trend Trades" - Traders Laboratory - Active Traders Forum so far I am using an indicator created by Bemac from VT right here Fantail Variable MA's - Visual TRading Charts Forum the indicator is called Fantail VMA`s... (thanks Bemac ¡¡ ) its a very simple indicator wich uses a VMA as the base average and from there he creates a rainbow of emas from the vma... Now this VMA is constructed with an ADX to determine volatility wich makes it a very peculiar indicator... I come here to ask some collaboration from you programmers at here TSD as I know that programming this simple indicator for MT4 will seriously benefit the MT4 comunity... its a simple one and I might say also a powerfull one...

Here I attach the VT formula:

{/// Bemac June 2006 \\\\
/ Fantail@ Variable MA's \}


{Calculate Wilders Average Directional Index [ADX] }
TH:= IF(Ref(Close,-1) > High,Ref(Close,-1), High);
TL:= IF(Ref(Close,-1) < Low ,Ref(Close,-1), Low );

TR:= TH-TL;
{--------------}

PlusDM := IF(High > Ref(High,-1) AND Low >= Ref(Low,-1)
, High-Ref(High,-1)
, If(High > Ref(High,-1) AND Low < Ref(Low,-1) AND High - Ref(High,-1) > Ref(Low,-1) - Low
, High - Ref(High,-1)
,0));

PlusDI := 100 * Wilders(PlusDM,ADXPr) / Wilders(Tr,ADXPr);

MinusDM:= IF(Low < Ref(Low,-1) AND High <= Ref(High,-1)
, Ref(Low,-1) - Low
, If(High > Ref(High,-1) AND Low < Ref(Low,-1) AND High - Ref(High,-1) < Ref(Low,-1) - Low
, Ref(Low,-1) - Low
,0));
{--------------}

MinusDI := 100 * Wilders(MinusDM,ADXPr) / Wilders(Tr,ADXPr);

DIDif := Abs(PlusDI - MinusDI);

DISum := PlusDI + MinusDI;

ADXFinal := 100 * Wilders(DIDif/DISum,ADXPr);

ADXRCustom:= (ADXFinal + Ref(ADXFinal,1-ADXPr)) / 2;

_ADX := IF( ADXtype = 0
,ADXFinal
,ADXRCustom);

{Calculate a Variable Moving Average using method devised by Tushar Chande}
Barnum := BarCount();
EmaIndex:= IF(VarMAPr > 0 ,(2 / (1+VarMAPr)) ,0.20);
Diff := HHV(_ADX, ADXPr) - LLV(_ADX, ADXPr);
MyConst := IF(Diff > 0
,(_ADX - LLV(_ADX,ADXPr)) / Diff
,EmaIndex);
MyConst := IF(MyConst > EmaIndex
,EmaIndex
,MyConst);
VarMA := IF(Barnum < ADXPr + (ADXPr * 1.5)
, Close
,MOV((((1 - MyConst) * Ref(VarMA,-1)) + (MyConst * Close)), 2, s));


{Calculte & Plot Multiple MA's of the Variable Moving Average}
MA1 :=Mov(VarMA, 2,Initial_MA_Type);

MA2 :=Mov(VarMA, 4,Initial_MA_Type);

MA3 :=Mov(VarMA, 6,Initial_MA_Type);

MA4 :=Mov(VarMA, 8,Initial_MA_Type);

MA5 :=Mov(VarMA,10,Initial_MA_Type);

MA6 :=Mov(VarMA,12,Initial_MA_Type);

MA7 :=Mov(VarMA,14,Initial_MA_Type);

MA8 :=Mov(VarMA,16,Initial_MA_Type);

MA9 :=Mov(VarMA,18,Initial_MA_Type);

MA10:=Mov(VarMA,20,Initial_MA_Type);

MA11:=Mov(VarMA,22,Initial_MA_Type);

MA12:=Mov(VarMA,24,Initial_MA_Type);

MA13:=Mov(VarMA,26,Initial_MA_Type);

MA14:=Mov(VarMA,28,Initial_MA_Type);

MA15:=Mov(VarMA,30,Initial_MA_Type);

MA16:=Mov(VarMA,32,Initial_MA_Type);

MA17:=Mov(VarMA,34,Initial_MA_Type);

MA18:=Mov(VarMA,36,Initial_MA_Type);

MA19:=Mov(VarMA,38,Initial_MA_Type);

MA20:=Mov(VarMA,40,Initial_MA_Type);

MA21:=Mov(VarMA,42,Initial_MA_Type);

MA22:=Mov(VarMA,44,Initial_MA_Type);

MA23:=Mov(VarMA,46,Initial_MA_Type);

MA24:=Mov(VarMA,48,Initial_MA_Type);

MA25:=Mov(VarMA,50,Initial_MA_Type);

MA26:=Mov(VarMA,52,Initial_MA_Type);

MA27:=Mov(VarMA,54,Initial_MA_Type);

MA28:=Mov(VarMA,56,Initial_MA_Type);

MA29:=Mov(VarMA,58,Initial_MA_Type);

MA30:=Mov(VarMA,60,Initial_MA_Type);

MA31:=Mov(VarMA,62,Initial_MA_Type);

MA32:=Mov(VarMA,64,Initial_MA_Type);

MA33:=Mov(VarMA,66,Initial_MA_Type);

MA34:=Mov(VarMA,68,Initial_MA_Type);

MA35:=Mov(VarMA,70,Initial_MA_Type);

MA36:=Mov(VarMA,72,Initial_MA_Type);

MA37:=Mov(VarMA,74,Initial_MA_Type);

MA38:=Mov(VarMA,76,Initial_MA_Type);

MA39:=Mov(VarMA,78,Initial_MA_Type);

MA40:=Mov(VarMA,80,Initial_MA_Type);

MA41:=Mov(VarMA,82,Initial_MA_Type);

MA42:=Mov(VarMA,84,Initial_MA_Type);

MA43:=Mov(VarMA,86,Initial_MA_Type);

MA44:=Mov(VarMA,88,Initial_MA_Type);

MA45:=Mov(VarMA,90,Initial_MA_Type);

MA46:=Mov(VarMA,92,Initial_MA_Type);

MA47:=Mov(VarMA,94,Initial_MA_Type);

MA48:=Mov(VarMA,98,Initial_MA_Type);

MA49:=Mov(VarMA,100,Initial_MA_Type);

So this is my request... I will really aprecciate this... thanks in advance, Walter.
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
  #2 (permalink)  
Old 09-04-2007, 03:33 PM
kjhfdgjfhdghdf's Avatar
Senior Member
 
Join Date: Mar 2007
Posts: 686
kjhfdgjfhdghdf is on a distinguished road
Hi walter
What is it you want to have it coded into MT4?
From VT?
__________________
No
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
  #3 (permalink)  
Old 09-04-2007, 04:03 PM
Member
 
Join Date: Jul 2007
Posts: 93
walterw is on a distinguished road
Quote:
Originally Posted by kjhfdgjfhdghdf View Post
Hi walter
What is it you want to have it coded into MT4?
From VT?
I attach the VT indicator... on the above post I had pasted the formula that appears on VT...

I would like if we can make a version for MT4.... cheers Walter.
Attached Files
File Type: zip fantail_vma.zip (2.3 KB, 339 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
  #4 (permalink)  
Old 09-06-2007, 10:17 AM
igorad's Avatar
Senior Member
 
Join Date: Oct 2005
Location: Ukraine
Posts: 963
igorad is on a distinguished road
Hi,
I've developed VarMA_v1 with template.
Please enjoy!


P.S. In the post #8 you can find fixed version of VarMA.
Attached Images
File Type: gif fantail.gif (30.2 KB, 2539 views)
Attached Files
File Type: mq4 VarMA_v1.mq4 (5.0 KB, 497 views)
File Type: tpl fantail.tpl (14.7 KB, 406 views)
__________________
Let's improve trade skills together
http://finance.groups.yahoo.com/group/TrendLaboratory

Last edited by igorad; 09-06-2007 at 03:29 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
  #5 (permalink)  
Old 09-06-2007, 10:23 AM
fxcruiser's Avatar
Senior Member
 
Join Date: Jul 2006
Posts: 981
fxcruiser is on a distinguished road
Quote:
Originally Posted by igorad View Post
Hi,
I've developed VarMA_v1 with template.
Please enjoy!
igorad,

Excellent work on this Fantail VarMA. As usual your great work and contributions to the TSD community are always very much appreciated.



ENJOY!

fxcruiser
__________________
HAMA PAD v1 Original (here since 8/25/06)
Z3 FREEDOM System - Trading the Market Flow and Beyond!
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
  #6 (permalink)  
Old 09-06-2007, 12:07 PM
Junior Member
 
Join Date: Mar 2007
Posts: 1
freex is on a distinguished road
walterw mamy thanks for your work on Traders Laboratory and VMA - great stuff and very impressive

igorad - good work - thanks for making life easier
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
  #7 (permalink)  
Old 09-06-2007, 01:51 PM
Member
 
Join Date: Jul 2007
Posts: 93
walterw is on a distinguished road
Thanks so much Igorad for this great job and contribution ¡¡ certainly the MT4 comunity has received a new gem into their arsenal... once again a warm THANKS ¡¡ ... cheers Walter.
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
  #8 (permalink)  
Old 09-06-2007, 02:15 PM
igorad's Avatar
Senior Member
 
Join Date: Oct 2005
Location: Ukraine
Posts: 963
igorad is on a distinguished road
Hi,
I'm sorry but I've found small bug in the code of VarMA.
Please download script and template again.
Attached Files
File Type: mq4 VarMA_v1.1.mq4 (5.0 KB, 760 views)
File Type: tpl fantail_1.tpl (14.8 KB, 642 views)
__________________
Let's improve trade skills together
http://finance.groups.yahoo.com/group/TrendLaboratory
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
  #9 (permalink)  
Old 09-06-2007, 05:25 PM
Member
 
Join Date: Jul 2007
Posts: 93
walterw is on a distinguished road
Hi Igorad, for some reason the second version doesnt load on my chart...

I attach a chart comparing the first version with VT... is there a way to get the horizontal efect more similar ? thanks for your great efforts ¡¡... cheers
Walter.

Attached Images
File Type: jpg MT4 vs VT.jpg (23.1 KB, 4078 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
  #10 (permalink)  
Old 09-06-2007, 07:59 PM
igorad's Avatar
Senior Member
 
Join Date: Oct 2005
Location: Ukraine
Posts: 963
igorad is on a distinguished road
Quote:
Originally Posted by walterw View Post
Hi Igorad, for some reason the second version doesnt load on my chart...

I attach a chart comparing the first version with VT... is there a way to get the horizontal efect more similar ? thanks for your great efforts ¡¡... cheers
Walter.

Sorry but I have not any problem with fixed VarMA.
Do you can attach MA without rainbow template?
Attached Images
File Type: gif fantail_1.gif (27.3 KB, 2303 views)
__________________
Let's improve trade skills together
http://finance.groups.yahoo.com/group/TrendLaboratory
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
rainbow, fantail vma, high low, vma indicator


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


All times are GMT. The time now is 07:02 AM.



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