Jump to content
Medved Trader Forums

Mike Medved

Administrators
  • Posts

    1,539
  • Joined

  • Last visited

  • Days Won

    123

Everything posted by Mike Medved

  1. Ok I can see not caring about the exact number of shares (but if we do round to 100s, we should round down because if you want to buy 1000 and you see 10, you assume 1000 is available but if it was 990 originally, you're out of luck). Rounding the prices - I don't know. So you may see a bunch of 10.1 prices where before you would see 10.19, 10.18, 10.17, 10.16? How does that help?
  2. Neither I nor Jerry have removed any posts here. I see your post just above from Thursday at 11:22am...
  3. 1. Ok but what do we do with 2,285? A bit of a problem with L2 in general in MT is that different sources give different granularity data. Some are true book sources. Some aggregate. When they aggregate it is a lot more likely that the aggregate # of shares for a price level will not be divisible by 100. 1.5 The # of decimals - that's automatic - but how would you change it in the snapshot above, for example? 2. Bold - will see about that.
  4. When you say put it on chart - do you mean in the "Quote" box?
  5. Something in your MT is trying to use IB. Look at open portfolios' data sources, indexes sources (if you have index panel shown), any other windows' data source.
  6. Any glitches at all?
  7. 1. There are "historical charts" which would give you daily, weekly candles as far back as the stock goes. And there are "intraday" charts which give you data in 1 min, 5 min, 1 hour etc. candles. 2. The "intraday" charts can handle up to 120 days of data *but* the "backfill" for most sources doesn't give you that much data. Though the data is stored locally, so if you let's say backfill 20 days today, then 20 days 10 days from now, you will have 30 days full of data. etc. 3. The order entry - you can trade from order ticket, but also from charts or DOM by visually dropping the orders on the chart and moving them to modify them. 4. We also are about to release the hotkey and saved orders system that will allow you to place orders by using a fairly flexible pseudo-scripting system. So you could have a hotkey that says "place a bracket order at these offsets from current price for half the current position". We will be releasing it soon but if you email support@medvedtrader.com we can enable it for you to try.
  8. Ok first of all you should not have the finishing ; in the if line above. If you have that ;, it would just stop the if there and always execute the bracketed code. Second: gratz You found a bug in MT's C# preprocessing of the Any function. It was converting the if statement above to: if ((MACDHIST_Histogram[0] >= 0.0) && CCI_Line.Any(0, 4, (i, x) => { return (CCI_Line[ i ].CrossesUp(-100,0)); })) and it should have been if ((MACDHIST_Histogram[0] >= 0.0) && CCI_Line.Any(0, 4, (i, x) => { return (CCI_Line.CrossesUp(-100,0)); })) and third - there is more wrong with that line. It really should be: if ((MACDHIST_Histogram[0] >= 0.0) && CCI_Line.Any(0, 4, (i, x) => { return (CCI_Line.CrossesUp(-100,i)); })) but this will take some more fixin'. Doing that now.
  9. You could make a paintbar that calculates this. Simple code like this var MaxLoss = 250; var RiskPercent = 5; var Amt = Math.Floor(MaxLoss / (RiskPercent*0.01) / Close); SetColor(Color.Yellow); SetYValue(Amt); Then show the paintbar on the bottom chart.
  10. This is usually a datafeed problem. They send those quotes, MT records them. You can remove them by using spike filtering in charts - it's in the right-click menu.
  11. https://www.medvedtrader.com/www/frontend/production
  12. There is a thread where you could give your opinion of MT. Please do so only if you've been an elitetrader user for a while, don't just create an account to post, that's considered spam. And be honest we don't just want empty praise. https://www.elitetrader.com/et/threads/best-charting-software.356495/
  13. Drag does work on option chain window. You have to drag the little empty gray cell on the left of the option display row. You can even drag many option symbols at once - highlight many options (by clicking and dragging NOT in that cell) then drag that cell.
  14. How are trading increments decided for crypto pairs? Is there a doc somewhere?
  15. You can, with some restrictions. The paintbar allows you, instead of painting a color on the chart, to draw a line instead. See the SetYValue function. So you can code your own logic for your indicator, possibly using other indicators as well, and generate the line.
  16. Ok sell half of current position is easy - Pos / 2 The other - the DefaultQty should work
  17. No, seriously. C# doesn't include in its libraries the "AlmostEquals" kind of function for floats. So I had to write it myself. It is a non trivial problem. The most precise method would be of course to decode the IEEE float into its exponent/fraction components and then compare them. I settled for a different method that unfortunately involves calling log functions etc. It is a little slower but I think more clear. But I of course screwed it up. Fixed now. Will be in next ver.
  18. Hm. It is not a trivial thing. If it is a timed chart, you can figure out how many candles it takes to session start by subtracting session start time from current candle timestamp and dividing by the candle size. Then use that number in the Any loop....
  19. .fctbNone{ color:#000000; }CurrentCandle.candlenum is the sequence # of the current candle, 0 based. You can use that for MaxBars.
×
×
  • Create New...