Scan a set of instruments using Ninja Trader strategy
Is there a way to create a strategy that will iterate through a list of instruments in search of a particular set of patterns? I'm not sure the analyzer can handle he complexities of multi-time frames and indicators.
This post has been selected as an answer to the original posters question
You need to create an indicator that has your logic. Then, you add the indicator to the market analyzer that has all of the instruments you want to track. Your indicator will need public DataSeries objects with values you want to watch/track in market analyzer columns. See the attached screenshot of how you can use an indicator like MACD and then setup conditional coloring to perform visual scans.
An indicator can do almost everything a strategy can do, but indicators can't place orders.
The following 2 users say Thank You to shodson for this post:
As a simple example, If I wanted to know when a SMA(50) crossed a SMA(200) or is there a way to configure the column to alert on that condition? or do I have to write a custom indicator to note that crossover?
Also, what's the best way to refresh let say the EOD prices for the S&p 500 stocks?
You'll need to create an indicator with 1 plot. If there is a cross above, set the plot's value to 1. If there's a cross below, set it to -1. If there's no cross, set it to 0. Then set up conditional formatting in market analyzer to show green for crosses above and red for crosses below (or whatever colors you want). For more info try these
As for EOD data, try the built-in free end of data Kinetick feed
The following user says Thank You to shodson for this post: