Optuma Forums › Optuma Scripting › Scan manager to identify specific trading day on multi codes › Reply To: Scan manager to identify specific trading day on multi codes
- Topics: 24
- Replies: 34
- Posts: 58
You can use the GETDATA() function to achieve this. GETDATA is used to pull in data from other codes, you can then wrap the ROC() around them so you can check values for symbols other than the current chart.
It does not need to be setup as a scan if your intention is to mark all areas that match on the chart, you would open a chart for the SPY and apply a Show Bar with the following script:
123456789101112 //Find ROC for QQQV1 = GETDATA(CODE=QQQ:US) ;V2 = ROC(V1, BARS=1) <= -2;//Find ROC for DJIV3 = GETDATA(CODE=DJI:WI) ;V4 = ROC(V3, BARS=1) <= -2 ;//Find ROC for current chartV5 = ROC(BARS=1) <= -2 ;//Find where all were <= -2%V2 and V4 and V5
This is how it looks on the chart (using Show Bar with Lines)…
Thank you for your solution Matthew. Sorry that i can’t reply this a little earlier since i was in hospital for the last 2 days.
I didn’t know that we can use show bar option for such a script who involves different codes. I will watch again the course videos to get more information on that.
Have a good day ~