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 ....
15 min trading system 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 34 35 36 37 38 39 40 41 42 43 | this afl requires 15 min data with atleast 10 days backup.. _SECTION_BEGIN ( "15 min trading system" ); 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 ) ) )); x = StochK (14,3)- StochD (14,3,3)>0; x1 = StochK (14,3)- StochD (14,3,3)<0; y = MACD (12,26)- Signal (12,26,9)>0; y1 = MACD (12,26)- Signal (12,26,9)<0; TimeFrameSet ( inDaily ); w = 0.5* ATR (5); z = Ref ( HHV ( High ,5),-1); z1 = Ref ( LLV ( Low ,5),-1); a = (( Ref ( HHV ( High ,5),-1)- Ref ( LLV ( Low ,5),-1))*0.618)+ Ref ( LLV ( Low ,5),-1); a1 = Ref ( HHV ( High ,5),-1)-((( Ref ( HHV ( High ,5),-1)- Ref ( LLV ( Low ,5),-1))*0.618)); TimeFrameRestore (); b = Cross ( High ,z) AND Cross ( High ,a); b1 = Cross (z1, Low ) AND Cross (a1, Low ); UpCandle = ParamColor ( "Up Color" , colorGreen ); DownCandle = ParamColor ( "Down Color" , colorRed ); Consolidation = ParamColor ( "Consolidation" , colorBlack ); BG2a= HHV ( LLV ( L ,4)+ ATR (4),8); BR2a= LLV ( HHV ( H ,4)- ATR (4),8); Candlecolor = IIf ( Close >BG2a ,UpCandle, IIf ( Close < BR2a,DownCandle,Consolidation)); Buy = b AND x AND y AND Close >BG2a; Buytrgt = w + Open ; Selltrgt = Open - w; Buysl = Selltrgt; Sellsl = Buytrgt; Sell = b1 AND x1 AND y1 AND Close <BR2a; Filter = Buy OR Sell ; AddColumn ( Close , "close" ); AddColumn ( Buy , "buy" ); AddColumn (Buytrgt, "buytrgt" ); AddColumn (Buysl, "buysl" ); AddColumn ( Sell , "sell" ); AddColumn (Selltrgt, "selltrgt" ); AddColumn (Sellsl, "sellsl" ); Plot ( Close , "Price" , CandleColor, styleCandle ); PlotShapes ( IIf ( Buy , shapeUpArrow , shapeNone ), colorGreen , 0, Low ,-15); PlotShapes ( IIf ( Sell , shapeHollowDownArrow, shapeNone ), colorRed , 0, High ,-15); _SECTION_END (); |