lpoarts.blogg.se

Thinkorswim volume profile script
Thinkorswim volume profile script







thinkorswim volume profile script thinkorswim volume profile script thinkorswim volume profile script

If Selling > Buying then GlobalColor("LabelGreen") else color.red) ĪddLabel(Show_Labels, "Sell %: " + Round((Selling/(Selling+Buying))*100,2), If (Selling/(Selling+Buying))*100 > 60 then GlobalColor("LabelGreen") else color.RED) Buy / Sell Volume Pressure w/ volumes and percentages - Upper Study Labels Only Profile tpo = timeProfile("startNewProfile" = cond, "onExpansion" = onExpansion, "numberOfProfiles" = profiles, "pricePerRow" = height, "value area percent" = valueAreaPercent) ĭef con = compoundValue(1, onExpansion, no) ĭef pc = if IsNaN(tpo.getPointOfControl()) and con then pc else tpo.getPointOfControl() ĭef hVA = if IsNaN(tpo.getHighestValueArea()) and con then hVA else tpo.getHighestValueArea() ĭef lVA = if IsNaN(tpo.getLowestValueArea()) and con then lVA else tpo.getLowestValueArea() ĭef hProfile = if IsNaN(tpo.getHighest()) and con then hProfile else tpo.getHighest() ĭef lProfile = if IsNaN(tpo.#Chris' Enhanced Volume V.2 /w Uptick/Downtickĭef volumestdev = RelativeVolumeStDev(length = Deviation_Length) ĭef decrease = volume Selling then GlobalColor("LabelGreen") else color.red) ĪddLabel(Show_Labels, "Buy %: " + Round((Buying/(Buying+Selling))*100,2), If (Buying/(Buying+Selling))*100 > 60 then GlobalColor("LabelGreen") else color.red) ĪddLabel(Show_Labels, "Sell Vol = " + Round(Selling, 0), Period = countTradingDays(Min(first(yyyymmdd), yyyymmdd), yyyymmdd) - 1 ĭef RTHBar1 = if SecondsFromTime(RthBegin) = 0 andĭef RTHBarEnd = if SecondsFromTime(RthEnd) = 0 andĭef RTH = SecondsFromTime(RthBegin) > 0 andĮlse getTime() % (Minutes * 60 * 1000) = 0 Period = floor(seconds / 3600 + day_number * 24) Period = floor(seconds / 60 + day_number * 24 * 60) Input pricePerRowHeightMode = ĭef day_number = daysFromDate(first(yyyymmdd)) + getDayOfWeek(first(yyyymmdd)) ĭef dow = getDayOfWeek(yyyymmdd - dom + 1) ĭef expthismonth = (if dow > 5 then 27 else 20) - dow ĭef exp_opt = month + (dom > expthismonth)









Thinkorswim volume profile script