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

TEMA_Regression Crossover for Amibroker (AFL)

Rating:
2 / 5 (Votes 4)
Tags:
amibroker, exploration

This is a crossover trading system with Buy signals when 50 p TEMA crosses above 100 p Regression and Sell signal when TEMA crosses below Regression. It can be used for exploration and back testing.

Similar Indicators / Formulas

GapUp and Bearish Close (Reversal) _Daily
Submitted by indraji2001 almost 10 years ago
General Market Exploration by XeL
Submitted by xel over 11 years ago
Scanning Gap Up and Gap Down
Submitted by vinodsk over 10 years ago
Deel - Average Dollar Price Volatility
Submitted by kaiji over 14 years ago
Vol Peak 5 Day [Scan only]
Submitted by lusmomoney over 10 years ago
%Change Exploration
Submitted by shshingala over 10 years ago

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", colorWhite ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); 
_SECTION_END();

_SECTION_BEGIN("Linear Regression");
P1 = ParamField("Price field",-1);
Periods1 = Param("Periods", 100, 2, 300, 1, 10 );
Plot( LinearReg( P1, Periods1 ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") ); 
_SECTION_END();

_SECTION_BEGIN("MA");
P2 = ParamField("Price field",-1);
Periods2 = Param("Periods", 50, 2, 300, 1, 10 );
Plot( TEMA( P2, Periods2 ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") ); 
_SECTION_END();

Buy= Cross(TEMA( P2, Periods2 ), LinearReg( P1, Periods1 ));
Sell=Cross(LinearReg( P1, Periods1 ), TEMA( P2, Periods2 ) );

Buy=ExRem(Buy,Sell);
Sell=ExRem(Sell,Buy);

Filter=Buy OR Sell; 

AddColumn(IIf(Buy,BuyPrice,Null)," Buy Signal ", 6.2,1.2,colorGreen); 
AddColumn(IIf(Sell,SellPrice,Null)," Sell Signal ",6.2,1.2,colorOrange); 

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

0 comments

Leave Comment

Please login here to leave a comment.

Back