Jump to content
Medved Trader Forums

Leaderboard


Popular Content

Showing content with the highest reputation since 05/27/2019 in Posts

  1. 1 point
    with single sessioninfo call: public void MainCalculation() { TradingSessionInfo session = GetTradingSessionInfo(Timestamp); TimeSpan TS = (Timestamp[0] - session.SessionStart); // number of minutes into session int p = (int) TS.TotalMinutes; // convert Timespan to integer if (DateTime.UtcNow<session.DayStart.AddDays(1)) // only plot current day { SetColor(Color.Black); SetYValue(Sum(p,TICK)); //plots a running total using the Sum loop function } } NOTE: this code assumes that the paintbar is running on 1 minute bars. Could be optimized, though that would complicate the code a bit.
  2. 1 point
    I would be interested very much in this as well.
  3. 1 point
    streaming sources need to be selected explicitly on each window. If bringing up new portfolio, it will use the last used one. for windows other than portfolio (Level II, etc) you can configure one, then right click on the caption and select the option to set as default
  4. 1 point
    When you export, select the "User Settings" checkbox.
×
×
  • Create New...