Click here to Login

                                                   Rise or Fall Percentage of a Day Close


2019-05-18 08:59:10

I would like to show the percentage rise or fall on a particular bar when the "cross hair" is placed on the candle bar of that day. Can it be done?

2019-05-18 12:35:23


Yes, there are several ways to do this. Right click on the chart, select "Edit formula" then type the formula.

1/ At the top of the chart, next to OHLC

a = round(((close/open)-1)*100, 2);
plot(a, "Ret:", colorBlack, ChartNone);

2/ Anywhere in the chart

a = round(((close/open)-1)*100, 2);
printchart("Ret: ".a, "", BottomLeft, colorWhite, colorTransparent, colorBlack, 250);

No more messages


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"


Trading Items
Percentage of Nasdaq 100 stocks that closed above their 10 day mo...
High to low stock pattern for the close price
VIX Volatility Index Statistics per Day of Week
% bars in last N trading days where stock close price increased
Stock Trading Rules - Percentage That Passed in the Last Trading ...

How-to Lessons
How to plot the number of stock tweets per day
How to display the number of stocks per day for different RSI gro...
How to filter stocks in a market composite
How to download historical EOD data for penny stocks
How to create a moving average of an indicator

Related Forum Threads
Setsimtiming -- Buy signal day open and sell signal day close
Backtest Buy Open/Sell Close Every Day
How do I find the close price for an entry matching a custom DB
MMScript - Exit at the close of a bar
Stoploss with end of day system

Blog Posts
How to Use the Percentage Scale
Day Trading: A trading system that combines intraday and EOD data
The Ultimate Guide to Create Trading Systems in QuantShare
How To Create and Backtest an S&P 500 Trend Following System
How to Optimize a Trading System with Thousands of Billions of Co...

Create an account
Affiliate Program
Contact Us
Trading Forum
How-to Lessons
About Us
Terms of Use

Copyright 2019
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
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.