# Индикатор: Показывает объем и процент SELL и BUY🚀
Привет всем! 🖖
❗️Несколько постов назад появилась тема об индикаторе ThinkorSwim - Buying power. Вчера я нашел еще один индикатор по той же теме, который показывает давление продаж и покупок в объеме и в процентах от объема. Возможно, кому-то важно увидеть прошлые объемы, например, покупателей.
Индикатор сделан в виде цветных оповещений на графике, аналогично прошлому.
🧾📊📈
_
# Show SELL and BUY Volume and percentage
declare lower;
input timeframe = AggregationPeriod.DAY;
def Vol = volume(period = timeframe);
def at_High = high(period = timeframe);
def at_Open = open(period = timeframe);
def at_Close = close(period = timeframe);
def at_Low = low(period = timeframe);
def Vol1 = volume(period = timeframe);
def at_High1 = high(period = timeframe);
def at_Open1 = open(period = timeframe);
def at_Close1 = close(period = timeframe);
def at_Low1 = low(period = timeframe);
# Buy_Volume forumla is volume * (close_price minus low_price) / (High_price minus low_price)
def Buy_Volume = roundup(Vol * (at_close - at_low) / (at_High - at_Low));
def Buy_percent = roundup((Buy_volume / Vol) * 100);
#Sell_Volume forumla is volume * (High_price minus Close_price) / (High_price minus Low_price)
def Sell_Volume = rounddown(Vol1 * (at_High1 - at_Close1) / (at_High1 - at_low1));
def Sell_percent = roundup((Sell_Volume / Vol1) * 100);
Addlabel(yes, "BuyVol " + Buy_Volume, Color.Green);
Addlabel(yes, "SellVol " + Sell_Volume, Color.Red);
AddLabel(yes, "Buy % " + Buy_percent, Color.Green);
Addlabel(yes, "Sell % " + Sell_percent, Color.Red);
Ставим, пробуем, пишем сюда свое мнение, кто как лучше применяет...
Любой опыт будет полезен! 💥
#nyse #stocks #thinkorswim #tos #daytrading #tos #thinkorswimrangers