NexusFi: Find Your Edge


Home Menu

 





Plotting a subchart in a strategy


Discussion in EasyLanguage Programming

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




 
Search this Thread
  #1 (permalink)
JBroex
Istanbul
 
Posts: 35 since Sep 2020
Thanks Given: 24
Thanks Received: 19

Hi everyone,

Im trying to use the ATR in one of my strategies and here im taking the a 20day average of the ATR. I want to plot it, but not in the graph, in a subchart.

I can plot it in the graph via TL_new, but since the average of the ATR has a different numerical value as the graph itself, I need to plot this on a subchart.
So how do you plot your strategy components in a subchart?

I have this for now
 
Code
Value1 = TL_new(d[1],t[1],average(AvgTrueRange(ATRLength),ATRAvg)1],d,t,average(AvgTrueRange(ATRLength),ATRAvg));
		Tl_setcolor(value1,cyan);
Thanks!


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Iran Airspace Collapses 18 Points to 15.5% While Hormuz …
Prediction Markets & Event Contracts
Fabrication or Framework? Irans Denied MOU Explains the …
Prediction Markets & Event Contracts
Memorandum Watch: How the 60-Day MOU Framework Makes May …
Prediction Markets & Event Contracts
Hormuz Normalization Collapses to 19.5% -- Iran Regime F …
Prediction Markets & Event Contracts
Iran Fired a Missile at Israel Last Night. The $8M June …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
15 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 thanks
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,643

JBroex,

you might not be able to apply drawings in a subchart directly from a strategy.

The easiest approach would be to use a separate indicator that handles the plotting/drawing in a subchart.

If you need values from within the strategy that could not be computed directly in the indicator, too, you could send them to an indicator for example using a Global Dictionary and handle the display within the indicator.

Regards,

ABCTG


JBroex View Post
Hi everyone,

Im trying to use the ATR in one of my strategies and here im taking the a 20day average of the ATR. I want to plot it, but not in the graph, in a subchart.

I can plot it in the graph via TL_new, but since the average of the ATR has a different numerical value as the graph itself, I need to plot this on a subchart.
So how do you plot your strategy components in a subchart?

I have this for now
 
Code
Value1 = TL_new(d[1],t[1],average(AvgTrueRange(ATRLength),ATRAvg)1],d,t,average(AvgTrueRange(ATRLength),ATRAvg));
		Tl_setcolor(value1,cyan);
Thanks!


Follow me on X Reply With Quote
Thanked by:
  #3 (permalink)
JBroex
Istanbul
 
Posts: 35 since Sep 2020
Thanks Given: 24
Thanks Received: 19



ABCTG View Post
JBroex,



you might not be able to apply drawings in a subchart directly from a strategy.



The easiest approach would be to use a separate indicator that handles the plotting/drawing in a subchart.



If you need values from within the strategy that could not be computed directly in the indicator, too, you could send them to an indicator for example using a Global Dictionary and handle the display within the indicator.



Regards,



ABCTG



Great that helps a lot!!


Reply With Quote




Last Updated on November 1, 2020


© 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