Pivot Line Strategy

Forums ProRealTime English forum ProOrder support Pivot Line Strategy

Viewing 4 posts - 1 through 4 (of 4 total)
  • #206039

    I’m trying to write a Probacktest script for an intraday (1 minute timeframe) to use the Daily Timeframe Pivot Point Line. However when I define the Daily Pivot Line with the syntax below as the level to Enter a Long Position the actual Entry Level used seems to be completely random.

    Pivt  = (DHigh[1] + DLow[1] + DClose[1])/3         // – Pivot

    Is this the correct syntax to use for the DAILY Pivot Line when using a 1 minute intraday timeframe.

    Any advice would be greatly appreciated.

    #206061

    Check that you have at least 3000 units displayed, because 1 day=1440 minutes and 2 days are needed to be able to make it work (at 11pm it’s almost 2 days, to refer to the prior day).

     

    #206091

    Thank you so much Roberto

    That has really helped me understand what was going wrong.

    I have another question about the price level that Probacktest uses to Enter a Long Position.

    What function can be used to Enter a Long Position at the ACTUAL price level specified for example at the Resistance 1 Pivot Line (R1).

    For example R1 on the GBP/USD currency pair is at 12310.2 on Tuesday 13th December 2022 and the 13:30GMT 1 minute bar has a Low of 12291.7 and a High of 12396.8 making it over 100 pips long.

    Instead of Entering a Long Position at R1, Probacktest uses the open of the next bar at 12388.7 which misses 78.5 pips of the trade.

    I did this trade for real and got an entry price almost at R1 so there must be a way for Probacktest to use a more realistic entry price?

    Any advice would be greatly appreciated.

    #207338

    You need to use LIMIT or STOP pending orders (the attached pic shows when using either of them):

    Pending orders only last 1 bar. If you still need them you will have to place them again and again each bar.
    Be warned that you must ensure there’s enough distance from the current price (i.e. CLOSE) and the PRICELVEL you choose, to abide by the broker’s requirements (which are different for each instrument and may change intraday).

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

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