I have built a scan system using an auto repeat scan. In order for this to work, I have to have the scan analysis windows open, and select a Periodicity for the scan. The scan will send the message to the output window giving me the symbol names as a result of the scan. However, I want to have multiple scan analysis windows open for the automatic scans, and if the scan is came from the 15-minute scan, I want to pick this number up and output it to the output window, together with the symbol name, and if the scan is came from the 30-minute scan, I want to pickup the 30-minute Periodicity value, but I don't know how to pickup the Periodicity value in the analysis window.
Simply use Exploration. It is advanced Scan.
// Dummy signals ###################
Buy = Cross( C, MA( C, 200 ) );
Sell = Cross( MA( C, 200 ), C );
// ################################
Filter = Buy OR Sell;
AddTextColumn(Interval(2), "Interval", 1);
AddColumn( C, "Close", format = 1.2 );
AddMultiTextColumn(Buy+2*Sell, "\nBuy\nSell\nBuyAndSell", "Trade", 1);
AddColumn( Buy, "Buy", 1 );
AddColumn( Sell, "Sell", 1 );
5 Likes