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 ....
WiseTrader Toolbox
#1 Selling Amibroker Plugin featuring:
Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
VOLUME STOP for Amibroker (AFL)
Copy & Paste Friendly
Back
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | _SECTION_BEGIN ( "Price" ); SetChartOptions (0, chartShowArrows | chartShowDates ); _N (Title = StrFormat ( "{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}" , O , H , L , C , SelectedValue ( ROC ( C , 1 ) ) )); Plot ( C , "Close" , ParamColor ( "Color" , colorBlack ), styleNoTitle | ParamStyle ( "Style" ) | GetPriceStyle () ); _SECTION_END (); _SECTION_BEGIN ( "VOLUME STOPS" ); Countback= Param ( "Countback" ,50,1,100,1); LVSL= Param ( "1" ,0.0010,0.0010,0.020,0.020); HVSL=LVSL+0.0030; Cond1= LLV ( L ,Countback); trigger = Cross ( Ref (cond1,-1), Low ); myLine = cond1; for (i = 1; i < BarCount ; i++) { if (!trigger[i] && myLine[i] > myLine[i-1]) myLine[i] = myLine[i-1]; } Plot (myLine+LVSL, "LowVolSL" , colorBlue , styleLine ); Plot (myLine+HVSL, "HighVolSL" , colorRed , styleLine ); _SECTION_END (); |