NexusFi: Find Your Edge


Home Menu

 





Plotting a subchart in a strategy


Discussion in EasyLanguage Programming

Updated
    1. trending_up 5,635 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?
My Rant with AMP Futures
Trading Reviews and Vendors
No book, only a stair: journaling fills where price move …
Cryptocurrency
Trump Media to sell instant access to market-moving soci …
Traders Hideout
Datafeed for Atas
Platforms and Indicators
requesting .nrd replay files from 2026 spy and qqq
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Mes vs MNQ
6 thanks
NexusFi site changelog and issues/problem reporting
5 thanks
BERN ALGOS algo trading journal
3 thanks
Johnnys Journal
2 thanks
TopStep Trader disappointment
2 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