Permission denied!

Stock Portfolio Organizer

The ultimate porfolio management solution.

Shares, Margin, CFD's, Futures and Forex
EOD and Realtime
Dividends and Trust Distributions
And Much More ....
For Portfolio Manager Click Here

WiseTrader Toolbox

#1 Selling Amibroker Plugin featuring:

Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
Find Out More Here

TMA CrossOver for Amibroker (AFL)

Rating:
3 / 5 (Votes 3)
Tags:
trading system, amibroker, moving average

This is a TMA crossover strategy.Use the Time Frame 15 min.Combined With MACD It Will Generate good Signal.

Indicator / Formula

Copy & Paste Friendly
_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); 
_SECTION_END();

_SECTION_BEGIN("TMA");
P = ParamField("Price field",-1);
period = Param("Periods", 15, 2, 200, 1, 10 );
if ( (period % 2) > 0)
{ // odd
Coef1=(period+1)/2;
Coef2=Coef1;
}
else
{ //Even 
Coef1=(period/2)+1;
Coef2=period/2;
}
TriangularMA=MA(MA(C,Coef1),Coef2);
Plot(TriangularMA, _DEFAULT_NAME() ,ParamColor( "Color", colorCycle ));
_SECTION_END();

_SECTION_BEGIN("TMA1");
P = ParamField("Price field",-1);
period = Param("Periods", 15, 2, 200, 1, 10 );
if ( (period % 2) > 0)
{ // odd
Coef1=(period+1)/2;
Coef2=Coef1;
}
else
{ //Even 
Coef1=(period/2)+1;
Coef2=period/2;
}
TriangularMA1=MA(MA(C,Coef1),Coef2);
Plot(TriangularMA1, _DEFAULT_NAME() ,ParamColor( "Color", colorCycle ));
_SECTION_END();

_SECTION_BEGIN("SIGNAL");


Buy  = Cross (TriangularMA,TriangularMA1);
Sell = Cross (TriangularMA1,TriangularMA);

shape = Buy * shapeUpArrow + Sell * shapeDownArrow;
PlotShapes( shape, IIf( Buy, colorWhite, colorYellow ),0, IIf( Buy, Low, High ) );

_SECTION_END();

1 comments

1. kazeezdeen

Can u pls provide the SMA 30 crossover with TMA 20 AFL

Leave Comment

Please login here to leave a comment.

Back