[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Turtle Soup



PureBytes Links

Trading Reference Links

Hi RT's,

I am new with Easy Language, I only had some experience with Quick Editor.
Here is my first experience. I did the Turtle Soup with Chandelier Exit.

I think my logic is right (maybe not programmed the best way). Anyhow your
comments and corrections are wellcome.

The results of the turtle soup are not very encouraging, or am I missing
something ?

Thanks for your reply,

Guy

TURTLE SOUP

Input: LB(20),Dif(4),X(3);

Var: BuySetup(0),SellSetup(0),BuySetupBar(0),SellSetupBar(0);

If L<Lowest(L[1],LB) AND L[Dif+1]<Lowest(L[1],Dif) then begin
	BuySetupBar=CurrentBar;
	BuySetup=1;
	SellSetup=0;
End;

If H>Highest(H[1],LB) AND H[Dif+1]>Highest(H[1],Dif) then begin
	SellSetupBar=CurrentBar;
	SellSetup=1;
	BuySetup=0;
End;

If BuySetup=1 and
MRO(O>(L[1]+H[1])/2,MinList((CurrentBar-BuySetupBar),Dif),1)>-1 then
	Buy O Stop;
If SellSetup=1 and
MRO(O<(L[1]+H[1])/2,MinList((CurrentBar-BuySetupBar),Dif),1)>-1 then
	Sell O Stop;

If MarketPosition=1 then
	ExitLong Highest(H,BarsSinceEntry(0)-1)-(X*AvgTrueRange(LB)) Stop;
If MarketPosition=-1 then
	ExitShort Lowest(L,BarsSinceEntry(0)-1)+(X*AvgTrueRange(LB)) Stop;

Guy Hacha
Belgium
E-mail: Guy.Hacha@xxxxxxxxxxxxxxxx