How to apply an indicator on day session only?

Forums ProRealTime English forum ProBuilder support How to apply an indicator on day session only?

Viewing 8 posts - 1 through 8 (of 8 total)
  • #110775
    BC

    Hi PRT Master

     

    How to apply an indicator on day session only?

    Let say a MA 50 within 9:30-16:30, calculation only base on this time frame.

     

    Thanks

    #110776

    Try this. Not tested as demo platform down via IG at the moment.

     

    #110783
    #110787

    Thanks Roberto – I knew something must have been created in the past but I could not find it with a search.

    #110817
    BC

    Thanks all, but really a lot of work if apply to others indicator like MACD, RSI etc.

    #110820

    It is not a huge amount of work. but perhaps you should post a suggestion that PRT add a built in platform indicator that does what you are requesting.

    Here is an adapted version of my code. Simply change myIndicator to whatever indicator or price value you want a session average of. You can just CALL this indicator from your strategy or add it to any separate indicator.

     

    #110842
    BC

    Thanks Vonasi, why p set to 50?

    #110843

    p is the period of the average. MA50 is p=50

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

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