Pivot monthly strategi

Forums ProRealTime English forum ProOrder support Pivot monthly strategi

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

    Hello,

    I’m currently building a strategy based on different kind of pivot points. In my testing I’m using a modified version of this indicator; http://www.prorealcode.com/prorealtime-indicators/daily-weekly-monthly-pivot-points/#comment-1059 . I though run into problems using the monthly pivot points in different ways. I’ll give you an example bellow;

     

    This is just an example of what kind of strategy I’m trying to achieve. I can’t though see what I’m doing wrong here?
    Help much appreciated!

     

    #10399

    What is the problem you encountered with this trading strategy? No trades are initiated?

    #10402

    Obs sorry, forgot to mention the problem. Exactly, no trades were initiated and i can’t seem to understand why. Any clue?

    #10408

    Try to change the line 23 with this (not tested) :

     

    #10416

    Did not work unfortunetly, no trades initiated.

    #10418

    I’ve also tried other approaches with the monthly pivot code. But nothing seems to work. For example; when the weekly pivot < monthly pivot and bla bla bla, then buy 1 contracts at market. Doesn’t work.

    #10432

    This is the fixed code:

    Your calculation of the monthly pivot were not good because you took the actual timeframe OHLC, which should be the Daily one that you can retrieve with DOPEN/DHIGH/DLOW/DCLOSE. I also add some bars to be preloaded in case it is needed.

     

    #10444

    Thank you Nicolas, i appreciate this! 🙂

    #13239

    Hi Guys

    I’m struggling with my monthly and weekly pivots. This is my code (PS – I’m not really following the logic. Just copying and trying to adjust here and there):

    However, my last month data is as follows:

    MHigh = 47144

    MLow = 44802

    MClose = 46201

    MOpen = 46201

    If I use the classic pivot calculation of (last month high + last month low + last month close) / 3 I get 46049. However the system shows a pivot of 46253? Why would it differ? How can I fix it please?

    Thanks and regards

    #13242

    Maybe you can try first to see what values are returned by the calculation of the code and find how and why they are the ones actually calculated by it.

     

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