Jump to content
Medved Trader Forums

ehjump

Members
  • Posts

    163
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by ehjump

  1. On 6/19/2019 at 3:33 PM, Jerry Medved said:

    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.

    How would you do this to show on historical charts, a daily chart to be exact? That is, show paintbar for only the current month.

    Thanks in advance

  2. On 12/5/2019 at 11:04 PM, Mike Medved said:

    Oh in case you wonder where the option is (and for those reading this) it is in the Settings. We added a "Search" in settings that allows you to find the setting by just typing a few letters of it in the search.

    That's a nice addition, I just noticed the search button & a big thumbs up for making the trace panel on the charts transparent 👍

  3. On 10/13/2019 at 7:33 PM, Mike Medved said:

    As for paintbar drawing a line on the chart - SetYValue sets a point on the chart for each candle, and there is a line drawn through these points.

    Is there a way to set the absolute value for horizontal lines using the advanced paintbar codes?

    That is, use PB to calculate a value for the day or period and use it to draw a new horizontal line for the period. Inputs for the calculation could be other existing horizontal line indicators or pivot points on the chart and hopefully we can set the thickness & color of the new horizontal line too

  4. Hello Jerry;

    Please can you add an option for "<symbol> (<period>/<freq>)" only on the Intraday Caption Style dropdown menu of the 'Charts / Display' tab of the MT settings page?

    Hoping to reduce the amount of information displayed on the caption. Thanks in advance.

  5. Mike;

    Thanks for the link to your YouTube channel. Would be nice to see more videos illustrating:

    1. The many features of the MT DOM, especially if the different order types are used in a full-cycle trade from opening to closing the trade during the illustrations.
    2. The use of MT scanner to search for candidates to trade e.g. using indicators for search criteria
×
×
  • Create New...