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 ....
Scan New High and New Low 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 22 23 24 25 26 27 28 29 30 31 32 33 | // Scan New High and New Low YMWD = ParamList ( "Choose scan by" , "Day|Week|Month" , 1); Wk = Param ( "Week High" , 52, 1, 52); Mth = Param ( "Month High" , 12, 1, 12); Days = Param ( "Day High" , 260, 1, 260); if (YMWD == "Week" ) { x = Wk; Days = 5*wk; } else if (YMWD == "Month" ) { x = Mth; Days = 20*Mth; } else { x = Days; } Buy = High > Ref ( HHV ( High ,Days),-1); Sell = Low < Ref ( LLV ( Low ,Days),-1); Filter = ( Buy OR Sell ); AddTextColumn ( FullName (), "Security" , 1.0, colorDefault , colorDefault ,200); AddTextColumn ( WriteIf ( Buy , "HIGH" , WriteIf ( Sell , "LOW" , "" )), "Break " +x+ " " +YMWD+ " " , 1.0, colorDefault , colorDefault ,100); |