Skip to main content

Mountains for Amibroker (AFL)

isaigut almost 11 years ago Amibroker (AFL)

  • Rating:
    3 / 5 (Votes 6)
  • Tags:
    oscillator, amibroker

When “Mountain” is =< 0 is a good opportunity to buy. Works better on weekly charts

Indicator / Formula

Copy & Paste Friendly
_SECTION_BEGIN("Mountains");

SetChartOptions(3,chartHideQuoteMarker);
M = Param("Average", 14, 2, 200, 1);

AllPrice = (H+L+O+C)/4;
BB1 = (BBandTop(AllPrice,25,2)+BBandBot(AllPrice,25,2))/2;
BB2 = BBandTop(AllPrice,25,2)-BBandBot(AllPrice,25,2);
BB3 = ((AllPrice-BB1)/BB2)*100;
RSI1 = RSIa(AllPrice,14);
STOCHF = ((AllPrice-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
STOC = MA(STOCHF,3);
MOUNTAIN = (RSI1+BB3+(STOC/3))/2;

Buy = MOUNTAIN <= 0;
WR = -100 * ( HHV( H, 100 ) - C )/( HHV( H, 100 ) - LLV( L, 100 ) ); 

Filter = Buy ;
AddColumn( C, "Precio" );
AddColumn( WR, " Willams " );
AddColumn( V, "          vol          " );

Plot(0,"",ColorRGB(0,0,0),styleLine|styleNoLabel);
Plot(MOUNTAIN,"Mountain",ColorRGB(165,42,42),styleLine|styleNoLabel);
PlotOHLC(MOUNTAIN,MOUNTAIN,0,0,"",ColorRGB(165,42,42),styleCloud|styleNoLabel);
_SECTION_END();

8 comments

1. val2004
almost 11 years ago

VERY GOOD AFL

ARE YOU ABLE TO CODE THIS ONE

https://www.tradingview.com/script/ngr0qRmw-CM-Laguerre-PPO-PercentileRank-Mkt-Tops-Bottoms/ ?

3. bsedoha
almost 11 years ago

Thanks for sharing .
Simple and effective.

Regards,

BSEDOHA

almost 11 years ago

HI SIR

CAN U ADD EXPLORATION FOR THE ABOVE CODE TO EXPLORE ALL STOCKS MEETING THE ABOVE VALUE <= 0 SO AS TO PICK UP RIGHT STOCKS.

REGARDS
RAVI

almost 11 years ago

HI
SIR
EXCELLENT. THANKS FOR THE ADMINISTARTOR TOO FOR ENABLING THE REQUEST.
MR. ISAIGUT IF U NEVER MIND WHY YOU OMITTED SELL CONDITION?

WHY CANT YOU ADD ALERT WITH SOUND ?
WHEN THE VALUE IS NEGATIVE THE COLOUR SHOULD BE GREEN AND ABOVE ZERO THE PRESENT COLOR IS OKAY.

REGARDS
RAVI
QATAR

Leave Comment

Please login here to leave a comment.