{"id":44,"date":"2007-05-14T02:35:41","date_gmt":"2007-05-14T07:35:41","guid":{"rendered":"http:\/\/www.amibroker.com\/kb\/2007\/05\/14\/how-to-detect-the-study-crossover-for-multiple-symbols-with-use-of-scan\/"},"modified":"2014-12-04T04:54:48","modified_gmt":"2014-12-04T09:54:48","slug":"how-to-detect-the-study-crossover-for-multiple-symbols-with-use-of-scan","status":"publish","type":"post","link":"https:\/\/www.amibroker.com\/wordpress\/kb\/2007\/05\/14\/how-to-detect-the-study-crossover-for-multiple-symbols-with-use-of-scan\/","title":{"rendered":"How to detect the study crossover for multiple symbols with use of SCAN"},"content":{"rendered":"

It’s possible to use Automatic Analysis window to search for trendline (or other study) crossovers for multiple symbols at once. It’s necessary to do the following:<\/p>

1. Draw trendlines on the chart and assidn them a STUDY ID – two letter code that allows to recognise the particular study. To do this, go to study properties (Alt+Enter<\/strong>) after you draw the line (in this example – StudyID = “RE”).<\/p>

study1.gif<\/a><\/p>

2. Repeat the process for other symbols (remember to draw the trendlines in the same chart pane).<\/p>

3. Check the CHART ID (in order to call this particular chart pane from the SCAN). To check the ChartID – click on the chart with right mouse button, go to: PARAMETERS -> Axes&Grid<\/strong> (in this example – CHARTID = 1023).<\/p>

study2.gif<\/a><\/p>

4. Now we can write the formula:
– Analysis -> Formula Editor
– enter:<\/p>

Buy = Cross( Close, Study(“RE”, 1023) );<\/em><\/strong><\/p>

(note that we use the same StudyID<\/strong> and ChartID<\/strong> in the formula)
– Tools -> Send to analysis.
– Apply To: All Symbols, All Quotations
– press SCAN<\/p>","protected":false},"excerpt":{"rendered":"

It’s possible to use Automatic Analysis window to search for trendline (or other study) crossovers for multiple symbols at once. It’s necessary to do the following:1. Draw trendlines on the chart and assidn them a STUDY ID – two letter code that allows to recognise the particular study. To do this, go to study properties […]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[10,6],"tags":[53,14,55,28],"_links":{"self":[{"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/posts\/44"}],"collection":[{"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/comments?post=44"}],"version-history":[{"count":1,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/posts\/44\/revisions"}],"predecessor-version":[{"id":809,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/posts\/44\/revisions\/809"}],"wp:attachment":[{"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/media?parent=44"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/categories?post=44"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/tags?post=44"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}