NexusFi: Find Your Edge


Home Menu

 





Using upper / lower graph data


Discussion in ThinkOrSwim

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




 
Search this Thread
  #1 (permalink)
PetrosCroix
Denver + COlorado + USA
 
Posts: 4 since Sep 2016
Thanks Given: 0
Thanks Received: 0

Hello,
I hope I named this thread correctly. I noticed there are names to the graph areas, price, volume, lower, lower, lower.
I want to reference the lower data in the price graph scripts.
I am having a terrible time finding instructive material dealing with this.

I have seen declare lower and script reserved words. But in a price graph script can I reference lower data?
I tried using lower.MACD(12,9,26) but the data is too small. I want to use the data from different graph levels. Is this possible?
Thanks in advance.


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Hormuz Completely Closed: US Strikes Day 2, Iran Shoots …
Traders Hideout
Trump Lands in Beijing on CPI Day: Iran Peace Expires To …
Prediction Markets & Event Contracts
Irans Dual Probability: Guns Quiet at 99.95% While Forma …
Prediction Markets & Event Contracts
Memorandum Watch: How the 60-Day MOU Framework Makes May …
Prediction Markets & Event Contracts
Six Days to Kickoff: World Cup Prediction Markets Hit $1 …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
205 thanks
Sober Journey With S&P
21 thanks
30 Sessions
21 thanks
Volume Indicators
8 thanks
Thanks Mike. Godspeed.
7 thanks
  #2 (permalink)
 TradingWiz 
Taipei
 
Experience: Intermediate
Platform: NinjaTrader
Trading: ES
Posts: 1 since Jan 2016
Thanks Given: 1
Thanks Received: 0

I'm not sure that I understood your question, within Thinkorswim, I don't think it is possible to reference plotted chart data (charts are refreshed every time a new bar is plotted).

However, if you want to reference the specific instance of the MACD study, then you can simply write the following:
 
Code
def MD = MACD(12,9,26);
We note here that the variable MD will contain the information you require for each bar.

if instead, you only wanted the default values of the same study, then you may use the REFERENCE keyword:
 
Code
def MD = reference MACD;
Where the default values are as follows:
 
Code
input fastLength = 12;
input slowLength = 26;
input MACDLength = 9;
input averageType = AverageType.EXPONENTIAL;


Reply With Quote
  #3 (permalink)
PetrosCroix
Denver + COlorado + USA
 
Posts: 4 since Sep 2016
Thanks Given: 0
Thanks Received: 0


I have an imported study that plots in the lower sub graph. I wanted to reference that data but it is not in the study references. It looks like I have to pull the code into my main development study to get to the data.
I tried your macd def. I am curious as to how the data shows up so large in the bottom subgraph. I can not find any settings for the vertical.


TradingWiz View Post
I'm not sure that I understood your question, within Thinkorswim, I don't think it is possible to reference plotted chart data (charts are refreshed every time a new bar is plotted).

However, if you want to reference the specific instance of the MACD study, then you can simply write the following:
 
Code
def MD = MACD(12,9,26);
We note here that the variable MD will contain the information you require for each bar.

if instead, you only wanted the default values of the same study, then you may use the REFERENCE keyword:
 
Code
def MD = reference MACD;
Where the default values are as follows:
 
Code
input fastLength = 12;
input slowLength = 26;
input MACDLength = 9;
input averageType = AverageType.EXPONENTIAL;


Reply With Quote




Last Updated on October 11, 2016


© 2026 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 - Downloads - Top
no new posts