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 ....
SwingN for Metastock
Copy & Paste Friendly
Back
{ Standard moving average crossover signals. This is NOT a trading system. A bona-fide trading system will require refinement of this basic system } { This system buys when the shorter MA crosses above the longer MA, and sells when the shorter MA crosses below the longer MA } MovingAverage1Length := 50; MovingAverage2Length := 200; If( {------- START ENTER LONG SIGNAL ----------} Cross(Mov(CLOSE,MovingAverage1Length,SIMPLE), Mov(CLOSE,MovingAverage2Length,SIMPLE)) {------- END ENTER LONG SIGNAL ----------} , +1, If( {------- START ENTER SHORT SIGNAL ----------} Cross(Mov(CLOSE,MovingAverage2Length,SIMPLE), Mov(CLOSE,MovingAverage1Length,SIMPLE)) {------- END ENTER SHORT SIGNAL ----------} , -1, If( {------- START CLOSE LONG SIGNAL ----------} Cross(Mov(CLOSE,MovingAverage2Length,SIMPLE), Mov(CLOSE,MovingAverage1Length,SIMPLE)) {------- END CLOSE LONG SIGNAL ----------} , +2, If( {------- START CLOSE SHORT SIGNAL ----------} Cross(Mov(CLOSE,MovingAverage1Length,SIMPLE), Mov(CLOSE,MovingAverage2Length,SIMPLE)) {------- END CLOSE SHORT SIGNAL ----------} , -2,0))))