NexusFi: Find Your Edge


Home Menu

 





Using upper / lower graph data


Discussion in ThinkOrSwim

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




 
Search this Thread

Using upper / lower graph data

  #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?
ZombieSqueeze
Platforms and Indicators
Are there any eval firms that allow you to sink to your …
Traders Hideout
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Futures True Range Report
The Elite Circle
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
59 thanks
Funded Trader platforms
36 thanks
NexusFi site changelog and issues/problem reporting
25 thanks
GFIs1 1 DAX trade per day journal
19 thanks
The Program
18 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


© 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