Forex



Go Back   Forex Trading > Downloads > Expert Advisors - 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
  #1 (permalink)  
Old 08-15-2006, 07:47 PM
Junior Member
 
Join Date: Aug 2006
Posts: 5
M-E-C is on a distinguished road
Help for convert from VT to MQL4

Can anyone help me to convert this code in VT langauge to an EA and custom indicator in MQL4 langauge

Code:
 UpCandle:= Close > Open;
DownCandle:= Open > Close;
PrevBarUp:= Ref(C,-1)>Ref(O,-1);
PrevBarDown:= Ref(O,-1)>Ref(C,-1);
PrevBarUp2:= Ref(C,-2)>Ref(O,-2);
PrevBarDown2:= Ref(O,-2)>Ref(C,-2);
PrevBody:= ABS(Ref((O-C),-1));
MarubozuUP:= H=C AND L=O;
MarubozuDown:= H=O AND L=C;

BullEngulf:= O < Ref(Open, -1)
AND O < Ref(Close, -1)
AND C > Ref(Close, -1)
AND C > Ref(Open, -1)
AND Abs(Ref((C+O)/2,-1))<Ref(Mov(C,10,E),-1);

BearEngulf:=  O > Ref(Open, -1)
AND O > Ref(Close, -1)
AND C < Ref(Close, -1)
AND C < Ref(Open, -1)
AND Abs(Ref((C+O)/2,-1))>Ref(Mov(C,10,E),-1);

DojiorFly:= O = C;

Hammer1:= H = Open AND (Close - Low >= 2*(Open-Close)) AND Abs(O-C) <= 0.0005;
Hammer2:= H = Close AND (Open - Low >= 2*(Close-Open)) AND Abs(O-C) <= 0.0005;

Gravestone1:= L = Open AND (High-Close >= 2* (Close-Open)) AND Abs(O-C) <= 0.0005;
Gravestone2:= L = Close AND (High-Open >= 2* (Open-Close)) AND Abs(O-C) <= 0.0005;

DarkCloudCover:= DownCandle
AND PrevBarUp
AND O > Ref(C,-1)
AND C < Ref((C+O)/2,-1)
AND C > Ref(O,-1);

PiercingLine:= UpCandle
AND PrevBardown
AND O < Ref(C,-1)
AND C > Ref((C+O)/2,-1)
AND C < Ref(O,-1);

EveningStar:=
DownCandle
{Todays candle is Down}
AND Ref(C,-2)>Ref(O,-2)
{Candle 2 periods ago is an Up candle}
AND (Ref(C,-1)>Ref(C,-2))
{There is a Gap between the middle and one before candle}
AND (Ref(O,-1)>Ref(C,-2))
{There is a Gap between the middle and one before candle}
AND C > Ref(O,-2) AND C < Abs(Ref((O+C)/2,-2))
{Close of todays candle is within the lower half of the candle 2 days ago}
AND Prevbody < Abs(O-C)
{The Previous body of the candle is shorter than the current one}
AND Prevbody < Abs(Ref((O-C),-2));
{The Previous body of the candle is shorter than the one before also}

MorningStar:=
UpCandle
{Todays candle is Down}
AND Ref(O,-2)>Ref(C,-2)
{Candle 2 periods ago is an Down candle}
AND (Ref(C,-1)<Ref(C,-2))
{There is a Gap between middle and one before candle}
AND (Ref(O,-1)<Ref(C,-2))
{There is a Gap between middle and one before candle}
AND C < Ref(O,-2) AND C > Abs(Ref((O+C)/2,-2))
{Close of todays candle is within the Top Half of the candle 2 days ago}
AND Prevbody < Abs(O-C)
{The Previous body of the candle is shorter than the current one}
AND Prevbody < Abs(Ref((O-C),-2));
{The Previous body of the candle is shorter than the one before also}

TweezerTops:= High=Ref(H,-1) AND Ref(H,+1)<H;
{High of current candle = High of previous candle and next candle is going down}

TweezerBottoms:= Low=Ref(L,-1) AND Ref(L,+1)>L;
{Low of current candle = Low of previous candle and next candle is going up}

