NexusFi: Find Your Edge


Home Menu

 





Plotting a subchart in a strategy


Discussion in EasyLanguage Programming

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




 
Search this Thread

Plotting a subchart in a strategy

  #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?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
What broker to use for trading palladium futures
Commodities
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Strategy stop orders partially filled
EasyLanguage Programming
MC PL editor upgrade
MultiCharts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
24 thanks
What is Markets Chat (markets.chat) real-time trading ro …
19 thanks
ApexTraderFunding.com experience and review
16 thanks
GFIs1 1 DAX trade per day journal
12 thanks
EG Indicators
11 thanks
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629

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
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


© 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