Click here to Login

                                                   Previous day value for indicator in Screener?


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

2017-01-14 03:52:23


Hi, You should use the "ref" function.

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

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

Please check this blog post:

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
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 select stocks based on the last value of a databas...
How to dynamically update the settings of an indicator
How to add a trading indicator to a chart

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

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

Copyright 2024
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.