Monthly pivot

Viewing 10 posts - 1 through 10 (of 10 total)
  • #71574

    Hi everyone,

    I looked for an answer before publishing my question, then sory  if someone already replied for a similar question.

    So, I try to have monthly pivot (code below), and to display via SCREENER.

    it don’t work, and display 0 (zero), i don’t know why !

    My questions are :

    1. do my monthly pivot calculation is right ?
    2. why it don’t detect anything, and display “0”?

     

    Thanks, and many green pips / ticks for everybody.

    Jean

    #71577

    Please use the ‘Insert PRT Code button when putting code in your posts as it makes it far easier for others to read. I have tidied your post up for you 🙂

    Hopefully someone will be along with an answer soon….

    #71586

    Hi vonasi,

    thanks a lot

    #71605

    Practicing with the search utility won me this link https://www.prorealcode.com/prorealtime-indicators/daily-weekly-monthly-pivot-points/.

    You may win more!

    #71649

    Hi and thanks for the answer…

    I forget to tell that it for a screener.

    I tried the solution in the link above , the screener display “0” for all products selected !

    I don’t really know what is wrong !

    thans for everything

    Jean

    #71659

    Screeners are not applicable to MONTHLY TF, Weekly is the highest one. But you can calculate monthly pivots and use them in a lower TF.

    The screener is missing variable C1, C2, C3 and C4.

     

    #71684

    Hi RobertoGozzi, thanks for the answer,

    effectively, I posted the old code, here is the new :

    Ok, there is no mean to have directly the monthly pivot, but the code above allow to calculate it (i’m not sure for the open price). once the monthly pivot calculated, i would like to display it with the last code line (SCREENER[c1] (mPivot As “% mPivot”).

    But instead I only have “0” for all rows, how can i correct that ?

    I hope I’m enough clear…

    don’t hesitate if I can clerify more.

    Thanks and cheers

    Jean

     

    #71700

    I tried this code as an indicator and it works perfectly (see screenshot):

    While the same code as a screener on a 4-hour TF does not return any valid scan for HIGH > monthlypivot or LOW < monthlypivot.

    I guess it may be that ProScreener can only scan at most 255 bars (the current one + the previous 254), while highest and lowest use more!

     

    #71703

    The solution could be to use it as an indicator and then code a screener that reads the values returned by the indicator.

    I’ll have a try.

    #71711

    It doesn’t work either.

Viewing 10 posts - 1 through 10 (of 10 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login