Stock Portfolio Organizer
The ultimate porfolio management solution.
WiseTrader Toolbox
#1 Selling Amibroker Plugin featuring:
3 line break for Amibroker (AFL)
Three Line Break charts display a series of vertical boxes (“lines”) that are based on changes in prices. As with Kagi, Point & Figure, and Renko charts, Three Line Break charts ignore the passage of time.
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 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 | //------------------------------------------------------------------------------ GraphXSpace = 7; numline = Param ( "Break" , 2, 2, 10, 1 ); j = 0; Line[j] = C [0]; Op[j] = C [0]; direction = 0; up = 0; // count up lines down = 0; // count down lines Count = 1; // count lines for ( i = 1; i < BarCount ; i++ ) { if ( direction[j] == 0 ) // continues down { if ( C [i] < Line[j] ) { j++; direction[j] = 0; Line[j] = C [i]; Op[j] = Line[j-1]; down++; up = 0; Count++; } else { if ( Count == 1 && C [i] > OP[j] ) // I-st reverse { j++; direction[j] = 1; Line[j] = C [i]; Op[j] = Op[j-1]; up++; down = 0; Count++; } if ( Count > 1 && down == 1 && C [i] > Line[j-1] ) // reverse after 1 down line { j++; direction[j] = 1; Line[j] = C [i]; Op[j] = Op[j-1]; up++; down = 0; Count++; } if ( Count > 1 && down > 1 && down < numline && C [i] > Op[j-1] ) //simple reverse { j++; direction[j] = 1; Line[j] = C [i]; Op[j] = Op[j-1]; up++; down = 0; Count++; } if ( down >= numline && C [i] > Op[j-( numline -1 )] ) // white trunaround line { j++; direction[j] = 1; Line[j] = C [i]; Op[j] = Op[j-1]; up++; down = 0; Count++; } } } else // continues up { if ( C [i] > Line[j] ) { j++; direction[j] = 1; Line[j] = C [i]; op[j] = Line[j-1]; up++; down = 0; Count++; } else { if ( Count == 1 && C [i] < OP[j] ) // I-st reverse { j++; direction[j] = 0; Line[j] = C [i]; Op[j] = Op[j-1]; down++; up = 0; Count++; } if ( Count > 1 && up == 1 && C [i] < Line[j-1] ) // reverse after 1 up line { j++; direction[j] = 0; Line[j] = C [i]; Op[j] = Op[j-1]; down++; up = 0; Count++; } if ( Count > 1 && up > 1 && up < numline && C [i] < Op[j-1] ) //simple reverse { j++; direction[j] = 0; Line[j] = C [i]; Op[j] = Op[j-1]; down++; up = 0; Count++; } if ( up >= numline && C [i] < Op[j-( numline -1 )] ) //black trunaround line { j++; direction[j] = 0; Line[j] = C [i]; Op[j] = Op[j-1]; down++; up = 0; Count++; } } } } delta = BarCount - j - 1; direction = Ref ( direction, - delta ); C = Ref ( Line, - delta ); O = ( Ref ( Op, -delta ) ); H = L = C ; Plot ( C , "" , 39, styleCandle ); Title = Name () + " Three Line Break" + "\n" + "Value = " + SelectedValue ( C ) + "\n" + "Break = " + numline; |
1 comments
Leave Comment
Please login here to leave a comment.
Back
Dear Sir, Can u plot volune with TLB just like broker chart ?