Coding expiration date for strategy

Forums ProRealTime English forum General trading discussions Coding expiration date for strategy

Viewing 5 posts - 1 through 5 (of 5 total)
  • #171639

    Hi guys not sure if someone can help me. I want to send a strategy to someone but I need to code an expiry date so after 1 month they can’t access any longer. Can anyone help me or point me in right direction. Just need help with code for expiration date.
    Thanks

    #171643

    Since you are asking this, I assume you already know how to protect a strategy.

    Si you only need to set an expiration date in your protected indicator, like this (assuming your RETURNed value is X:

    #171644

    Please DO NOT double post.
    I removed the other one.
    Thank you 🙂

    #171650

    Apologies for the double post I posted in Spanish and English site I haven’t used a forum before. Thank you for your response but I don’t have a protected indicator I just want to pass my strategy to a colleague but only allow him to use it for 1 month. I’m just not sure what sentence / formula I should insert in the code of the strategy. Its extremely kind of you to respond to me really appreciated.

    #171655

    Strategies cannot be protected, so no expiration is possible.

    Indicators, on the other hand, CAN BE protected, so the solution is to RETURN long/short signals via an indicator CALLed from within your strategy, which will remain open, but only to manage orders and positions.

    Your client will see your strategy but will never know why signals are returned.

    To know more you can read

    https://www.prorealcode.com/topic/prorealcode-marketplace-sell-your-trading-products-to-thousands-of-prorealtime-users/

    https://www.prorealcode.com/topic/call-function-guidance/#post-135323

    https://www.prorealcode.com/topic/hidden-code/

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

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