NexusFi: Find Your Edge


Home Menu

 





Help with TOS Indicator


Discussion in ThinkOrSwim

Updated
    1. trending_up 1,131 views
    2. thumb_up 5 thanks given
    3. group 3 followers
    1. forum 5 posts
    2. attach_file 1 attachments




 
Search this Thread

Help with TOS Indicator

  #1 (permalink)
TradingForALiving
Miami Florida US
 
Posts: 16 since Oct 2015
Thanks Given: 6
Thanks Received: 1

There is a study in TOS called "Comparison" which basically allows you to plot a chart of another security below the chart I am currently viewing. I usually use the SPX as my default comparison chart. My question is would it be possible to add an 8 bar exponential moving average to the Comparison chart? If so can you please supply the script? I would appreciate any help you can give me. Thank you in advance.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
ZombieSqueeze
Platforms and Indicators
Exit Strategy
NinjaTrader
Better Renko Gaps
The Elite Circle
How to apply profiles
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
32 thanks
Just another trading journal: PA, Wyckoff & Trends
26 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
23 thanks
GFIs1 1 DAX trade per day journal
19 thanks
  #2 (permalink)
netarchitech
NY, NY
 
Posts: 68 since Dec 2011
Thanks Given: 27
Thanks Received: 19

Hi,

Try this:
 
Code
declare upper;

input comparisonStyle = {"BAR", "CANDLE", default "LINE"};
input secondarySecurity = "";

def price1 = close;
def length1 = 8;
def displace1 = 0;
input averageType1 = AverageType.EXPONENTIAL;

plot MA1 = MovingAverage(averageType1, price1[-displace1], length1);
    MA1.SetDefaultColor(Color.CYAN);
    MA1.SetLineWeight(2);
    MA1.SetStyle(Curve.FIRM);
    MA1.DefineColor("Up", Color.GREEN);
    MA1.DefineColor("Down", Color.RED);
    MA1.AssignValueColor(if MA1 > MA1[1] then MA1.color("Up") else MA1.color("Down"));

Hope this helps...

Good Luck and Good Trading

Reply With Quote
Thanked by:
  #3 (permalink)
TradingForALiving
Miami Florida US
 
Posts: 16 since Oct 2015
Thanks Given: 6
Thanks Received: 1


I really appreciate you taking the time to help me but that code seems to just draw a moving average on the top chart. What I was looking for is to place the moving average onto the comparison chart.
I enclosed an example... The chart on top is a daily QQQ chart with an 8 EMA. The chart below with the grey bars is a daily SPY chart. How do I get an 8 ema on the SPY chart. Thank you for your help.


Reply With Quote
  #4 (permalink)
netarchitech
NY, NY
 
Posts: 68 since Dec 2011
Thanks Given: 27
Thanks Received: 19

Hello again,

After trying a couple of things, I believe you can't plot a moving average on a Comparison chart, but I would call Tech Support to confirm this...

Good Luck and Good Trading

Reply With Quote
  #5 (permalink)
TradingForALiving
Miami Florida US
 
Posts: 16 since Oct 2015
Thanks Given: 6
Thanks Received: 1

I appreciate your efforts.... Thanks!

Reply With Quote
Thanked by:
  #6 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,444 since Jun 2009
Thanks Given: 33,217
Thanks Received: 101,608

Be sure to show appreciation by using the thanks button
TradingForALiving View Post
I appreciate your efforts.... Thanks!

Sent using the NexusFi mobile app

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:




Last Updated on March 28, 2020


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts