This is a mobile optimized page that loads fast, if you want to load the real page, click this text.

Equity curve

xxx

Joined
21 October 2016
Posts
31
Reactions
0
Hello,

I'm unsing rotational trading and made already an optimization.
My next step is to use the equity curve.
I would like to cut my equity curve with the moving average MA. Could someone help me with this?
How should I start programming this?
 

I'll answer if you ask on the Amibroker Yahoo Groups board.
 
thank you!

Hello,
so far my code is like that:

e = Equity();
EquityMAlength = Optimize ( "EquityMAlength", 3,1,12,2);
EquityMA = MA ( e, EquityMAlength);
Pass = IIf (e >= EquityMA, 1,0);

Filter = 1;
PortEquity = Foreign("~~~Equity","C");
AddColumn ( PortEquity, "Close", 1.4);
AddTextColumn(Full Name(), "Full Name");

Now I would like to add a code that I just buy when my equity curve is over the MA curve.
Could anybody help me with this?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more...