ConcealingBabyBull:=
MarubozuDown
{Just a body exists - No shadows}
AND Ref(MarubozuDown,-3)
{3rd Candle before was just a body and Down}
AND Ref(MarubozuDown,-2)
{2nd Candle before was just a body and Down}
AND PrevBarDown
{Previous Bar is down}
AND Ref(O,-1)<Ref(C,-2)
{Previous Body Gaps down from the one before}
AND Ref(H,-1)>Ref(C,-2)
{Its shadow rises above the previous bodies Close}
AND Ref(H,-1)<Ref(O,-2)
{But does not exceed the Open}
AND O>Ref(H,-1) AND C<Ref(C,-1);
{Current Candle engulfs the previous one}

KickingBull:=
Ref(MarubozuDown,-1)
{Previous Candle is a Down Body only}
AND MarubozuUP
{Current Candle is Up and is Body only}
AND Ref(O,-1)<O;
{Current Candle Gaps Up from previous Down Candle}
with thanks
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 08-18-2006, 03:12 AM
Junior Member
 
Join Date: Aug 2006
Posts: 5
M-E-C is on a distinguished road
waitting
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 08-20-2006, 02:01 AM
Member
 
Join Date: Dec 2005
Posts: 69
richx7 is on a distinguished road
What is the VT file(s) you are using - please include here in a zip,
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 08-23-2006, 04:43 PM
Junior Member
 
Join Date: Aug 2006
Posts: 5
M-E-C is on a distinguished road
Quote:
Originally Posted by richx7
What is the VT file(s) you are using - please include here in a zip,
that is

thank you
Attached Files
File Type: zip Candlestick Patterns v1.zip (2.9 KB, 83 views)

Last edited by M-E-C; 08-23-2006 at 04:47 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 08-23-2006, 10:45 PM
Member
 
Join Date: Dec 2005
Posts: 69
richx7 is on a distinguished road
The VT file is a trading system that uses candles and bull/bear indicators but doesn't trade. It is made for JPY only and should be an indicator not a TS.
Here is a bull/bear indicator along with candleworks EA to look at plus a link to various candle.mq4s that may help.

Candles
Attached Files
File Type: mq4 BullsBearsEyes.mq4 (2.9 KB, 87 views)
File Type: mq4 Candles Works.mq4 (6.9 KB, 89 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
  #6 (permalink)  
Old 08-24-2006, 12:21 AM
Junior Member
 
Join Date: Aug 2006
Posts: 5
M-E-C is on a distinguished road
Quote:
Originally Posted by richx7
The VT file is a trading system that uses candles and bull/bear indicators but doesn't trade. It is made for JPY only and should be an indicator not a TS.
Here is a bull/bear indicator along with candleworks EA to look at plus a link to various candle.mq4s that may help.

Candles
thank you

i well try 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
  #7 (permalink)  
Old 08-24-2006, 01:43 AM
Junior Member
 
Join Date: Aug 2006
Posts: 5
M-E-C is on a distinguished road
another one please

mr richx7

cold you help me in this file else

regards sir
Attached Files
File Type: zip Macd_Stoh_Divergence.zip (2.3 KB, 53 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
  #8 (permalink)  
Old 08-24-2006, 04:31 AM
Member
 
Join Date: Dec 2005
Posts: 69
richx7 is on a distinguished road
Quote:
could you help me in this file else - Macd_Stoh_Divergence
This is a trading system (vttrs) that is suppose to give bull/bear signals using MACD and Stochastic but doesn't look like it works. There is no display that works and it does no trading.
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 11-27-2006, 04:10 PM
Junior Member
 
Join Date: Nov 2006
Posts: 5
Romandan is on a distinguished road
Hello
the Candle works (MQ4) is not working???why???
the Macd_Stoh_Divergence(VTTRS) is working and performing wonderfull ?? all need to do is to chose Stoch or Macd instead of NONE to work>>>

i hope that any body can help to build the same files with MQ4
Regarding
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 12-04-2006, 08:09 AM
Junior Member
 
Join Date: Nov 2006
Posts: 5
Romandan is on a distinguished road
ANY Reply??????????????????????
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
vttrs

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
Convert this into MT3 for me PLEASE scott TTM Indicators - Metatrader 4 6 08-10-2006 09:02 PM


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



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