Larry Connors 0

Posted on 18, February 2014

in Category SID


Description for LarryConnors SID 361

The Larry Connors account is Seer’s example of using 2 systems within one account. In this case it’s running Larry Connors RSI2 with Larry Connors CRSI. What this means is that they both will run with each other on the same capital base.

Larry Connors/sid Notes for this Trading Account:

The Larry Connors account is Seer’s example of using 2 systems within one account. In this case it’s running Larry Connors RSI2 with Larry Connors CRSI. What this means is that they both will run with each other on the same capital base.

Larry Connors/sid Rules for this Trading Account:

Larry Connors/sid Notes for this Trading System:

Larry Connors/sid Rules for this Trading System:

Larry Connors/sid Bar event logic:

my $rsi = Now(RSI(2)); #RSI indicator with a period of 2.
my $ema = Now(EMA(Close,200)); #EMA indicator with a period of 200.

#If there are no open positions for the current symbol...
if(NoPosition){
	#...place a long position when the RSI value is below the lower bounds and the closing price is above the EMA 200.
	#The lower bounds variable is set under, RSI_2 -> Variables. This is currently set to 20.
	BuyOpen if $rsi<$lowerBounds && ClosePrice>$ema;
	#...place a short position when the RSI value is above the upper bounds and the closing price is below the EMA 200.
	#The upper bounds variable is set under, RSI_2 -> Variables. This is currently set to 95.
	SellOpen if $rsi>$upperBounds && ClosePrice<$ema;

#If there are existing positions for the current symbol...
}else{

	PlaceStopLoss('RSI_Trailing_Stop',ClosePrice-1*PipValue()) if ClosePrice>EnterPrice && LongPosition;
	PlaceStopLoss('RSI_Trailing_Stop',ClosePrice+1*PipValue()) if ClosePrice<EnterPrice && ShortPosition;

	#...close long position when the RSI value is above the upper bounds.
	PlaceSellOpen('RSI_Close_Long') if($rsi>$upperBounds && LongPosition);
	#...close short position when the RSI value is below the lower bounds.
	PlaceBuyOpen('RSI_Close_Short') if($rsi<$lowerBounds && ShortPosition);
}

Larry Connors/sid OrderFill event logic:

my $stoploss;

$stoploss = EnterPrice-20*PipValue() if LongPosition;
$stoploss = EnterPrice+20*PipValue() if ShortPosition;

PlaceStopLoss('RSI_Buy_StopLoss',$stoploss) if LongPosition;
PlaceStopLoss('RSI_Sell_StopLoss',$stoploss) if ShortPosition;

Larry Connors/sid Notes for this Trading System:

Larry Connors/sid Rules for this Trading System:

Larry Connors/sid Bar event logic:

#This system utilizes the Connors RSI indicator along with the ADX indicator.
my $CRSI = Now(ConnorsRSI(3,2,100));
my $ADX = Now(ADX(10));


if(NoPosition){

	#enterVal and adxVal is set in the variables section.
	#Open long position when CRSI is above 30 and ADX is above 48...
	BuyOpen if $CRSI<$enterVal && $ADX>$adxVal;

}else{
	
	#When the current closing price is above the enter price, modify the stop loss.
	#The stop loss value is defined by the closing price minus the value of the ADX with a period of 41, multiplied by 2.
	PlaceStopLoss('CRSI_Trailing_Stop',ClosePrice-ADX($ADX_sl)*2) if ClosePrice>EnterPrice && LongPosition;

	#closeVal is set in the variables section.
	#Close long position if CRSI is above 80...
	PlaceSellOpen('CRSI_Close_Long') if $CRSI>$closeVal && LongPosition;

}

Larry Connors/sid OrderFill event logic:

my $stoploss;

$stoploss = EnterPrice-30*PipValue() if LongPosition;
$stoploss = EnterPrice+30*PipValue() if ShortPosition;

PlaceStopLoss('CRSI_Buy_StopLoss',$stoploss) if LongPosition;
PlaceStopLoss('CRSI_Sell_StopLoss',$stoploss) if ShortPosition;

0 Comments

Leave a Message