Buy/sell at certain time/dates

Forums ProRealTime English forum ProOrder support Buy/sell at certain time/dates

Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • #82994

    Hello guys!

    First of all im sorry if there is a thread of this topic. If there is could you please link it? I cant find the search option.

    Now to my question:

    I would love if someone can help me to write a backtest code for example buy gbpjpy 12:00 and close at 15:00

    more specific:

    Monday-friday: buy @ 12:00 – sell position @ 15:00

    I hope you guys could spare a minute or two to help me out.

    Many thanks in advance!

    #83006

    Sorry forgot to add my “code”, please bare with me im pretty new to this 🙂

     

     

    #83009

    hi,

    please time the exit time with the right numbers. one zero is missing

    then

    you forgot to type “then” before exishort

     

    1 user thanked author for this post.
    #83013

    To buy you have to use BUY, not sell. Exitshort is to exit short trades, to exit Long trades you have to use SELL, instead.

    Correct IF…ENDIF form is:

     

     

    1 user thanked author for this post.
    #83033

    CharlieByrd – Please use the ‘Insert PRT Code’ button when putting code in your future posts as it makes it far easier for others to read and understand any code posted in the forums.

    I have tidied up your post for you 🙂

    1 user thanked author for this post.
    #83038

    Hello guys,

    First of all sorry for not having the post tidied up Vonasi, lesson learned 🙂 Thanks!

    Im at work at the moment but i will try this later and comeback later with the result.

    Also i forgot to mention i want to backtest this in both short and long, but i think i got some clues from you guys!

    Thank you so much for answering me and helping out, im trying my best to learn this.

    /Charlie

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

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