Once again Turtle Soup ..

rkkarnani

Well-Known Member
but if these stocks have made today 20 day high low then tomorrow again they go low(high) below of today, its 2 day consecutive high/low, is not it ?
Correct !
Have this grey area about Turtle Soup Plus 1 set up ! I have probably not understood it clearly. Any input shall be welcome. Maybe not break the High low today, but goes below the earlier high low and trigger the same should be the right approach !
Thanks for pointing it out.
 

rkkarnani

Well-Known Member
Have amended text in a previous Post after the error was pointed out to me :

At a glance (checked a few only) it looks that these stocks made a 20 days high or Low TODAY !
Tomorrow any of these stock must move lower than previous 20 period low and NOT below todays low and then move up above previous Low to qualify for a Long trade and a Stock must move higher than Previous high but not above todays high and then move down below previous High to trigger a Short !
Any breach of todays levels would make the trade void
So todays High low levels would be the key ! Jamit_05 please confirm !
 

Bewinner

Well-Known Member
Yes sir. A few stocks were incorrect due to a small bug in the code.... removed it. Hope the code works fine now... pls refer to the new csv file.
JAMIT bro....

would it be possible for you to republish the code again here as usaid that there was a bug in the code and u rectified it...

Thanks in advance..
 

jamit_05

Well-Known Member
but if these stocks have made today 20 day high low then tomorrow again they go low(high) below of today, its 2 day consecutive high/low, is not it ?
Let me tell what I know, so that if wrong can be corrected.

Not consecutive. We already have the 20 day h/l value. On day 1 this value gets breached (touched, crossed whatever). Hence, this scrip comes under the AFLs scanner. The next day when this 20 day H/L is reverse breached we have an entry.

rdgs.
 

jamit_05

Well-Known Member
At a glance (checked a few only) it looks that these stocks made a 20 days high or Low TODAY !

Tomorrow any of these stock must move lower than previous 20 period low and NOT below todays low and then move up above previous Low to qualify for a Long trade and a Stock must move higher than Previous high but not above todays high and then move down below previous High to trigger a Short !
Any breach of todays levels would make the trade void
So todays High low levels would be the key ! Jamit_05 please confirm ![/B]

Pls Skip this entire conversation. 2 of those scrips were incorrect due to a bug in the code. Now it is sorted. Pls refer to the new scrips.
 

jamit_05

Well-Known Member
JAMIT bro....

would it be possible for you to republish the code again here as usaid that there was a bug in the code and u rectified it...

Thanks in advance..


Code:
_SECTION_BEGIN(" Turtle Soup Exploration");

/*

TSL=

L==LLV(L,20) AND Ref(L,-1)!=Ref(LLV(L,19),-1) AND Ref(L,-2)!=Ref(LLV(L,18),-2) AND Ref(L,-3)!=Ref(LLV(L,17),-3) AND C>O AND H-L>=ATR(15) OR
L==LLV(L,20) AND Ref(L,-1)!=Ref(LLV(L,19),-1) AND Ref(L,-2)!=Ref(LLV(L,18),-2) AND Ref(L,-3)!=Ref(LLV(L,17),-3) AND C>O AND Ref(C,-1)-L>=ATR(15);


TSS=
H==HHV(H,20) AND Ref(L,-1)!=Ref(HHV(L,19),-1) AND Ref(L,-2)!=Ref(HHV(L,18),-2) AND Ref(L,-3)!=Ref(HHV(L,17),-3) AND C<O AND H-L>=ATR(15) OR
H==HHV(H,20) AND Ref(L,-1)!=Ref(HHV(L,19),-1) AND Ref(L,-2)!=Ref(HHV(L,18),-2) AND Ref(L,-3)!=Ref(HHV(L,17),-3) AND C<O AND Ref(C,-1)-L>=ATR(15);


*/

TSL=
L==LLV(L,20) AND Ref(L,-1)!=Ref(LLV(L,19),-1) AND Ref(L,-2)!=Ref(LLV(L,18),-2) AND Ref(L,-3)!=Ref(LLV(L,17),-3) AND EMA(V,15) > 100000 AND V > 150000 AND C>50;

TSS=
H==HHV(H,20) AND Ref(H,-1)!=Ref(HHV(H,19),-1) AND Ref(H,-2)!=Ref(HHV(H,18),-2) AND Ref(H,-3)!=Ref(HHV(H,17),-3) AND EMA(V,15) > 100000 AND V > 150000 AND C>50;

tslval=ValueWhen(TSL,L,1);
tssval=ValueWhen(TSS,H,1);

_SECTION_END();

Filter = (TSL OR TSS);// AND C>50 AND V>50000;
SetOption("NoDefaultColumns", True);
AddTextColumn(Name(), "SYMBOL");
AddColumn(DateTime(), "DATE", formatDateTime,colorBlue);
AddColumn(IIf(TSL,1,Null), " TS Long", 1,colorBlack,IIf(TSL,colorBrightGreen,Null)); // HH
AddColumn(IIf(TSS,1,Null), " TS Short", 1,colorBlack,IIf(TSS,colorOrange,Null));
AddColumn(IIf(TSL,Ref(LLV(L,20),-1), Ref(HHV(H,20),-1)), "Breach Level", 1.2,colorBlue);
AddColumn(V, "Volume", 1, colorBlack,IIf(V > EMA(V,21), colorBrightGreen, colorOrange)); // for liquidity
AddColumn(IIf(TSL,tslval,Null), "Lo", 1.2 ,colorBlack,IIf(TSL,colorBrightGreen,Null));
AddColumn(IIf(TSS,tssval,Null), "Hi", 1.2,colorBlack,IIf(TSS,colorOrange,Null));

Buy=Sell=0;
 

Similar threads