Jump to content
Medved Trader Forums

Mike Medved

Administrators
  • Posts

    1,537
  • Joined

  • Last visited

  • Days Won

    123

Everything posted by Mike Medved

  1. I will dedicate some time to this on Mon... If it's the case that the L1 feed of DXFeed produces candles with different volumes than the DXFeed backfill, will report it to them... As a reference, what kind of subscription bundle do you have with DXFeed?
  2. Jerry suggested unchecking the Odd Lots setting. What happens when you do?
  3. Ok so - are the volumes after 13:07 (that is, the volumes gathered from L1 data by MT) correct but backfill volumes aren't? If you clear data at that point and re-backfill will the volumes after 13:07 become a lot smaller?
  4. The question becomes.... What is the CORRECT volume?
  5. In Charts/General/Miscellaneous - see if you have "Include Odd Lots" checked or unchecked.
  6. I would suggest looking at the Volume indicator on both charts (since VWAP is very sensitive to that). For example, TradingView: the volume is different from MT's volume, so the VWAP is not the same:
  7. While optimizing the recalculation of new candles on dynamic updates of charts for OTHER chart types, I screwed up the recalc of the VbP candles. That was a while ago too You're the first one to notice it. Which means that not many people use them. Too bad - they are nifty. Fixed it. Jerry will put it up.
  8. Ok - what should the menu options be? 2 weeks, 1 month, 2 months, 3 months, 6 months, year, all?
  9. Right. That will be fixed in the next beta.
  10. Sure. Instead of PosPaid there, do this: Pos>0?PosPaid+0.02:PosPaid-0.02 or it will also take IF Pos>0 THEN PosPaid+0.02 ELSE PosPaid-0.02 inline conditionals are pretty handy. They can also be stacked - for example if you have no position, you want the price to be Bid? Then you do Pos>0?PosPaid+0.02:Pos<0?PosPaid-0.02:0
  11. Question: does it not modify or does it modify the underlying order (that is, actually sends the modify) but ALSO has a modify yellowish cap on the chart?
  12. Yes, that means it's running on 1-min candles, just like having a 1-minute chart and putting that paintbar on it. As for your question. No, the scan's indicator parameter is not # of minutes, but # of candles... You can twiddle this a bit. You can have two scans, running on two portfolios (with the same symbols in both portfolios). One scan you would run on 5-min candles, get the KC indicator and store the value in the SetInterVar function. This first scan would not trigger any scan result. In the other scan, you would use GetInterVar to receive that value, and use it as the KC value.
  13. Hm the preprocessor that sprinkles indexing [0]s on indexed variables fails in this case. Try .fctbNone{ color:#000000; } .fctbStyle7{ color:#000000; }Timestamp[0].Minute
  14. That's what (Timestamp.Minute % 15)+1 gives you. Stick this into a column in a scan and watch it go from 1 to 15 then roll over to 1... Just make sure the scan is run on 15 min candles.
  15. (Timestamp.Minute % 15)+1 ? 1 for 1st minute. 2 for second minute. etc.
  16. For that you'd have to keep track of the average yourself. Use StateFIFOQueue of the appropriate size (period), zero it out whenever the new regular session starts (use TradingDay variable - the DayNumber in it changes when the new session starts, and you can figure out if you're in premarket or not as well) and add the candle's volume if regular session. Then take its average.
  17. To add to Jerry's answer - I would prefer to use floor(Pos * 0.75), so that fractionals are not involved.
  18. Ok - you can reference the values in FIFOQueues by using indexing - but the indexing is backwards. That is, [0] is the last value you added. [1] is the one before last. [2] is 2 before last etc. Assignment of those values - I didn't do before. I put that in, will send you email where to pick up latest exe so you can do queue[3]=2;
  19. Yes for what you want (I think) it is best just to use StateFIFOQueue(20) for each of the arrays. You still have to manually save and restore state for each like you're already doing for the one StateFIFOQueue that you have. And you can only store Doubles of course...
  20. Look in the save and restore functions. Instead of copying just the structs, I specifically made it copy the arrays...
  21. Ok, I just realized something... I should mention it in help file. A struct that has arrays in it is a mutable struct. Which means that if you just do struct1=struct2, the arrays are not copied. They are there by reference, so both structs would be pointing to the same array. Let me figure out how to change your code the most elegantly so that this doesn't happen (and that the efficiency does not suffer).
  22. I haven't looked yet but here is a detail that may explain what you're seeing: MT's paintbars are a "state machine". There is a "state", and the new candle changes the "state". The thing is, this state-changing for the new candle may not be called only once per candle. It is for "past" candles, but for the new, latest candle, the "state" is restored to the condition right BEFORE the new candle - then the state-changing code is called for the new, latest candle. Hope this makes sense?
  23. Please send me the whole paintbar - export it and attach it to an email to support email....
×
×
  • Create New...