Hello,
I want to know the dates in Dynamic Watchlist when the given condition was true!
e.g. When I filter for RSI < 30, I want to know at what date the condition was true.
currently i am doing the following but it is not working:
filter = RSI(14) < 30;
addcolumn("Date", date());
But all I get is the "current" date and not the date at which the condition was true!
The dynamic watchlist, by default, uses the last bar date. So if you see a stock after adding "filter = rsi(14) < 30;" then this means that last RSI of that stock is below 30.
I know that, but what if I select "Condition True for 'atleast' once in past 100 bars"? Then, I'll need to know that which dated bar has condition met successfully!
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.