New York
Posts: 1 since Apr 2014
Thanks Given: 1
Thanks Received: 0
|
Hi Tom. Where you ever able to figure out how to the the label on multiple timeframes for TTM_Squeeze?
I have been trying for a while also. Not able to do it.
so far I got this
def sqz = !TTM_Squeeze().SqueezeAlert;
def direction = TTM_Squeeze()>TTM_Squeeze()[1];
def count = if sqz and !sqz[1] then 1 else count[1]+1;
def fired = if !sqz and sqz[1] then 1 else 0;
def firedCount = if fired then 1 else firedCount[1]+1;
def firedDirection = if fired then direction else firedDirection[1];
addLabel(yes, if sqz then “Squeeze:” + count else if sum(fired,5) then “Fired:” + firedCOunt + if firedDirection then ” Long” else ” Short” else “-”, if sqz then color.red else if sum(fired,5) and firedDirection then color.green else color.orange);
or I this one
def ttm_Squeeze = (TTM_Squeeze().SqueezeAlert == 0);
AddLabel(yes, concat("x=", ttm_Squeeze), color.RED);
Hopefully you get this message.
|