Jump to content
Medved Trader Forums

Mike Medved

Administrators
  • Posts

    1,543
  • Joined

  • Last visited

  • Days Won

    124

Posts posted by Mike Medved

  1. I am not sure what the problem is. BarVolume is the volume of the current candle, even if it is not complete.

    If you show the results in paintbar, it should show in scan as well. The caveat here is that the initial conditions have to be the same between the two. That is, they both should be intraday or historical, both have the same extended hour setting, both have the same frequency.

  2. I put that paintbar on NVCR and got nothing:

    image.png

     

    Edit: apparently with some sources there is some gap-up data in extended hours on Wed, then the price goes down to 70s in the extended hours on Thursday. That would trigger the "gap down >10%" thing the PB is looking for. Bad data.

     

    • Like 1
  3. You can make it yourself as an advanced paintbar...

    All you have to do is this:

    public void MainCalculation()
    {
        SetColor("VolColor", SysColor.MainIndicator1);
        SetYValue(BarVolume*(Open+Close+High+Low)/4);
    }

    Then place the paintbar on an extra chart at the bottom make its width 1 and shape let's say square.

    You can even combine Volume and this paintbar into one chart, with one scale on one side and the other on the other.

    image.png

     

    • Thanks 1
  4. Ok right now we don't have a variable in hotkey that is "account value". We do have "Cash" for the account's cash buying power.

    (I asked Jerry to add a way to get the account's total value into a system var for a hotkey)

    Using the Cash Buying Power you would do something like this:

    image.png

  5. If the alert is as it says: 2:58 DST with "Adjust for DST" checked, then it will trigger at 2:58 eastern. Both during DST and out of DST.

    In order for it to trigger ALWAYS at market end, make it 3:58pm with Adjust for DST checked...

     

  6. It's the same way. You define a new StateFIFOQueue(n) - where n is the period. You use the state function to save state/restore state for that queue.

    Every maincalc you .Add whatever it is to the queue. The Queue's Average property will hold the average. It also has StDev, WeightedAverage etc...

     

×
×
  • Create New...