Page 1 of 2

TTM Scalper - EFS

Posted: Tue Sep 11, 2007 5:48 am
by NYSEplaya
that looks like a very interesting tool. can someone please convert that to the EFS? thanks.

there is a thread talk about the code in the beginners forum:

http://kreslik.com/forums/viewtopic.php ... sc&start=0

Posted: Fri Oct 19, 2007 6:48 am
by NYSEplaya
here is the code for ELD:


{Scalper Buys and Sells 7/18/2007
Written by Luis Gomez
inspired by John Carters "Mastering the Trade"
}

inputs:
buyColor(white),
sellColor(white),
width(3);
variables:
highBarsAgo(1),
possibleHighBarsAgo(1),
possibleHigh(-2),
hightoBeat(-1),
barsSincePaint(1),
lowBarsAgo(1),
possibleLowBarsAgo(1),
possibleLow(10000001),
lowtoBeat(10000000),
triggerPriceSell(-1),
triggerPriceBuy(1000000),
trend(1),
_UP(1),
_DOWN(-1),
_ON(1),
_OFF(-1);


// **************************************************
*
//****** Find and plot the highest swing high *******
// **************************************************
*

if trend = _UP then begin
if swingHighBar(1,H,2,barsSincePaint+2) > -1 then begin
possibleHighBarsAgo = swingHighBar(1,H,2,barsSincePaint+2);
possibleHigh = H[possibleHighBarsAgo];
end;

if possibleHigh >= hightoBeat then begin
highBarsAgo = possibleHighBarsAgo;
hightoBeat = possibleHigh;
triggerPriceSell = L[HighBarsAgo - 1];
end;

if C < triggerPriceSell and
highest(high,highBarsAgo) < hightoBeat then begin
plotpb[highBarsAgo](H[highBarsAgo],L[highBarsAgo
],"",sellColor);
alert("Scalper Sell");
trend = _DOWN;
barsSincePaint = highBarsAgo-1;
hightoBeat = -1;
lowtoBeat = 10000000;
triggerPriceBuy = 10000000;
triggerPriceSell = -1;
highBarsAgo = 1;
possibleHigh = -2;
end;

end;

// **************************************************
*
//****** Find and plot the lowest swing low *********
// **************************************************
*

if trend = _DOWN then begin
if swingLowBar(1,L,2,barsSincePaint+2) > -1 then begin
possibleLowBarsAgo = swingLowBar(1,L,2,barsSincePaint+2);
possibleLow = L[possibleLowBarsAgo];
end;

if possibleLow <= lowtoBeat then begin
lowBarsAgo = possibleLowBarsAgo;
lowtoBeat = possibleLow;
triggerPriceBuy = H[LowBarsAgo - 1];
end;

if C > triggerPriceBuy and
lowest(L,lowBarsAgo) > lowtoBeat then begin
plotpb[lowBarsAgo](H[lowBarsAgo],L[lowBarsAgo],"",buyColor);
alert("Scalper Buy");
trend = _UP;
barsSincePaint = lowBarsAgo-1;
possibleLow = 10000001;
lowtoBeat = 10000000;
hightoBeat = -1;
triggerPriceBuy = 10000000;
triggerPriceSell = -1;
lowBarsAgo = 1;
end;

end;

barsSincePaint = barsSincePaint+1;
if trend = _UP then highBarsAgo = highBarsAgo + 1;
if trend = _DOWN then lowBarsAgo = lowBarsAgo + 1;
setPlotWidth(1,width);

Posted: Sat Nov 03, 2007 9:33 am
by NYSEplaya
any help? :D

Posted: Sat Nov 03, 2007 6:48 pm
by rebkwez
I've coded an esignal version. But I just detected a bug in the logic. So I've been working on a fix. My version doesn't match up excactly with the TTM version, but it's very close. Hopefully will have something posted next week.

If any TS coders could post a description of what the exact parameters are for the swingHigh/swingLow function(s) are, I would appreciate it. There seems to be no TS documentation for function parameters.

-Elliot

Posted: Tue Nov 06, 2007 9:59 pm
by NYSEplaya
rebkwez wrote:I've coded an esignal version. But I just detected a bug in the logic. So I've been working on a fix. My version doesn't match up excactly with the TTM version, but it's very close. Hopefully will have something posted next week.

If any TS coders could post a description of what the exact parameters are for the swingHigh/swingLow function(s) are, I would appreciate it. There seems to be no TS documentation for function parameters.

-Elliot


cool, looking forward to it

Scalper Buy Sell

Posted: Tue Feb 05, 2008 4:40 pm
by Haifeschak
Hey rebkwez,

just wanted to ask wheather you already did the translation of the TTM Scalper ELD into eSignal EFS code?

In case could you please post it?

thanks

Rob

Posted: Tue Feb 05, 2008 7:29 pm
by TheRumpledOne
I think a version may be in the eSignal Motherlodes.

TTM Scalper

Posted: Tue Feb 05, 2008 8:23 pm
by Haifeschak
Thanks TRO,

but I am looking for the exact translation of the TTM scalper ELD into EFS.
The motherlode contains obviously a lot of really sophisticated EFS code.
But most of them are without any description how the indicator works. So
for me the best developed indicator is nothing worth if I do not exactly know how to use it. This is my personal problem.

Rob

Posted: Tue Feb 05, 2008 11:24 pm
by TheRumpledOne
I know someone implemented it in eSignal and I thought I had it.

In fact, someone on this forum started a thread about it, I think... SEARCH!!

TTM Scalper

Posted: Wed Feb 06, 2008 1:05 am
by Haifeschak
Hi TRO,

sorry, but I couldn't find.

Anyway thanks

Rob