Problem importing a third party indicator .ts extension

spartacus28

New member
VIP
.ts file sitting on my desktop in plain view for which I had trouble importing into TOS as a new indicator.
I e-mailed .ts file to friend who has TOS and he was able to import. He said he had to rename file before
importing and then e-mailed a shared chart of imported new indicator. very confused......Why did he have to
rename .ts file before importing???

Can someone post code of below so I can copy code into TOS?

Don't know why I'm having so many problems importing a simple .ts file.

.ts file downloaded from UseThinkScripts is in Zip File.

Much Thanks
 

Attachments

  • Smarter-MACD-Indicator-for-ThinkOrSwim.zip
    1 KB · Views: 6
Solution
All you had to do was click on the zip file to open it, click on the .ts file to open it (or Right-Click and select Notepad), Copy the code and Paste it into a new Study and Save in TOS... It's ridiculous that someone would store the instructions in a zip file that just tells you to watch a video to learn how to import a .ts file... That's why I recommend members ALWAYS post the script code in posts rather than posting links or zips...

Ruby:
#TOS Indicators
#Home of the Volatility Box
#Indicator Name: Smarter MACD
#Full tutorial here: tosindicators.com/indicators/smarter-macd

declare lower;
input lever = {default "Fast", "Slow", "Medium"};
input mode = {default "Aggressive", "Conservative"};

def fastLength;
def slowLength;
def...
All you had to do was click on the zip file to open it, click on the .ts file to open it (or Right-Click and select Notepad), Copy the code and Paste it into a new Study and Save in TOS... It's ridiculous that someone would store the instructions in a zip file that just tells you to watch a video to learn how to import a .ts file... That's why I recommend members ALWAYS post the script code in posts rather than posting links or zips...

Ruby:
#TOS Indicators
#Home of the Volatility Box
#Indicator Name: Smarter MACD
#Full tutorial here: tosindicators.com/indicators/smarter-macd

declare lower;
input lever = {default "Fast", "Slow", "Medium"};
input mode = {default "Aggressive", "Conservative"};

def fastLength;
def slowLength;
def averageType;
switch(lever){
case "Fast":
    fastLength = 3;
    slowLength = 8;
    averageType = AverageType.Exponential;
case "Slow":
    fastLength = 10;
    slowLength = 20;
    averageType = AverageType.Simple;
case "Medium":
    fastLength = 12;
    slowLength = 26;
    averageType = AverageType.Exponential;
}

def outputLength;
switch(mode){
case "Aggressive":
    outputLength = fastLength;
case "Conservative":
    outputLength = slowLength;
}
def higherTF = if getAggregationPeriod() < AggregationPeriod.Five_Min then AggregationPeriod.Five_Min
else if getAggregationPeriod() < AggregationPeriod.Fifteen_Min then AggregationPeriod.Fifteen_Min
else if getAggregationPeriod() < AggregationPeriod.Thirty_Min then AggregationPeriod.Thirty_Min
else if getAggregationPeriod() < AggregationPeriod.Hour then AggregationPeriod.Hour
else if getAggregationPeriod() < AggregationPeriod.Day then AggregationPeriod.Day
else if getAggregationPeriod() < AggregationPeriod.Week then AggregationPeriod.Week
else if getAggregationPeriod() < AggregationPeriod.Month then AggregationPeriod.Month
else AggregationPeriod.Year;
def Value = MovingAverage(averageType, close(period = higherTF), fastLength) - MovingAverage(averageType, close(period = higherTF), slowLength);
plot smarterMACD = MovingAverage(averageType, Value, outputLength);
def upSwitch = if smarterMACD > smarterMACD[1] then 1 else if smarterMACD < smarterMACD[1] then 0 else upSwitch[1];
def downSwitch = if smarterMACD < smarterMACD[1] then 1 else if smarterMACD > smarterMACD[1] then 0 else downSwitch[1];
smarterMACD.setLineWeight(2);
smarterMACD.AssignValueColor(if upSwitch then color.green else if downSwitch then color.red else color.gray);
 
Solution

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

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
1094 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