John Thanos
New member
Hi everyone,
I stumbled upon this on IG. Attached is a video describing the functions. I searched around TOS and found VolumeFlowIndicator. I adjusted the settings using (22, 2.5) from the default (130, 2.5) and I dragged it up to "Price" in the Edit Studies pop up. I'm using the 1 or 5min and it looks like it's close to Tradytics AlgoFlow. I'm not a coder at all and have no clue to make any adjustments. I was wondering if anyone could clean this up to make similar to Tradytics. Thanks.
ToS VolumeFlowIndicator:
I stumbled upon this on IG. Attached is a video describing the functions. I searched around TOS and found VolumeFlowIndicator. I adjusted the settings using (22, 2.5) from the default (130, 2.5) and I dragged it up to "Price" in the Edit Studies pop up. I'm using the 1 or 5min and it looks like it's close to Tradytics AlgoFlow. I'm not a coder at all and have no clue to make any adjustments. I was wondering if anyone could clean this up to make similar to Tradytics. Thanks.
Ruby:
#
# TD Ameritrade IP Company, Inc. (c) 2007-2022
#
declare lower;
input length = 130;
input maxVolumeCutOff = 2.5;
assert(maxVolumeCutOff > 0, "'max volume cut off' must be positive: " + maxVolumeCutOff);
def cutOff = 0.2 * stdev(log(hlc3) - log(hlc3[1]), 30) * close;
def hlcChange = hlc3 - hlc3[1];
def avgVolume = Average(volume, 50)[1];
def minVolume = Min(volume, avgVolume * maxVolumeCutOff);
def dirVolume = if hlcChange > cutOff
then minVolume
else if hlcChange < -cutOff
then -minVolume
else 0;
plot VFI = ExpAverage(sum(dirVolume, length) / avgVolume, 3);
plot ZeroLine = 0;
VFI.setDefaultColor(getColor(8));
ZeroLine.setDefaultColor(getColor(8));
Last edited by a moderator: