Jump to content

Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.

  • Welcome Guests

    Welcome. You are currently viewing the forum as a guest which does not give you access to all the great features at Traders Laboratory such as interacting with members, access to all forums, downloading attachments, and eligibility to win free giveaways. Registration is fast, simple and absolutely free. Create a FREE Traders Laboratory account here.

AntaniTheBest™

From Metastock to Easylanguage

Recommended Posts

Hi ,

there's someone that can *translate* this formula MS in Easylanguage ?

 

*************************************************

D:=Input("Day",1,31,1);

M:=Input("Month",1,12,1);

Y:=Input("Year",1900,2100,2009);

H1:=Input("Shift",-100,100,1);

WA2:=Input("N Cycle",0,10,3);

{TR:=Input("Trend",-1,4,1);}

 

wavelength:=Input("LenghtCycle",1,9999,16);

{bars}

start:=Cum((DayOfMonth()>=D AND Month()=M AND Year()=Y) OR (Month()>M AND Year()=Y) OR Year()>Y)=1;

start:=LastValue(ValueWhen(1,start,Cum(1 )));

 

{x axis values}

x:=360/wavelength * (Cum(1)-start);

 

{sine waves}

phase:=-90;

w1:=Sin(8*x+phase);

w2:=2*Sin(4*x+phase);

w3:=wa2*Sin(2*x+phase);

w4:=4*Sin(x+phase);

 

**************************************

 

Tks ;-)

 

Roberto

Share this post


Link to post
Share on other sites

HI Antani,

 

I don't use Metastock, As far as I Understood here is the code for Tradestation...

 

Input:
StaDate(1090101),
H1(1), {"Shift"}
WA2(3),{"N Cycle"}
wavelength(16){"Length Cycle"};
{bars}
Var:
X(0),
w1(0),
w2(0),
w3(0),
w4(0),
phase(0),
Daycount(0);

If Date >= StaDate then Daycount = DayCount + 1;

{x axis values}
x = 360/wavelength * (Daycount);

{sine waves}
phase = -90;
w1 = Sine(8*x+phase);
w2 = 2*Sine(4*x+phase);
w3 = wa2*Sine(2*x+phase);
w4 = 4*Sine(x+phase);

Plot1(w1,"w1");
Plot2(w2,"w2");
Plot3(w3,"w3");
Plot4(w4,"w4");

 

Please Let us know if that Looks alike as in Metastock.

 

EasyTrader_I.

Edited by EasyTrader_I
Daycount corrected

Share this post


Link to post
Share on other sites

anybody please write Metastock formula for tripple crossover on Exit swing call indicator with swing trade2 and swing trade3 as u get from RMO trade model in metastock

 

i have placed both swing trade2 and swing trade3 indiocators on EXIT SWING CALL

 

WHEN THE THREE INDICATORS MEETING AT A POINT THEN THEY ARE SHOWING GOOD STRENGTH

 

PLEASE REPLY TO THIS QUERY

IT MAY BE VERY USEFULL TO ALL METASTOCK USERS

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.