Key Levels
I am sure there is more than one way to code this. In summary this is about identifying key levels and marking them with price levels in ToS, not necessarily just support and resistance. Daily candles that have an open, or a high, or a low, or a close that correlate with the same price. Mark the key levels that have the most candlesticks, by drawing price levels in ToS, within a specified price range.
Key and Price Levels
On the daily charts. Not to include the current day’s candle.
For any past daily candles that has an open, or a high, or a low, or a close that have the same price, draw a price level for those correlating candles.
If two or more candles have an open, or high, or low, or close that correlates with the same price - draw the price level.
In the Property Settings
Be able to access the property settings to edit name, color, style, width, ect. Have the price levels displayed just as they normally do for the thinkorswim platform.
Be able to set a plus or minus (+/-) price range in relation to the previous day's mark price. The price range ($XX.xx) can be set in the property settings. I would like the price levels to be drawn / displayed only within the price range in each chart.
Of course the current price will change depending on the stock chart being viewed, but the price range will remain the same for all charts.
Be able to set the top X number of price levels that have the most correlating candlesticks to be drawn / displayed in the price range. The key levels with the most candle stick connections are the most valuable.
Some price levels will have more correlating candles than others. I will want to show the top 4 or 10 or 13 within the price range in the charts. The key levels with the most candle stick connections are the most valuable.
I am sure there is more than one way to code this. In summary this is about identifying key levels and marking them with price levels in ToS, not necessarily just support and resistance. Daily candles that have an open, or a high, or a low, or a close that correlate with the same price. Mark the key levels that have the most candlesticks, by drawing price levels in ToS, within a specified price range.
Key and Price Levels
On the daily charts. Not to include the current day’s candle.
For any past daily candles that has an open, or a high, or a low, or a close that have the same price, draw a price level for those correlating candles.
For example, looking at a daily chart for 2 months. A daily candle has an open of $100. Two days later another candle hit a high of $100. The following week another daily candle opened for $100.
Draw a price level for $100.
Another example. This time looking at a daily chart for 1 year. A candle has a low of $125. Two weeks later another daily candle had a low of $125. The next day another candle opened for $125. Four months later a candle had another high at $125. Three days later another daily candle had a low of $125. Two months later another candle closed for $125. One month later another candle closed for $125.
Draw a price level for $125.
If two or more candles have an open, or high, or low, or close that correlates with the same price - draw the price level.
In the Property Settings
Be able to access the property settings to edit name, color, style, width, ect. Have the price levels displayed just as they normally do for the thinkorswim platform.
Be able to set a plus or minus (+/-) price range in relation to the previous day's mark price. The price range ($XX.xx) can be set in the property settings. I would like the price levels to be drawn / displayed only within the price range in each chart.
For example if I am considering several different stocks to trade and the previous day's mark price is $100 and the price range is set to $20 in the properties. Price levels will be drawn / displayed between $80 and $120.
Looking at a different stock and the previous day's mark price is $182 and the price range is set to $20 in the properties. Price levels will be drawn / displayed between $162 and $202.
While another stock may have the previous day's mark price at $10 and the price range is still set to $20 in the properties. Price levels will be drawn / displayed between $0 and $30 on the daily chart.
Of course the current price will change depending on the stock chart being viewed, but the price range will remain the same for all charts.
Be able to set the top X number of price levels that have the most correlating candlesticks to be drawn / displayed in the price range. The key levels with the most candle stick connections are the most valuable.
Some price levels will have more correlating candles than others. I will want to show the top 4 or 10 or 13 within the price range in the charts. The key levels with the most candle stick connections are the most valuable.
Last edited: