Jump to content
Medved Trader Forums

Jason

Members
  • Content Count

    112
  • Joined

  • Last visited

  • Days Won

    1

Jason last won the day on June 21

Jason had the most liked content!

Community Reputation

1 Neutral

About Jason

  • Rank
    Advanced Member
  1. Doh that did it. It was just flagging the error at the beginning at "(Low[2]" so I thought the problem was there. Thanks
  2. Sorry, forgot the actual error description: Pos Code Description 75, 10 CS0019 Operator '&&' cannot be applied to operands of type 'bool' and 'double'
  3. 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.
  4. Yes THAT works much better! Never would have thought to switch them around like that. Thanks
  5. 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'
  6. 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.
  7. 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
  8. 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
  9. Great to hear, thanks!
  10. 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?
  11. 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?
  12. 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
  13. 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.
  14. 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?
  15. 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!
×
×
  • Create New...