TheStrategyLab.com Price Action Trading Support Forum
http://www.thestrategylab.com/tsl/forum/

TOS HiddenWRBs and Zone plotted
http://www.thestrategylab.com/tsl/forum/viewtopic.php?f=225&t=2465
Page 1 of 1

Author:  tradewind [ Sat Aug 09, 2014 2:38 pm ]
Post subject:  TOS HiddenWRBs and Zone plotted

OK guys here is another approach. I plot only the hiddenwrbs and their respective zones.
You can choose either bars or candles
Enough said here it is:
Well I tried attaching it so you could just download it, but the forum does not allow the TOS extension so I will attach it with the TOS share function.

http://tos.mx/sy5moc

enjoy

Author:  tradewind [ Sat Aug 09, 2014 4:28 pm ]
Post subject:  Re: TOS HiddenWRBs and Zone plotted

Sorry Folks but I posted an outdated study.

Please see this one. I will drop in the code here:

declare upper;


Input BarKind={default Candles, Bars};

DEF RANGE;
DEF RANGEHIGH;
DEF RANGELOW;

switch (BARKIND) {
case CANDLES:
RANGE = absvalue(open - close);
RANGEHIGH= MidBODYVal() + (RANGE * .5);
RANGELOW =MIDBODYVAL() - (RANGE*.5);

case BARS:
RANGE = absvalue( high-low);
RANGEHIGH= HIGH;
RANGELOW =LOW;

}
def WRB = range > range[1] and range > range [2] and range > range[3];


DEF BULLgap= RANGElow[-1] > RANGEhigh[1] AND WRB;
DEF beargap = RANGElow[1]>RANGEhigh[-1] AND WRB;
DEF greentop = if bullgap then RANGElow[-1] else greentop[1];
DEF greenbottom = if bullgap then RANGEhigh[1] else greenbottom[1];
DEF redtop =if beargap then RANGElow[1]else redtop[1] ;
DEF redbottom =if beargap then RANGEhigh[-1] else redbottom[1];
DEF ISGAP = BEARGAP OR BULLGAP;
plot WRBars =wrb AND ISGAP ;

WRBars.SetLineWeight(5);
AssignPriceColor(if WRBars then Color.YELLOW else Color.CURRENT);
wrbars.setlineweight(3);

plot greenmoveupper = greentop ;
greenmoveupper.SetPaintingStrategy(PaintingStrategy.points);
greenmoveupper.SetLineWeight(2);
greenmoveupper.SetDefaultColor(CreateColor(095, 145, 095));

plot greenmovelower = greenbottom;
greenmovelower.SetPaintingStrategy(PaintingStrategy.points);
greenmovelower.SetLineWeight(2);
greenmovelower.SetDefaultColor(CreateColor(095, 145, 095));

plot redmoveupper =redtop;
redmoveupper.SetPaintingStrategy(PaintingStrategy.points);
redmoveupper.SetDefaultColor(CreateColor(145, 095, 025));
;
redmoveupper.SetLineWeight(2);
plot redmovelower = redbottom ;
redmovelower.SetPaintingStrategy(PaintingStrategy.points);
redmovelower.SetDefaultColor(CreateColor(145, 095, 025));

Author:  Gaterz [ Sun Aug 10, 2014 1:36 pm ]
Post subject:  Re: TOS HiddenWRBs and Zone plotted

Nice work!

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/