BrightPropGuy
Newbie
- Messages
- 1
- Likes
- 0
Lets try to improve this basic EasyLanguage Program. It works well with market indices such as the Russell2000:
Inputs: Length(35), StdDevUp(2.0), StdDevDn(-2.0);
Vars: UpBand(0), DnBand(0), Ave(0);
UpBand = BollingerBand(Close,Length,StdDevUp);
DnBand = BollingerBand(Close,Length,StdDevDn);
Ave = Average(Close,Length);
if ( MarketPosition = 0 ) and ( Close > UpBand )
then Buy("BE") tomorrow at market;
if ( MarketPosition = 0 ) and ( Close < DnBand )
then SellShort("SE") tomorrow at market;
if ( MarketPosition = 1 ) and ( Close < Ave )
then Sell("LX") today at close;
if ( MarketPosition = -1 ) and ( Close > Ave )
then BuyToCover("SX") today at close;
Inputs: Length(35), StdDevUp(2.0), StdDevDn(-2.0);
Vars: UpBand(0), DnBand(0), Ave(0);
UpBand = BollingerBand(Close,Length,StdDevUp);
DnBand = BollingerBand(Close,Length,StdDevDn);
Ave = Average(Close,Length);
if ( MarketPosition = 0 ) and ( Close > UpBand )
then Buy("BE") tomorrow at market;
if ( MarketPosition = 0 ) and ( Close < DnBand )
then SellShort("SE") tomorrow at market;
if ( MarketPosition = 1 ) and ( Close < Ave )
then Sell("LX") today at close;
if ( MarketPosition = -1 ) and ( Close > Ave )
then BuyToCover("SX") today at close;