Plotting a subchart in a strategy - futures io
futures io



Plotting a subchart in a strategy


Discussion in EasyLanguage Programming

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




Welcome to futures io: the largest futures trading community on the planet, with well over 150,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

Plotting a subchart in a strategy

(login for full post details)
  #1 (permalink)
JBroex
Istanbul
 
 
Posts: 35 since Sep 2020
Thanks: 24 given, 19 received

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 futures io?
Multi Time Frame High/Low/Median levels
NinjaTrader
Zig Zag from Indicator to Inputs Generator
EasyLanguage Programming
Big Mo Indicator for NT8
NinjaTrader
Tradovate + Jigsaw issues
Tradovate
Anyone ever use "Seasonax" website?
Trading Reviews and Vendors
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Is anyone actually making money?
52 thanks
An embarrassing, honest confession
40 thanks
Sierra vs. Ninja : why I chose .....
9 thanks
Demo accounts order fill
6 thanks
Rithmic vs Denali - Market Depth Difference
6 thanks
 
(login for full post details)
  #2 (permalink)
 ABCTG   is a Vendor
 
 
Posts: 2,363 since Apr 2013
Thanks: 426 given, 1,580 received

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 Twitter Reply With Quote
The following user says Thank You to ABCTG for this post:
 
(login for full post details)
  #3 (permalink)
JBroex
Istanbul
 
 
Posts: 35 since Sep 2020
Thanks: 24 given, 19 received



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


futures io Trading Community Platforms and Indicators EasyLanguage Programming > Plotting a subchart in a strategy


Last Updated on November 1, 2020


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
     



Copyright © 2023 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada), info@futures.io
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.
no new posts