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

Trend Trading BP - 4 Hourly for Amibroker (AFL)
ford7k
over 11 years ago
Amibroker (AFL)

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

This code developed by Ramesh Velidi(e mail: ramesh151@yahoo.com).It is posted here based on his permission.

The codes GMMA slow group and Ema20 & Ema30-Consisting a trend ribbon,and HullMoving Averages 5 &12 periods . Enter long if ema20-30 ribbon is gren and if it is above GMMA group and when hma5 turns down below hma12 and rises up first time,with slope of hma12 line steady up. exit when hma5 turns below hma12 and next exit if hma5 already below hma12 and hma12 turns downwards sloping.

DO OPPOSITE FOR SHORT TRADES.

Remember trend sequence
uptrend=gmma group sloping up,ema20-ema30 ribbon colorGreen,SLOPING UP,HMA5 moves down below HMA12 and rises up-enter trade.once HMA12 starts sloping downwards,exit long trades immediately.
downtrend=GMMA group sloping down,ema20-ema30 ribbon color red,sloping down and below gmma group,HMA5 &HMA12 are below ema20-30 ribbon, and HMA5 moves above HMA12 and starts move down

Screenshots

Similar Indicators / Formulas

Hull Moving Average (HMA)
Submitted by kaiji almost 15 years ago
Beauty
Submitted by sbtc555 over 11 years ago
Smoothed MA (SSMA)
Submitted by kelvinhand over 11 years ago
Trend Scalping System
Submitted by esnataraj over 14 years ago
TD DeMarker Plane
Submitted by extremist over 13 years ago
Guppy GMMA with "derived" Indicator
Submitted by dalmas over 14 years ago

Indicator / Formula

Copy & Paste Friendly
//trendtrading bp h4 timeframe
//coder:courtesy:RameshVelidi, email:ramesh151@yahoo.com
//gmma BASED simple Code USES HULL MOVING AVERAGE 5 AND 12
//AIMS SHORT QUICK TRADES on H4
grid_day = IIf(Day()!=Ref(Day(),-1),1,0);  
Plot(grid_day,"",colorOrange,styleHistogram|styleDashed|styleNoLabel|styleOwnScale);
//==========================
SetChartBkColor(64);
SetChartOptions(0, chartShowArrows | chartShowDates);

Plot(C,"close",IIf(Close > Open,colorWhite,colorRed),styleCandle);

FastMAColor = ParamColor("Fast Group MA Color", colorGreen);
SlowMAColor = ParamColor("Slow Group MA Color", colorRed);

EMA20=EMA(C,20); EMA30 =EMA(C,30);

Plot(EMA(C, 20), "", colorCustom12, styleThick);
Plot(EMA(C, 30), " ", colorYellow, styleThick);
Plot(EMA(C, 35), " ", SlowMAColor, styleLine);
Plot(EMA(C, 40), " ", SlowMAColor, styleLine);
Plot(EMA(C, 45), " ", SlowMAColor, styleLine);
Plot(EMA(C, 50), " ", SlowMAColor, styleLine);
Plot(EMA(C, 60), " ", SlowMAColor, styleLine);

//==============================================
//HMA5  HULL MOVING AVERAGE
array = Close;
period= 5;
function HMA_AFL( array, period ) 
{ 
 fast = WMA( array, period / 2 ); 
 slow = WMA( array, period ); 
   
 return WMA( 2 * fast - slow, sqrt( period ) ); 
} 
Plot(HMA(Close,5),"HMA(C,5)",colorBrightGreen,styleThick);


_SECTION_END();

//=============================================================



HMA12 = HMA(C,12);
E2030COLOR = IIf(EMA20>EMA30,colorDarkGreen,colorDarkRed);
PlotOHLC(EMA20,EMA20,EMA30,EMA30," ",E2030COLOR,styleCloud);


//HMA12  HULL MOVING AVERAGE
array = Close;
period1= 12;

{ 
 fast = WMA( array, period1 / 2 ); 
 slow = WMA( array, period1 ); 
   

 HMA12 = WMA( 2 * fast - slow, sqrt( period1 ) ); 
} 
Plot(HMA(Close,12),"HMA(C,12)",colorRed,styleThick);
_SECTION_END();

_SECTION_BEGIN("HMA  HULL MOVING AVERAGE1");

3 comments

1. kv_maligi

good

2. ami4me

good job bro

3. Ravi

Very good job.
Thx and keep it up.

Leave Comment

Please login here to leave a comment.

Back