NexusFi: Find Your Edge


Home Menu

 





Why will built-in indicators appear on main chart?


Discussion in EasyLanguage Programming

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




 
Search this Thread

Why will built-in indicators appear on main chart?

  #1 (permalink)
swingbatter
Arlington
 
Posts: 18 since Feb 2020
Thanks Given: 6
Thanks Received: 3

Usually when you add a built-in TradeStation indicator, such as "Floor Trader Pivots," its default option is to "Scale on: Same Axis as Underlying Data" and it will appear on the main chart.

But others, like "Strategy Equity," default to "Scale on: Right Axis Sub-graph: 2" and will appear in a sub-graph.

Also, when I copy-paste the "Floor Trader Pivots" code, word-for-word, into a newly created indicator, and then add this new study, it now defaults to the sub-graph instead of the main chart.

Why? I don't see anything in the code that sets the "scale on" setting. Is there a way to code it? Would be nice if there was.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
ZombieSqueeze
Platforms and Indicators
REcommedations for programming help
Sierra Chart
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
MC PL editor upgrade
MultiCharts
 
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629

swingbatter,

you can only specify this on the Scaling tab of the indicator properties, but unfortunately not from the code. If you set this in the development environment for a study it will apply to every new instance to the study that you add to a chart.

Regards,

ABCTG


swingbatter View Post
Usually when you add a built-in TradeStation indicator, such as "Floor Trader Pivots," its default option is to "Scale on: Same Axis as Underlying Data" and it will appear on the main chart.

But others, like "Strategy Equity," default to "Scale on: Right Axis Sub-graph: 2" and will appear in a sub-graph.

Also, when I copy-paste the "Floor Trader Pivots" code, word-for-word, into a newly created indicator, and then add this new study, it now defaults to the sub-graph instead of the main chart.

Why? I don't see anything in the code that sets the "scale on" setting. Is there a way to code it? Would be nice if there was.


Follow me on Twitter Reply With Quote
Thanked by:
  #3 (permalink)
swingbatter
Arlington
 
Posts: 18 since Feb 2020
Thanks Given: 6
Thanks Received: 3



ABCTG View Post
swingbatter,

you can only specify this on the Scaling tab of the indicator properties, but unfortunately not from the code. If you set this in the development environment for a study it will apply to every new instance to the study that you add to a chart.

Regards,

ABCTG

Oh cool! Dev Environment: File>Properties>Scaling to set the default graph placement when you add to a chart. Never knew about that.
Thanks again ABCTG.

Reply With Quote




Last Updated on September 24, 2021


© 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