Jump to content
Medved Trader Forums

Mike Medved

Administrators
  • Posts

    1,544
  • Joined

  • Last visited

  • Days Won

    125

Everything posted by Mike Medved

  1. That's what "and stop" does It stops the paintbar execution. So you move the primary rule to first place and do "and stop" when the color is set.
  2. Yes it is %. The interesting thing is that it compares let's say the last 10 min to the average of all 10 min volume periods over the last let's say 2 days. Not just 9am to 9:10am and 9:10 to 9:20. But 9:01 to 9:11, 9:02 to 9:12 etc etc.
  3. Not quite The volume is not distributed evenly throughout the day. But you may want to look at the Pace indicator. It compares the latest N-minute period's volume to the average of all N-minute period volumes for the last X days.
  4. Not easily but yes. You'd have to write your own "advanced" paintbar that would use the indicator you're trying to get an SMA of, calculate the SMA for it (or do any other manipulation of it), then plot it with the SetYValue function. See examples at the bottom of this page: https://www.medvedtrader.com/trader/WebHelp/state_keeping.htm
  5. Hmm. This would be a bit expensive to calculate in MT. MT calculates indicators in an "incremental" fashion - that is, there is a "full" recalc of the indicator, then the state of the indicator is remembered for the last completed candle, and the subsequent candle(s)' value is calculated from the last completed candle state. This does not lend itself very easily to this. But I will put this on my list. I would basically have to keep N pointers (where N is the # of days) into past data and advance them all together in order to recalculate the average volume.
  6. If you place a VWAP indicator on a historical chart, in parameters you can set Anchor date.
  7. There is other logging going on, so filter it on "PAINTBAR" so it catches only your log strings.
  8. You can write things out in LogString() - and then you can look at what you wrote using https://docs.microsoft.com/en-us/sysinternals/downloads/debugview
  9. Yes. You can refer to PressureBars' "TopBar", "BotBar", "TopEMA" and "BotEMA" values.
  10. We are working on a streaming API that will be used to connect external programs to MT to get streaming market data (L1 and L2) using MT sources, get accumulated market data, get alerts as they are triggered, add/remove/modify system alerts, monitor trading accounts and place/cancel/modify trades. Right now everything other than that last trades part is done. We're thinking about how to do backtesting. Writing to files from paintbars is disabled for security reasons.
  11. Yeah I checked again and the semicolon error is what the compiler in MT returns on that code. Visual Studio's C# returns both the semicolon error and the unknown identifier on If error.
  12. ydfah, thanks for the report. Yes, the bug was introduced in the beta (while I was fiddling with the Line Tick). It will be fixed in next beta (and Jerry will email you the link to fixed exe right now).
  13. ydfah, the bottom of the "bad" chart was cut off. Could it be that the chart was scrolled a bit to the left at the time? When you close/reopen it would scroll it back to flush right. If the chart is not flush right there is a red outline to the scroller.
  14. Do you have to subscribe to the imbalances at IB and if so is there a fee? (And Lord, I hate IB API).
  15. oops. Unfortunately not for any broker you can sign up for. If/when any of them do, we will put that in.
  16. Lemme see... .fctbNone{ color:#000000; } .fctbStyle4{ color:#0000ff; } .fctbStyle3{ color:#000000; } .fctbStyle5{ color:#000000; }int PrevCandleNum = 0; public void MainCalculation() { if (CurrentCandle.candlenum != PrevCandleNum) TriggerAlert... PrevCandleNum = CurrentCandle.candlenum; } .fctbNone{ color:#000000; } .fctbStyle4{ color:#0000ff; }
  17. I was using Questrade as the source... Did you clear the chart before doing a backfill? I need to get the log file to see what the problem is. Please do the following: go to FILE / Export/Backup menu (from Dashboard or Portfolio) Select “To share with others” export file protection option on top right Leave the checkboxes already checked, and also check LOG FILE and QUOTE DATA boxes. Export (note the location of the file – it is shown in center of the right side of that screen) The file will be too large to email. Please send it to us using https://wetransfer.com/
  18. I am not sure. I just tried (my time is set to CST) and it shows ok both for L1 and market data: Not sure how to diagnose this. Try exporting your settings *including* your data and use WeTransfer to send it to us at support@medvedtrader.com?
  19. Mike Medved

    Amp Global

    We support Rithmic connection. We failed to reach agreement with CQG on connecting with them (as far as I can recall).
  20. Ok I see. The compares update on intraday charts but not on historical charts. Will look into it.
  21. Ok - the mysterious box on your screen - weird, but somehow you got the flag for "ShowCandleCountdown" set on your chart even though it is a historical chart (the candle countdowns should only show on intraday charts). The fix for this will be in next beta. Will look at your other problem tomorrow during market hours.
  22. Wally - can you send your setup to us - go to File menu in the Dashboard, under the Help submenu there is an option to send your settings. I will load that and see what the problem is.
  23. There will be an int32 system variable CandleSizeInSec - for 1 min candles it would be 60, 2 min - 120 etc. It can be used both in Simple and Advanced modes. This would ONLY work for intraday charts' candles - and only for time-based charts if in paintbar. Will be out in next beta.
  24. Hm. I didn't consider that. One way would be to take the Timestamp of the candle and subtract the Timestamp of the previous candle. The problem with that approach is that sometimes for thinly traded stocks and for pre/afterhours there are no candles for some minutes, and at the beginning of the day the difference between the timestamp of the first candle of the day and the last candle of the previous day is obviously huge. I will provide a system variable for the frequency. Will post here when done.
×
×
  • Create New...