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 ....
master 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 | Exit1 = IIf (ShortLongSwitch == 1, LongExit, ShortExit); Exit0 = shortExit; Plot (Exit1, "Chandelier Green" , colorBrightGreen , styleLine ); Plot (Exit0, "Chandelier Red" , colorRed , styleLine ); G0 = Close ; G1 = Exit1; G2 = Exit0; Buy = Cross (G0,G1); // OR Cross(G0,G2); //Cover = Cross(G0,G1); // OR Cross(G0,G2); Sell = Cross (G2,G0); // OR Cross(G1,G0); //Short = Sell ; //Cross(G2,G0); // OR Cross(G1,G0); Short = Sell ; Cover = Buy ; Buy = ExRem ( Buy , Sell ); Sell = ExRem ( Sell , Buy ); Short = ExRem ( Short , Cover ); Cover = ExRem ( Cover , Short ); Equity (1); B1 = ( Buy * Close ); S1 = ( Sell * Close ); B2= B1>S1; |