# Add offset to a 3min HMA135 on 1min chart

#### dhfii55

##### New member
Add offset to existing indicator that places a 3min 135 HMA to 1 minute chart

input threeMinuteHullMALength = 135;
plot HMAthreeMinuteChart = HullMovingAvg
(close(period="3 Min"), threeMinuteHullMALength);

This is the formula I have created but I would like to offset the resulting indicator by 10 Minutes.
Thanks so much

Last edited by a moderator:
Solution
Assuming you are on a 1m chart, make your plot like this:
Code:
``plot HMAthreeMinuteChart = HullMovingAvg(close(period=AggregationPeriod.THREE_MIN), threeMinuteHullMALength)[10];``
if that moved it 10 minutes the wrong direction (not sure which way you wanted it to offset) then use this code:
Code:
``plot HMAthreeMinuteChart = HullMovingAvg(close(period=AggregationPeriod.THREE_MIN), threeMinuteHullMALength)[-10];``

the [10] bracket notation tells ToS how many bars (in this case minutes as well) to offset the plot. I also fixed your aggregation on the close price.

-mashume
Assuming you are on a 1m chart, make your plot like this:
Code:
``plot HMAthreeMinuteChart = HullMovingAvg(close(period=AggregationPeriod.THREE_MIN), threeMinuteHullMALength)[10];``
if that moved it 10 minutes the wrong direction (not sure which way you wanted it to offset) then use this code:
Code:
``plot HMAthreeMinuteChart = HullMovingAvg(close(period=AggregationPeriod.THREE_MIN), threeMinuteHullMALength)[-10];``

the [10] bracket notation tells ToS how many bars (in this case minutes as well) to offset the plot. I also fixed your aggregation on the close price.

-mashume

Add offset to existing indicator that places a 3min 135 HMA to 1 minute chart

input threeMinuteHullMALength = 135;
plot HMAthreeMinuteChart = HullMovingAvg
(close(period="3 Min"), threeMinuteHullMALength);

This is the formula I have created but I would like to offset the resulting indicator by 10 Minutes.
Thanks so much
Thaks very much Mashume. I really appreciate your taking the time to reply.

87k+ Posts
302 Online

## The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
• Exclusive indicators
• Proven strategies & setups
• Private Discord community
• Exclusive members-only content
• 1 full year of unlimited support

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?