I saw the following How-To, and I was wondering if it's possible to have the script increase/decrease the date of the scan and rerun until a certain date/number of days incremented? I want to scan historical dates at a specific hour, and it's pretty tedious to run it, wait, then adjust the date, and repeat.
Awesome, that was very helpful. What I've put together seems to work, but it's not outputing symbols. One thing I found, is that in the Output it's showing the time as 03/19/2020 04:30:00 when I am using "DateTime date = new DateTime(2020, 3, 19, 16, 30, 00);" . Should this show as 03/19/2020 16:30:00?
When I run the scan manually for 3/19/2020 16:30 I get one result.
DateTime date = new DateTime(2020, 3, 19, 16, 30, 00);
That helped the timestamp display, thank you. However now it seems that it's not actually running the screener with the incrementing dates. I have the screener saved with 3/19/20 as the date, which does have one result. When I run the script, it prints out the same symbol from 3/19/20 for each date. Do I need to do the screener.run differently, or maybe move things around?
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.