Australian (ASX) Stock Market Forum

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?
 
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?
 
Top