Gator Oscillator 0

Posted on 3, March 2014

in Category SID


Description for Gator SID 145

This system introduces the Gator Oscillator developed by Larry Williams. The oscillator was created to indentify emerging trends in the market.

Gator Oscillator/sid Notes for this Trading Account:

This system introduces the Gator Oscillator developed by Larry Williams. The oscillator was created to indentify emerging trends in the market.

System breif:

– 1 Hour.
– EURUSD, GBPUSD, EURAUD.
– Trades fixed units.

Gator Oscillator/sid Rules for this Trading Account:

Gator Oscillator/sid Notes for this Trading System:

Gator Oscillator/sid Rules for this Trading System:

Gator Oscillator/sid Bar event logic:

my ($jaw,$teeth,$lips) = Alligator(13,8,8,5,5,3); #Alligator developed by Larry Williams, introduced to Forex by Bill Williams.
my ($topBars,$bottomBars) = GatorOscillator(); #Gator Oscillator developed by Larry Williams.

#If there are no positions within the current symbol..
if(NoPosition){

	#Alligator conditions for going long...
	#If the lips is greater than the teeth and the teeth is greater than the jaws and the closing price is greater than the lips then check the gator oscillator.
	if( Now($lips)>Now($teeth) && Now($teeth)>Now($jaw) && ClosePrice>Now($lips) ){
		#Gator oscillator conditions for going long...
		if( Now($topBars)>Previous($topBars) && Now($bottomBars)<Previous($bottomBars) ){
			BuyOpen();
		}
	}

	#Alligator conditions for going short...
	#If the lips is lower than the teeth and the teeth is lower than the jaws and the closing price is lower than the lips then check the gator oscillator.
	if( Now($lips)<Now($teeth) && Now($teeth)<Now($jaw) && ClosePrice<Now($lips) ){
		#Gator oscillator conditions for going short...
		if( Now($topBars)>Previous($topBars) && Now($bottomBars)<Previous($bottomBars) ){
			SellOpen();
		}
	}

}else{
	
	#If the position has been in the market for more than 2 bars...
	if(BarsSinceEntry>2){
		#If the position is in profit, take profit.
		PlaceSellOpen('Close_GatorCross_Buy') if LongPosition && ClosePrice>EnterPrice;
		PlaceBuyOpen('Close_GatorCross_Sell') if ShortPosition && ClosePrice<EnterPrice;
	}

}

Gator Oscillator/sid OrderFill event logic:

PlaceStopLoss('GatorCross_StopLoss_B',EnterPrice-(50*PipValue())) if LongPosition;
PlaceStopLoss('GatorCross_StopLoss_S',EnterPrice+(50*PipValue())) if ShortPosition;

0 Comments

Leave a Message