Match zerolines and scaling of two studies in same lower panel - futures io
futures io futures trading



Match zerolines and scaling of two studies in same lower panel


Discussion in ThinkOrSwim

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




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

Match zerolines and scaling of two studies in same lower panel

(login for full post details)
  #1 (permalink)
Seattle, USA
 
Experience: Intermediate
Platform: NT7, NT8, TOS
Broker: NinjaTrader / CQG / TDA
Trading: NQ, YM, CL, GC
 
Lancer's Avatar
 
Posts: 21 since Jul 2016
Thanks: 11 given, 2 received

Using two standard TOS studies, MACDTwoLines and MACDHistogram in the same lower panel, where are the settings controls to match the zerolines and right axis scaling? As it is now, both studies have separate zero lines, and the right axis scale changed to percentage, and there is no way to change it that I can see.

Started this thread Reply With Quote

Can you help answer these questions
from other members on futures io?
ZigZag with Depth and Backstep
EasyLanguage Programming
COTbase for quant trading?
Elite Algorithmic NinjaTrader Trading
Webinar: Finding your own way in trading w/Adam Grimes
The Elite Circle
EL/PL for FOPs?
EasyLanguage Programming
Cross border fund flows / fx correlations
Treasury Notes and Bonds
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Battlestations: Show us your trading desks!
137 thanks
Want your NinjaTrader indicator created, free?
32 thanks
Big Mike in Ecuador
30 thanks
Saturday Morning Market Replay!
20 thanks
Selling Options on Futures?
19 thanks
 
(login for full post details)
  #2 (permalink)
Seattle, USA
 
Experience: Intermediate
Platform: NT7, NT8, TOS
Broker: NinjaTrader / CQG / TDA
Trading: NQ, YM, CL, GC
 
Lancer's Avatar
 
Posts: 21 since Jul 2016
Thanks: 11 given, 2 received

No answer, so I'll assume there are no controls to set multiple studies in a lower panel to the same right scale. So, does anyone have a Thinkscript file that plots both the MACDTwoLines and the MACDHistogram? In a single script, the zerolines and the vertical scale would be the same.

There are a few TOS scripts here on futures.io, but not that one exactly. Does anyone know if TDAmeritrade has an archive of Thinkscript files posted by users, available for download?

Started this thread Reply With Quote
 
(login for full post details)
  #3 (permalink)
Trubchevsk
 
Experience: Beginner
Platform: tos
Trading: stocks
 
Posts: 61 since May 2011
Thanks: 38 given, 79 received



Lancer View Post
No answer, so I'll assume there are no controls to set multiple studies in a lower panel to the same right scale. So, does anyone have a Thinkscript file that plots both the MACDTwoLines and the MACDHistogram? In a single script, the zerolines and the vertical scale would be the same.

There are a few TOS scripts here on futures.io, but not that one exactly. Does anyone know if TDAmeritrade has an archive of Thinkscript files posted by users, available for download?




declare lower;

input fastLength = 12;
input slowLength = 26;
input MACDLength = 9;
input averageType = AverageType.EXPONENTIAL;
plot Value = MACD(fastLength, slowLength, MACDLength, averageType).Value;
plot Avg = MACD(fastLength, slowLength, MACDLength, averageType).Avg;
plot Diff = MACD(fastLength, slowLength, MACDLength, averageType).Diff;
plot ZeroLine = 0;
Value.SetDefaultColor(GetColor(1));
Avg.SetDefaultColor(GetColor(8));
ZeroLine.SetDefaultColor(GetColor(0));
Diff.SetDefaultColor(GetColor(5));
Diff.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
Diff.SetLineWeight(3);
Diff.DefineColor("Positive and Up", Color.GREEN);
Diff.DefineColor("Positive and Down", Color.DARK_GREEN);
Diff.DefineColor("Negative and Down", Color.RED);
Diff.DefineColor("Negative and Up", Color.DARK_RED);
Diff.AssignValueColor(if Diff >= 0 then if Diff > Diff[1] then Diff.color("Positive and Up") else Diff.color("Positive and Down") else if Diff < Diff[1] then Diff.color("Negative and Down") else Diff.color("Negative and Up"));

Follow me on Twitter Reply With Quote
The following user says Thank You to growex for this post:
 
(login for full post details)
  #4 (permalink)
Seattle, USA
 
Experience: Intermediate
Platform: NT7, NT8, TOS
Broker: NinjaTrader / CQG / TDA
Trading: NQ, YM, CL, GC
 
Lancer's Avatar
 
Posts: 21 since Jul 2016
Thanks: 11 given, 2 received

Thanks to growex. Here is the script file.

Attached Files
Register to download File Type: ts MACDandHistogramSTUDY.ts (1.5 KB, 10 views)
Started this thread Reply With Quote


futures io Trading Community Platforms and Indicators ThinkOrSwim > Match zerolines and scaling of two studies in same lower panel


Last Updated on April 7, 2018


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Battlestations! Show us your trading desk - $1,500 in prizes!

March
 

Importance of Finding Your Own Way w/Adam Grimes

Elite only
 

Journal Challenge w/Jigsaw

April
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts