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

HiLo modified for Amibroker (AFL)
Flower
over 13 years ago
Amibroker (AFL)

Rating:
3 / 5 (Votes 4)
Tags:
stop loss, kpl, trading system, amibroker

Trend-following “swing” system. Similar to kpl,but more flexible.
It’s better be used as stop-loss, or take profit.

The author of a code is OOO from Amisite.ru

Screenshots

Similar Indicators / Formulas

Ensign Volatility Stop
Submitted by kaiji about 14 years ago
ATR Stop Loss System
Submitted by esnataraj almost 14 years ago
Chandelier
Submitted by tallulah over 13 years ago
KPL System
Submitted by na1982 about 14 years ago
Visual ATR Stop Loss System
Submitted by siivaramm over 13 years ago
trailing sl
Submitted by rsuresh13 almost 13 years ago

Indicator / Formula

Copy & Paste Friendly
_SECTION_BEGIN("HiLo modified");
K = Param("K",3,1,25,1,0);
per = Param("per",6,1,10,1);
filt = ATR(per)*k ; 

Lo = 0; 
Hi = H + 2*filt; 

for(i = 2; i < BarCount; i ++) 
{ 
   if(i == 2) trend[1] = 1; 


   if(trend[i-1] == 1) 
   { 
      LoN = C[i] - filt[i]; 
      if(LoN > Lo[i-1]) 
      { 
         Lo[i] = LoN; 
      } 
      else 
      { 
         Lo[i] = Lo[i-1]; 
      } 
      if(L[i] < Lo[i])    
      { 
         trend[i] = 0; 
         Hi[i] = L[i] + filt[i]; 
      } 
      else trend[i] = 1; 
   } 
   if(trend[i-1] == 0) 
   { 
      HiN = C[i] + filt[i]; 
      if(HiN < Hi[i-1]) 
      { 
         Hi[i] = HiN; 
      } 
      else 
      { 
         Hi[i] = Hi[i-1]; 
      } 
      if(H[i] > Hi[i]) 
      { 
         trend[i] = 1; 
         Lo[i] = H[i] - filt[i]; 
      } 
      else trend[i] = 0; 
   } 
} 

Hi = IIf(!trend, Hi, Null); 
Lo = IIf(trend, Lo, Null); 

UpDw=Flip( Hi, Lo );
Color = IIf(UpDw, colorRed, colorBlue); 

HiLoLine = IIf(UpDw, Hi, Lo); 


Plot(HiLoLine, "Hi Lo Line", Color, styleStaircase); 
_SECTION_END();

1 comments

1. mohanjamkhekdar

GOOD ,,,,,,

Leave Comment

Please login here to leave a comment.

Back