jngy2k
Member
@SuryaKiranC
So the post on float rotation the script works around the problem of obtaining float data from TOS by manually inputing float by the user.
Pretty clever. But not perfect.
There is some error I receive with charting.
The indicator doesn't function on any other chart than the 1m chart.
Any work around to this if it can be fixed to work with 3m, 5m, 10m, chart etc. ??
Shout out to @zeek for coming up with this edge before I did.
So the post on float rotation the script works around the problem of obtaining float data from TOS by manually inputing float by the user.
Pretty clever. But not perfect.
There is some error I receive with charting.
The indicator doesn't function on any other chart than the 1m chart.
Any work around to this if it can be fixed to work with 3m, 5m, 10m, chart etc. ??
Code:
def Today = volume(period = "DAY");
input Float = 10000000;
def V = if Today then volume(period = aggregationPeriod.MIN) else 0;
def TVol = TVol[1] + V;
def nodes = (TVol) % Float;
AddVerticalLine(nodes < nodes[1], CONCAT("Float Rotated: ", CONCAT(round(TVol / float, 0), "")) , Color.WHITE, Curve.SHORT_DASH);
AddLabel (yes, ("Float: ")+ Round(Float * .000001, 1) + "M", Color.White);
AddLabel (yes, ("T.Vol: ")+ Round(Today * .000001, 2) + "M", Color.White);
Addlabel (yes, ("Float RT: x")+ Round(Today/float, 0), if nodes < 0 then color.WHITE else Color.RED);
plot Data = close;