MTF Automatic Fibonacci Retracement

rwfarrell

Member
Hello, I originally was just going to ask a question but since I have the auto fibonacci script I included it. My question is can anyone add a MTF script to this? I have been trying but no success. One of the strats I do is mark off the highs and lows of a stock on the weekly timeframe using the fib retracement tool on ToS. What I am trying to accomplish is to have a fibonacci script that pulls the weekly highs and lows automatically to a lower timeframe like the 30m or 5m? Thank you

Code:
########
def open = open(period = agg);
def high = high(period = agg);
def low = low(period = agg);
def close = close(period = agg);

input length = 1000;

def DayHigh = HighestAll(high);
def DayLow = LowestAll(low);
plot Dh = DayHigh;
plot Dl = DayLow;

def hi = GetMaxValueOffset(high);
def lo = GetMinValueOffset(low);

#def o = open(period = agg);
def hitime = GetMaxValueOffset(DayHigh , length);
def lotime = GetMinValueOffset(DayLow , length);
def updown = if hitime >= lotime then 1 else 0;


def ud23 = If ( updown, 0.236, (1 - 0.236));
def ud38 = If ( updown, 0.382, (1 - 0.382));
def ud61 = If ( updown, 0.618, (1 - 0.618));
def ud78 = If ( updown, 0.764, (1 - 0.764));

plot uFib50 = (DayHigh - DayLow) / 2 + DayLow;
plot uFib23 = (DayHigh - DayLow) * ud23 + DayLow;
plot uFib382 = (DayHigh - DayLow) * ud38 + DayLow;
plot uFib618 = (DayHigh - DayLow) * ud61 + DayLow;
plot uFib764 = (DayHigh - DayLow) * ud78 + DayLow;
 
I would prefer to use tick time charts if possible-
Can TOS plot a fib time extension at each swing low (persons or other) aggregating on current chart with a 2nd aggregation setting choice dropdown? I am ok at writing scans but not there on writing indicators... Can someone please help with the code?

bump
 
Last edited by a moderator:
I would prefer to use tick time charts if possible-
Can TOS plot a fib time extension at each swing low (persons or other) aggregating on current chart with a 2nd aggregation setting choice dropdown? I am ok at writing scans but not there on writing indicators... Can someone please help with the code?

bump
Scripts utilizing Intraday aggregations cannot be used on tick charts.

The tick charts x and y-axis only use data related to price and volume lots. It has no comprehension of intraday time.
Therefore, it is NOT possible to use MTF indicators on tick charts.
 

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

Thread starter Similar threads Forum Replies Date
B MTF Stochastic Questions 1
E MTF Stacked Moving Averages Questions 3
M MTF AMA Questions 2
C MTF EMA cloud Questions 1
V MTF Marubozu signals Questions 0

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
424 Online
Create Post

Similar threads

Similar threads

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top