Jump to content
Medved Trader Forums

nasdorq

Members
  • Posts

    86
  • Joined

  • Last visited

  • Days Won

    3

nasdorq last won the day on May 13 2020

nasdorq had the most liked content!

Reputation

4 Neutral

Recent Profile Visitors

1,100 profile views
  1. That would work. Perhaps a 1 week option as well?
  2. Open Interest Tree is great. One idea would be to choose the # of days in the future you want to include, and have those automatically displayed. Choosing 30 days would mean as contracts expire and new ones enter that 30 day forward window, they are automatically displayed. I find as different symbol types have different frequencies of expirations (daily, weekly, monthly options), sometimes I have to click the tree and make sure all expirations are included.
  3. Didn't see this asked yet. Is there a way to display an open position line from a symbol on the chart of a different symbol? For example, display open position for @MES (e-micro S&P futures) onto @ES (emini) chart, since they're essentially the same instrument except for contract size. Perhaps one way is using InterVar/SetLine, but I thought I'd check if there's an easier way.
  4. Interesting new feature. A few questions: -does the secondary symbol need to be in a portfolio or another primary chart in order to stream? -does the secondary symbol use the same data source at the primary symbol? or smartsource? -is it possible to use indicator values for the secondary symbol, for example a volume delta?
  5. While SetColor and SetShape allow users to configure those two from within the paintbar code, something like SetSize would allow for new possibilities. For example: -varying the size of a paintbar shape by the strength of a signal -varying SetYValue line thickness depending on chart conditions -creating volume bubbles behind price, based on the amount of volume per bar
  6. Thank you for the reply Don. Under private struct PaintbarState I have: public int AboveHigh; public int Below High; Do you mean edit those so they both have the value -1? Unfortunately I'm over my head with this stuff, so I'm not sure how to initialize something, what it would look like or where to put it.
  7. I managed to cobble something together from looking at other state keeping posts in the forum. It works for the most part, though there's one small error I can't seem to solve. I attached a picture of of it on the NQH23 and QQQ. Red horizontal lines are previous days high. Green background is the current bar crossing above the previous days high. It works on the QQQ. but on NQ, sometimes the paintbar triggers on the opening bar, even though it isn't crossing the previous day high. I've circled them in blue. The 29th it even triggers twice in the same session. If anyone has any suggestions I'd love to hear. Happy new year! code didn't post, so attaching as a screenshot
  8. the goal looking for the current day's high crossing above yesterdays high, is that I could limit the alert to the first time it happens. Otherwise, just looking for anytime price is above yesterdays high, it would trigger repeatedly throughout the session.
  9. Is there a way to get the high of the current day on a bar by bar basis? Then I could have a line where "if todays high (1 bar ago) is less than yesterdays high, and todays high (current bar) is greater than yesterdays high, then triggeralert" Unfortunately the state keeping is a bit over my head. In my example using the horizontal line TodayHigh, I was hoping TodayHigh[1] would work as it's the intraday setting, though it seems to fetch the previous days high. If I can get this working, I can then use it as a template for other paintbars like crossing yesterdays low, red to green, green to red, breaking opening range, etc.
  10. This seems like a simple paintbar, but I'm somehow stuck on this. If todays high crosses above the previous days high, trigger alert. Naturally this could only trigger once per session. I'm using the Horizonal Line indicator for the Vars, such as below. If I try to use the CurrentDailyHigh instead of the TodayHigh var, I get an error message. If anyone has any suggestions I'd be appreciative.
  11. Did you mean this drop down? I noticed these options, though I was hoping to color specific parts of the chart, such as between prices and/or indicator values. For example, coloring the space between the vwap and previous days close. No worries if it's not doable.
  12. I was wondering if it's possible to use paintbars to assign background colors to an area of the chart based on a price level. For example, color the chart background green above the prior days close and red below. Or coloring the space between the previous days close and the vwap. Thank you
  13. When VBP is on the right side of the chart, the bars start to overlap with price. Using padding to drag the bars left creates more space, but it does take up a large portion of the chart. It would handy if there was an option to have VBP in it's own column, similar to the volume bars having their own adjustable space along the bottom.
  14. Thank you Donald. That did the trick. Cheers
  15. Thank you for the suggestions. I managed to get "Bar Volume", "Total Seconds in a bar", and "Current # of seconds into a bar" working as variables. However, when I try to combine them into a Projected Volume calculation, the value in the watchlist Scan Result value is Infinity. I've copied the simple paintbar code below. As you can see in the attached picture, I use the Scan Result in a watchlist to make sure each variable is correct. Since BARVOLUME, SIZE, and SECONDS all work individually, I'm not sure why combining them into straightforward formula would produce infinity. (BARVOLUME / (SECONDS / SIZE)) is the Projected Volume calculation. Is this a potential bug, or have I constructed this incorrectly? //////////////////////////////////////////////////// public void MainCalculation() { var BARVOLUME = BarVolume; // volume of current bar var SIZE = CandleSizeInSec; // number of seconds in a bar var SECONDS = (MTUtil.UtcNowSynced - Timestamp).Ticks/TimeSpan.TicksPerSecond; //seconds into current bar var PROJ = (BARVOLUME/(SECONDS/SIZE)); // projected volume for current bar if ( IsLastCandle) // current bar only { SetColor(Color.Aqua); SetScanResult(PROJ); } }
×
×
  • Create New...