Guppy Count Back Line

If you need an Indicator or Signal developed or translated from other language, please post all Indicator development REQUESTS to this section here.

Moderator: admin

Guppy Count Back Line

Postby hansenlauw » Wed Feb 04, 2015 12:43 am

is there in LUA Code for this was originally in thinkscript code

http://www.thinkscripter.com/forum/view ... 7355#p7355
hansenlauw
 
Posts: 8
Joined: Wed Feb 04, 2015 12:38 am

Re: Guppy Count Back Line

Postby Apprentice » Wed Feb 04, 2015 3:40 am

Unfortunately I do not have access to this forum.
Can u provide more information.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36476
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Guppy Count Back Line

Postby hansenlauw » Wed Feb 04, 2015 10:06 am

Here's the code:
Code: Select all
DEF V1 = (((LOW < LOW[-1]) * (LOW < LOW[1])));
DEF V2 = ((HIGH > HIGH[-1]) * (HIGH[-1] > HIGH[-2]));
DEF V3 = (((HIGH > HIGH[-1]) * (HIGH > HIGH[1])));
DEF V4 = ((LOW < LOW[-1]) * (LOW[-1] < LOW[-2]));

rec bot;

bot = if 
((V1 > 0.5))
then Low else bot[1];

plot data = BOT;

rec bot2;

bot2 = if 
((V2[2] > 0.5)*(v1 > 0.5))
then high[2] else bot2[1];

plot v6 = if bot2 > bot then bot2 + (bot2 - bot) else double.NaN;

plot data2 = BOT2;

rec bot3;

bot3 = if 
((V3 > 0.5))
then high else bot3[1];

plot data3 = BOT3;

rec bot4;

bot4 = if 
((V4[2] > 0.5)*(v3 > 0.5))
then low[2] else bot4[1];

plot data4 = BOT4;

plot v7 = if bot4 < bot3 then bot4 - (bot3 - bot4) else double.NaN;

data.assignValueColor(color.DARK_RED);
data.setPaintingStrategy(paintingStrategy.POINTS);

data2.assignValueColor(color.blue);
data2.setPaintingStrategy(paintingStrategy.dashes);

data3.assignValueColor(color.DARK_green);
data3.setPaintingStrategy(paintingStrategy.POINTS);

data4.assignValueColor(color.magenta);
data4.setPaintingStrategy(paintingStrategy.dashes);
hansenlauw
 
Posts: 8
Joined: Wed Feb 04, 2015 12:38 am



Re: Guppy Count Back Line

Postby daniel.kovacik » Wed Feb 04, 2015 7:24 pm

Hello,

this indicator is from same web-site as creator of this topic povided. I am talking about http://www.thinkscripter.com/indicator/cumulative-tick/ (Cumulative ticks).
I know FXCM has ticks limites to 1500 ticks only, but this indicator is originally for otherr markets, so I was thinking if there is possibility to use it for forex too.

If you ll have some spare time, could look at this because there is luck of code without subscription.
I was thinking, if there cant be a place where these ticks would be saved when platform is on, so we could see more than just 1500 ticks if for example platform runs 24 hours...

Thanks
Best trading
DK
daniel.kovacik
FXCodeBase: Initiate
 
Posts: 163
Joined: Thu Jun 12, 2014 9:09 pm

Re: Guppy Count Back Line

Postby hansenlauw » Wed Feb 04, 2015 8:40 pm

I posted the screenshot here:
Apprentice wrote:Requested can be found here.
viewtopic.php?f=17&t=61780

I think it needs a little touch referring to "data" and "data3" (dotted line) from the original code as you can see from the screenshot.
BTW thank you anyway :)
hansenlauw
 
Posts: 8
Joined: Wed Feb 04, 2015 12:38 am


Re: Guppy Count Back Line

Postby hansenlauw » Thu Feb 05, 2015 6:40 am

Thank's a lot Apprentice, you're the man :D

@Daniel: the idea is behind this :
http://www.guppytraders.com/gup332.shtml
hansenlauw
 
Posts: 8
Joined: Wed Feb 04, 2015 12:38 am


Return to Indicator and Signal Requests

Who is online

Users browsing this forum: No registered users and 31 guests