Click here to Login





                                                   Previous day value for indicator in Screener?

  0

0
William Turner
2017-01-12 16:32:39


Hi, how would I need to code the Formula Filter in Screener to get the previous day's Macd(close) in a rule? I want to look at today's Macd(close) compared to yesterday's Macd(close). Thanks


QuantShare
2017-01-14 03:52:23

  0

Hi, You should use the "ref" function.

Example:
a = macd() > ref(macd(), 1) ;

or
a = macd();
b = a > ref(a, 1);

Please check this blog post:
http://www.quantshare.com/sa-499-quantshare-programming-language-tutorial



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
Strategy Indicator - Percent winning trades for a trading rule
Time-series Sum for the first Minutes/Hours of a Trading Day
The Best trading rules for the ADX technical indicator
Random Value for Each Trading Bar
ADX Composite Indicator for the Stock Market

How-to Lessons
How to display the number of stocks per day for different RSI gro...
How to plot the number of stock tweets per day
How to quickly download the most recent EOD data for your stocks
How to install the previous version of QuantShare
How to hide a trading indicator from a particular time frame

Related Forum Threads
Replacing value for the last 100 bars (end of day data)
Retrieving or storing previous indicator result.
Previous day OHLC
Indicator for price
STOP/Profit targets based on the indicator value at the time of e...

Blog Posts
How to Select the Best Market Indicator for your Trading System
How to create a trading indicator that uses stock news
Backtesting chart patterns using the auto support and resistance ...
Detect chart patterns using the auto support/resistance indicator
How to create the advance/decline market breadth indicator









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.