basic programming query with automatic trading

Forums ProRealTime English forum ProBuilder support basic programming query with automatic trading

Viewing 3 posts - 1 through 3 (of 3 total)
  • #46107

    Hi there,

    I am a new ProRealTime user and just working my way through the programming manual in order to get to grips with the programming language!

    It would be ever so helpful if someone could tell me the correct code for the following – they are simple instructions, but it will just help with my understanding of how very basic coding works:

    1.) If price increases for 2 consecutive trading days, buy on the next day’s open and hold for 2 full days, then sell.

    2.) If current day’s close price is 2% above previous day’s close price, buy.

    If someone would be kind enough to tell me the code for the above lines, it would help me with a couple of areas of coding I’m stuck on!

    Many thanks,

    Rob

     

    #46116

    As for question 1):

    As for question 2):

    I think they should do!

     

     

    1 user thanked author for this post.
    #46131

    Many thanks Roberto! That’s helped me a great deal!!

    All the very best,

    Rob

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

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