Trend Trading -guess what it contains

VJAY

Well-Known Member
#11
kya hua? ... Why u pissed off?
Is it due to my post requesting to post AFL?:p
If so am sorry ford...actually am dumb in afl's ...thats why I asked....regarding testing I never trade any method which I not test myself :)
 
#13
VIJAY

It has nothing to do with you.
you are a good person, so you said sorry.
Be happy. There are very few good people in this world.

The afl belonged a friend of mine-he is not forum member- -I asked him permission to post it here. he simply refused.he said first it must be posted on wisestocktrader.
Anyways,you will get it.
please wait some time.
sorry & regards
 
#14
hi VIJAY

here it is

test it minimum 30 times to confirm the rules work for you.
tHE KEY IS TRADE WITH MAIN TREND-LOW GMMA GROUP,AND TRADE WITH INTERMEDIATE TREND-EMA20-30 RIBBON IN COLOR and finally take a long trade on 4 hour tf after hma5 goes below hma12 and rises above hma12-called a V-hook.No trades to be entered aftr hma12 turns sloping down. Trend confirmation comes from LONG MACD(30,60,30) TO BE kept in lower chart.when macd crosses above signal line-long zone begins. Dont forget lifeline of trading-your stoploss line-draw it at a point where ema20-ema30 ribbon crosses gmma slow group highest point and measure RISK from there to LONG entry candle and project an equal target from ENTRY. Just aim for 1:1 RR.Remember be fast to move stop to breakeven once price moves above it .


HTML:
//http://www.wisestocktrader.com/indicators/3838-trendtradingbp-4hourly


//trendtrading bp h4 timeframe
//coder:courtesy:RameshVelidi, email:[email protected]
//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");

//note you can use HMA5 & HMA21 also if it suits you.
 
Last edited:

VJAY

Well-Known Member
#15
hi VIJAY

here it is

test it minimum 30 times to confirm the rules work for you.
tHE KEY IS TRADE WITH MAIN TREND-LOW GMMA GROUP,AND TRADE WITH INTERMEDIATE TREND-EMA20-30 RIBBON IN COLOR and finally take a long trade on 4 hour tf after hma5 goes below hma12 and rises above hma12-called a V-hook.No trades to be entered aftr hma12 turns sloping down. Trend confirmation comes from LONG MACD(30,60,30) TO BE kept in lower chart.when macd crosses above signal line-long zone begins. Dont forget lifeline of trading-your stoploss line-draw it at a point where ema20-ema30 ribbon crosses gmma slow group highest point and measure RISK from there to LONG entry candle and project an equal target from ENTRY. Just aim for 1:1 RR.Remember be fast to move stop to breakeven once price moves above it .


HTML:
//http://www.wisestocktrader.com/indicators/3838-trendtradingbp-4hourly


//trendtrading bp h4 timeframe
//coder:courtesy:RameshVelidi, email:[email protected]
//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");

//note you can use HMA5 & HMA21 also if it suits you.
Thanks Ford ....sharing the afl.:clap:.I try /test it in daily frame ...and let you know the results ...:)
 

mastermind007

Well-Known Member
#16
Thanks Ford ....sharing the afl.:clap:.I try /test it in daily frame ...and let you know the results ...:)
Also let us know how much my approximation was correct?
 

VJAY

Well-Known Member
#18
VJAY....waiting for ur result...[/
...am still not started it....i can do it only in weekends....
but weekends always family grabbing it...as i trade from 9 to 11.00pm
:) will defenitly share once i done it:cool:
 
Last edited:

KelvinHand

Well-Known Member
#20
Hi
Getting an error in plot(hma
Can somebody please help to rectify it
Three choices for you:

1. if you had amibroker 5.6 OR you can click help then search for "HMA" in the amibroker. if HMA appear in the search, remark or delete away the hma function in the script.

OR

2. straight away remark away the function and see whether it solve your problem.

3. Rename the HMA() function to iHma() and all call to HMA() changed to iHMA().
 

Similar threads