Hi all,
Was wondering if anyone would be able to help with what i got going on here.
So, im trying to figure out how to get TOS to add the numbers in the bubbles shown in the screen cap below, after the break of the inside candle( White one) down until a candles high gets broken and have this displayed in a label. And then restart the add count on the break of the next insisde bar, bethe break up or down.
I dont know if this is even possible.
Any help, tips, suggestions, this is impossible will be appreciated
Thanks
Was wondering if anyone would be able to help with what i got going on here.
So, im trying to figure out how to get TOS to add the numbers in the bubbles shown in the screen cap below, after the break of the inside candle( White one) down until a candles high gets broken and have this displayed in a label. And then restart the add count on the break of the next insisde bar, bethe break up or down.
I dont know if this is even possible.
Any help, tips, suggestions, this is impossible will be appreciated
Thanks
Code:
#Bar Types
def IsUp = close > open;
def IsDown = close < open;
def IsDoji = IsDoji();
def avgRange = 0.05 * Average(high - low, 20);
def inbar = low > low[1] and high < high[1];
def outbar = low < low[1] and high > high[1];
def twodn =
((Sum(IsUp, 1)[1] >= 0)) and
((Sum(IsUp, 1)[0] >= 0)) and
Lowest(low[1], 1) > Lowest(low[0], 1) and
Highest(high[1], 1) > Highest(high[0], 1);
def risk = high - low;
AssignPriceColor(
if (inbar)
then Color.WHITE
else Color.CURRENT);
AddChartBubble((inbar), high, risk, Color.WHITE);
addchartbubble((twodn), high, risk, color.yellow);
AddLabel(high[1], "Prev High: " + high[1], Color.WHITE);
AddLabel(low[1], "Prev Low: " + low[1], Color.WHITE);
AssignPriceColor(
if (outbar)
then Color.DARK_ORANGE
else Color.CURRENT);