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 ....
r2 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 44 45 46 47 48 | SetTradeDelays (0 ,0 ,0 ,0 ); HV = 100* StDev ( log ( C / Ref ( C ,-1)),100)* sqrt (252); SetForeign ( "SP-500" ); VolSP = MA ( V * C ,65); RestorePriceArrays (); xvolFilter = 3/1000; reqs = MA ( C * V ,20) > (volSP*xvolFilter); BuyHR = reqs AND C > MA ( C , 200 ) AND C < MA ( C ,20) AND RSI (2) < 5 AND ( ROC ( C , 5) < -15 OR ROC ( C , 2) < - 15/2) AND ADX (10) > 20 AND HV > 20 AND C >50 ; Lmt = 8; PriceTrigger = Ref ( C , -1) * (1 - Lmt/100); Trigger = L < PriceTrigger ; bp = Min ( O , PriceTrigger ); BuyReal = Ref (BuyHR , -1) AND L < PriceTrigger ; Buy = BuyReal; BuyPrice = bp ; //////////////////////////////////////////////////////////////////////////////// // Sell Rules Sell = RSI (2) > 70 AND ( BarsSince ( Buy ) > 0);; SellPrice = O ; ///////////////////////////////////////// Sell = ExRem ( Sell , Buy ); InPos = Flip ( Buy , Sell ); Filter = ((BuyHR OR INPos) OR Sell ) ; PriceTrigger2 = Ref ( C , 0) * (1 - Lmt/100); action = IIf ( Sell , -1, IIf (InPos, 0, IIf (BuyHR, PriceTrigger2, -2))); AddColumn (action, "Buy(Gr); Hold(Yellow); Sell(Red)" ,1.2, colorDefault , IIf (action > 0, colorGreen , IIf (action==0, colorYellow , colorRed ))); AddColumn ( C , "Close" ,6.2); AddColumn (HV , "HV100" ,6.1); AddColumn (1000* MA ( C * V ,20)/volSP, "LF" , 2.2); |