Jump to content

Recommended Posts

Posted

bellow is a code in MC esasy Language for Laguerre RSI

I like to traslade to MC.net any help ???

 

-----------------

Inputs: gamma(.5);

Vars: L0(0),

L1(0),

L2(0),

L3(0),

CU(0),

CD(0),

RSI(0);

L0 = (1 - gamma)*Close + gamma*L0[1];

L1 = - gamma *L0 + L0[1] + gamma *L1[1];

L2 = - gamma *L1 + L1[1] + gamma *L2[1];

L3 = - gamma *L2 + L2[1] + gamma *L3[1];

CU = 0;

CD = 0;

If L0 >= L1 then CU = L0 - L1 Else CD = L1 - L0;

If L1 >= L2 then CU = CU + L1 - L2 Else CD = CD + L2 - L1;

If L2 >= L3 then CU = CU + L2 - L3 Else CD = CD + L3 - L2;

If CU + CD <> 0 then RSI = CU / (CU + CD);

Plot1(RSI, "RSI");

Plot2(.9);

Plot3(.1);

-------------------------------------

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...