NexusFi: Find Your Edge


Home Menu

 





Plotting a subchart in a strategy


Discussion in EasyLanguage Programming

Updated
    1. trending_up 5,487 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?
June 15 Peace Odds Surge From 3.6% to 12.25% After Trump …
Prediction Markets & Event Contracts
Fabrication or Framework? Irans Denied MOU Explains the …
Prediction Markets & Event Contracts
Beijing Summit Closes: Xi Pledges Hormuz Help -- $1.14B …
Prediction Markets & Event Contracts
CFTC Approves First US Bitcoin Perpetual Futures -- Kals …
Traders Hideout
CFTC Opens First COT Report Review in 20 Years -- Asks W …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
196 thanks
Sober Journey With S&P
27 thanks
30 Sessions
20 thanks
BERN ALGOS algo trading journal
8 thanks
Volume Indicators
8 thanks
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,642

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