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

Timeframe crossover for Amibroker (AFL)

Rating:
4 / 5 (Votes 1)
Tags:
Amibroker Lomg term to short term

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
_SECTION_BEGIN(“Fast MA”);
SetChartOptions(2,chartShowDates);
Plot(C,"",1,64);
PP = 0;
WDH = ParamList(“TF”, “Hourly,Daily,Weekly,Minutely” );
if( WDH == “Daily” ) PP= inDaily;
if( WDH == “Weekly” ) PP= inWeekly;
if( WDH == “Hourly” ) PP= inHourly;
if( WDH == “Minutely” ) PP= in15Minute;
TimeFrameSet(PP);
P=ParamField(“Price”);
Per=Param(“MA Period”,2,1,900,1);
x=TEMA;
TimeFrameRestore();
aa=TimeFrameExpand(x,PP);
Plot(aa,"",colorBrightGreen,styleLine);
_SECTION_END();

_SECTION_BEGIN(“Slow MA”);
SetChartOptions(2,chartShowDates);
//Plot(C,"",1,64);
PPS = 0;
WDH = ParamList(“TF”, “Hourly,Daily,Weekly,Minutely” );
if( WDH == “Daily” ) PPS= inDaily;
if( WDH == “Weekly” ) PPS= inWeekly;
if( WDH == “Hourly” ) PPS= inHourly;
if( WDH == “Minutely” ) PPS= in15Minute;
TimeFrameSet(PPS);
P=ParamField(“Average”);
Per=Param(“MA Period”,3,1,900,1);
x=TEMA;
TimeFrameRestore();
y=TimeFrameExpand(x,PPS);
Plot(y,"",colorCustom5,styleLine);
_SECTION_END();

Buy= Cross (aa,y);
Short= Cross (y,aa);
Buy=ExRem(Buy,Short);
Short=ExRem(Short,Buy);
PlotShapes(IIf(Buy, shapeUpArrow, shapeNone),colorWhite, 0,L, Offset=-45);
PlotShapes(IIf(Short, shapeDownArrow, shapeNone),colorWhite, 0,H, Offset=-45);
Filter=Buy OR Short;

_SECTION_BEGIN(“Plot Text in Chart”);
rt=AmiTradingSA();
//Plot(Close,"Price EMA crossover “,color=colorGreen,style=styleCandle);
GfxSelectFont(”Times New Roman", 13, 250, True );
GfxSetBkMode( colorWhite );
GfxSetTextColor( colorYellow );
GfxTextOut(“Close Price Timeframe Crossover :”+C, 500 , 25 );
_SECTION_END();

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//next bar
SECTION_BEGIN(“Fill Color”);
m = aa;
s = y;
Cloudswitch = ParamToggle(“Fill Color”,“On,Off”);
dynamic_color = IIf( aa > y , ParamColor(“Down Color”, colorBrightGreen ), ParamColor(“Up Color”, colorRose ));
PlotOHLC( IIf(Cloudswitch,-1e10,m),IIf(Cloudswitch,-1e10,m),IIf(Cloudswitch,-1e10,s),IIf(Cloudswitch,-1e10,m), "", dynamic
color, styleNoLabel | styleCloud );
_SECTION_END();
////
GraphXSpace=Param(“GraphXSpace”,45,-100,300,1);
////////////////////////

Screenshots

You cannot view the code for the following reasons:
  • The indicator has not yet been approved by the Administrator.

1 comments

1. Anilkgupta7

Best for long term

Leave Comment

Please login here to leave a comment.

Back