MTF accumulation distribution

  • Thread starter ProcrastinatingPerfection
  • Start date
P

ProcrastinatingPerfection

New member
I'm attempting to make a MTF accumulation distribution script. I can't seem to get it right. Any help would be appreciated. Thank you all.

My coding attempt:

declare lower;
input = {"1 min", "3 min", "5 min", "15 min", "30 min", "60 min", "120 min", "Daily"},

plot AccDist = TotalSum(volume * CloseLocationValue());
plot ZeroLine = 0;

AccDist.SetDefaultColor(GetColor(1));
ZeroLine.SetDefaultColor(GetColor(5));
 
horserider

horserider

Well-known member
VIP
First start with an accumulation/distribution study, then define your aggregation period, and make a new part of the script which includes the aggregation period in the calculations.
 
P

ProcrastinatingPerfection

New member
I am trying to follow your instruction but i'm such a noob that I can't get it. I have the study and i'm trying to define the periods in a new part of the script to the best of my ability and then a sea of red invalid statements.
 
horserider

horserider

Well-known member
VIP
Input your agg,,,,input agg = aggregationPeriod.DAY; then apply agg to the calculation variable you wish. (period = agg)
I think with your base study it will be difficult.
 
Thread starter Similar threads Forum Replies Date
H Turning an indicator into MTF? Questions 1
B Help me create Schaff MTF version Questions 2
H MTF ADX? Questions 2
H MTF Force Index Binary for ThinkorSwim Indicators 0
Pelonsax Help with MTF condition Questions 3

Similar threads

Top