Combining Long and Short trading within one strategy
Author: lookingbackon
Creation Date: 5/10/2011 11:41 AM
profile picture


I try to combine a long and short trading of fast SMA(close) cross over/under slow SMA(close) within one strategy. But unfortunately, the combined strategy only generate one side trading signals e.g. only short position. Could you pls help to adjust the strategy code so that the Long postion can be generated following with short position was covered.
The draft code is as following:
Please log in to see this code.

Thanks for your help.

profile picture


This will help:

WealthScript Techniques | Creating a Stop-And-Reverse (SAR) system

And the code implements a moving average crossover system for long/short trades.
profile picture


Thanks Eugene, It's really help.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).