Stock Portfolio Organizer
The ultimate porfolio management solution.
WiseTrader Toolbox
#1 Selling Amibroker Plugin featuring:
Clear Method for Amibroker (AFL)
This indicator from TASC September 2010.It is indicate price movement in short term.
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 | //from TASC September 2010 upsw = 0; Hh = Lh = H [ 0 ]; Hl = Ll = L [ 0 ]; for ( i = 0; i < BarCount ; i++ ) { Ch = H [ i ]; Cl = L [ i ]; if ( upsw == 1 ) { Hh = Max ( Ch, Hh ); hL = Max ( Cl, Hl ); if ( Ch < Hl ) { upsw = 0; Ll = Cl; Lh = Ch; } } if ( upsw == 0 ) { Ll = Min ( Cl, Ll ); Lh = Min ( Ch, Lh ); if ( Cl > Lh ) { upsw = 1; Hh = Ch; Hl = Cl; } } Hla[ i ] = Hl; Lha[ i ] = Lh; upswa[ i ] = upsw; } Plot ( IIf ( upswa == 1, Hla, Null ), "SwLine" , ColorRGB ( 64, 128, 128), styleThick ); Plot ( IIf ( upswa == 0, Lha, Null ), "SwLine" , ColorRGB ( 128, 64, 128), styleThick ); Plot ( C , "Price" , IIf ( upswa == 1, ColorBlend( colorGreen , colorWhite ), ColorBlend( colorRed , colorWhite )), styleBar ); |
6 comments
Leave Comment
Please login here to leave a comment.
Back
Duplicate. This already exists in this site
got error my amibrokerversionis 5.20 got erorr @ Plot( C, “Price”, IIf( upswa == 1,
ColorBlend( colorGreen, colorWhite ),
ColorBlend( colorRed, colorWhite )), styleBar);
athis lines pls slove
yes, even i get the same error. tried fixing the problem but didnt work
Working fine for me.
This is something special!
Error 31
syntax error expected ) or , !!!!!!!