Jump to content
Medved Trader Forums


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by Jason

  1. I saw the new beta was released. This CPR addition didn't make it then?
  2. Per ehjump, I suppose some would use it as a stand alone indicator but I have not encountered this and it makes little sense to me to use it, as defined above, outside of the context of the traditional Pivot Points indicator. As shown above, CPR should be used only for Pivot Points as Fibonacci pivots, Camarilla pivots, DeMark pivots, etc. are all calculated using their own specialized formulas and even though I don't have experience with those variations of the pivot point system I would expect any CPR used with them to have a different formula as well. Thanks for adding this and for the tip about SetYValue.
  3. Yes, typically I see them referred to that way as the top and bottom central pivots.
  4. No, it's a derivative of the Pivot Point system and it's usually used in conjunction with them. What I would like to see is the option to enable the CPR within the parameters of the Pivot Point indicator already provided in MT preferably with some line options (dashed lines, solid lines, dots, etc. ) and color options.
  5. I'd like to ask that the CPR be added to the pivot point indicator as described and discussed here: https://pivotboss.com/2010/05/31/a-quick-guide-to-the-pivot-range/ calculated like this: TC = (Pivot – BC) + Pivot Pivot = (High + Low + Close)/3 BC = (High + Low)/2 Also, more generally, how can I get a paintbar to display/draw a horizontal line across a chart? Thank you.
  6. Couple of questions... Is it possible to create a paintbar indicator/alert that displays on the 5m chart when the current day's range or the current price moves beyond another indicator's value when that other indicator is on the daily time frame? What I'm interested in doing is using a paintbar on the 5m or 3m or 15m charts, etc... that displays when the current price range for the day has exceeded the ATR on the daily. Or when the price range has exceeded x% of the ATR on the daily. Also, and as another example, would be interested in the ability to produce an alert with a paintbar when the current price moves above/below an EMA on the daily. Another question I had is how to display such a paintbar. Let's say I wanted to highlight in a different color a range on the chart. For example, make all the space on the chart above a particular price red and below a certain price another color. How would I do this?
  7. Have been using the software for quite a while now without any issues and have never seen this before. Tried restarting it and it keeps popping up. Today is the first time. One thing that changed between running the program in the past and today was the Windows update. Here is the full message: Medved Trader encountered an Error Unable to start Streamer H.EVENTS. (3) Req: , Error: Error compiling script for streamer H.EVENTS Please contact Medved Trader technical support and provide the error details AppVer: 1.1.8701.112 Err.Flags: Log, ShowIndicator, ShowToUser Compile Error at (0,0): Error# CS1685: The predefined type 'System.Runtime.CompilerServices.ExtensionAttribute' is defined in multiple assemblies in the global alias; using definition from 'c:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll' Compile Error at (46,308): Error# CS0168: The variable 'ex' is declared but never used Compile Error at (32,355): Error# CS0103: The name 'JObjectParse' does not exist in the current context Compile Error at (48,471): Error# CS1739: The best overload for 'SaveHistEvents' does not have a parameter named 'Merge'
  8. Doh that did it. It was just flagging the error at the beginning at "(Low[2]" so I thought the problem was there. Thanks
  9. Sorry, forgot the actual error description: Pos Code Description 75, 10 CS0019 Operator '&&' cannot be applied to operands of type 'bool' and 'double'
  10. Why does this not work? if ( (Low[2] < EMA_10) && Close[1] >= PP_S1 && Math.Abs(Close-Open) = Min(2,0, Math.Abs(Close-Open)) ) Incidentally, why can't I do something like this: if ( (Close[2].Crosses(EMA_10) && Close[1] >= PP_S1 && Math.Abs(Close-Open) = Min(2,0, Math.Abs(Close-Open)) ) Both fail for me. The idea is to test if the prior candle has a low below the EMA_10 and high above it.
  11. Yes THAT works much better! Never would have thought to switch them around like that. Thanks
  12. When I try this after deleting the name parameter using: SetColorAndShape(PBShape.Fill, Color.Purple ); I get 3 errors: Pos Code Description 29, 9 CS1502 The best overloaded method match for 'MT.Charting.PaintbarBase.SetColorAndShape(string, MT.Charting.PaintbarBase.PBShape, MT.Charting.PaintbarBase.SysColor)' has some invalid arguments 29, 26 CS1503 Argument 1: cannot convert from 'MT.Charting.PaintbarBase.PBShape' to 'string' 29, 40 CS1503 Argument 2: cannot convert from 'System.Drawing.Color' to 'MT.Charting.PaintbarBase.PBShape'
  13. Nice, thank you! The transparency component was throwing me off there. But I am having another problem. When I specify a color in code it does not have an effect. The colors seem to have a life of their own or are locked to whatever colors are selected by default or otherwise in the Parameters box. How can I reset them or make them subordinate to what I've in code? For example, I'm using this: SetColorAndShape("INHAMMER", PBShape.Fill, Color.Purple ); TriggerAlert("test!", @"test."); SetScanResult(@"test"); And the paintbar as drawn is showing up Red.
  14. Why does this work: (Close <= EMA_10+.05 && Close > EMA_10-.05) && (EMA_10 >= VWAP_U) && (Open[3] >= Close) && (High[3] >= High) ) but then this fails: (Close.Crosses(EMA_10) | Close.Crosses(EMA_20)) && (EMA_10 >= VWAP_U) && (Open[3] >= Close) && (High[3] >= High) ) with the error codes: 25, 102 CS0019 Operator '>=' cannot be applied to operands of type 'MT.Charting.PaintbarBase.IndexedPropertyDouble' and 'MT.Charting.PaintbarBase.IndexedPropertyDouble' 25, 124 CS0019 Operator '>=' cannot be applied to operands of type 'double' and 'MT.Charting.PaintbarBase.IndexedPropertyDouble' 25, 146 CS0019 Operator '>=' cannot be applied to operands of type 'double' and 'MT.Charting.PaintbarBase.IndexedPropertyDouble' The EMA, Open[3] and High[3] elements are highlighted but none of that code was changed. Thanks
  15. Trying to determine how I can specify in code the color of the paintbar? I can select the color manually in the Parameters box but I want to be able to control the color from within the code for testing purposes and customization of colors when different conditions are met within the same paintbar. For example, multiple IF conditions each with a separate color... In one of the paintbars I created I can see 0xFF9399FF set within SetColorAndShape but I'm unfamiliar with this number format can't investigate further. Thanks
  16. Great to hear, thanks!
  17. Actually just occurred to me that I can set the paintbars on the charts separately and not use any visual indicator for the scanner itself. Sorry, getting the concept of scanning mixed up with what's visible on the chart. Wouldn't doing setting up a scanner like that while having the same paintbars set up on many charts add quite a performance penalty?
  18. Although it makes some sense, I was kind of afraid of that. I'm trying to combine multiple paint bars into a single scanner so that multiple PBs can be used simultaneously to scan a watchlist and I don't seem to have access to all of the parameters for each. Is there any workaround for setting the options uniquely for each paintbar?
  19. I understand that we can do something like this: Okay can't post code here but I understand how to SetColorAndShape But how do we set PBPlacement at Band on Bottom in conjunction with this? I've played around with it but can't seem to ferret out the correct syntax/usage. Thank you
  20. I think that would work just fine. The part about polling it every X seconds and collecting the data for display like an indicator is a little daunting to me though. I thought it would be interesting to see how spread changes over time like during higher points of volatility, near points of support/resistance etc. You could construct an EMA out of it.
  21. Is it possible to retrieve the bid and ask in a paintbar? Such as retrieving them every X seconds and performing calculations with the values?
  22. I would like for the alert line option to always be set whenever I open my layout. What I've found is that even if I set it to use alert line and then save the layout it reverts back to the simple line drawing tool in the QAT the next time I open the layout. Is this normal behavior? If so, is there another option somewhere to make the alert line the default? If so, I haven't been able to find it. Thanks!
  23. Have you been able to confirm there is an issue with this?
  24. Great, thanks! Am I correct then to conclude from this that the function is already requiring the candle body to be at least 3 times the size of the average candle range across the period? I wouldn't have thought it to be so demanding just from seeing it at work in charts.
  • Create New...