Click here to Login





                                                   Plot text and variable in the same line

  1

0
irfan
2019-04-08 06:45:48


Hi,
I want to plot text and variable in the same line on a chart that look like:

hw52 = HHV(high, 260);
PrintChart("52 Week High: " & hw52, .... ); (this statement not work).

Thank you for your help.



Seeker
2019-04-08 23:37:03

  0

Best Answer
PrintChart("52 Week High: ".hw52,

//basically the dot should be put before the variable. if you want to put a text after the variable also, you can put a dot and define text there.



irfan
2019-04-09 10:55:15

  0

That work. Thanks.


exponentialTrader2017
2022-11-29 01:26:42

  0

if I use that to diplay the value of some function f(x), it display very long numbers say 8.0123455678, how can we make it to display just 8.012?


Seeker
2022-11-30 08:35:06

  1

PrintChart("52 Week High: ".round(hw52,2));


No more messages
0




Reply:

No html code. URLs turn into links automatically.

Type in the trading objects you want to include: - Add Objects
To add a trading object in your message, type in the object name, select it and then click on "Add Objects"










QuantShare

Trading Items
How far are the close prices from the support line
PREV - Previous value of the same formula
Trading Indicator: True between the first and last signal
Horizontal Line - Changes by Value and Percentage
Standard Error of the Estimate of a Regression Line

How-to Lessons
How to plot two different time frames in the same chart
How to plot a stock using different periods in the same chart
How to plot the number of stock tweets per day
How to plot support and resistance lines automatically
How to scale and move the chart Y-axis

Related Forum Threads
Arrow has the same properties as a trend line
change color of Ichimoku Cloud and plot the cloud in future 26 ba...
Using the same data in Amibroker and Quantshare
Basic features and some issues with the background
Plot differnt line style when RSI above or below 80/20 lines

Blog Posts
How to predict and trade the stock market using pivot points
Backtesting chart patterns using the auto support and resistance ...
How to Calculate and Display the Bid/Ask Spread on a Chart
Trading Indicators using the Rank and Percentile functions
Select the best ETFs combination to maximize your return and redu...









QuantShare
Product
QuantShare
Features
Create an account
Affiliate Program
Support
Contact Us
Trading Forum
How-to Lessons
Manual
Company
About Us
Privacy
Terms of Use

Copyright © 2024 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
Follow us on Google+
RSS Trading Items



Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.