Stock Portfolio Organizer
The ultimate porfolio management solution.
WiseTrader Toolbox
#1 Selling Amibroker Plugin featuring:
HiLo modified for Amibroker (AFL)
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
Indicator / Formula
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | _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
Leave Comment
Please login here to leave a comment.
Back
GOOD ,,,,,,