Buy 2% from opening price

Forums ProRealTime English forum ProOrder support Buy 2% from opening price

Viewing 2 posts - 1 through 2 (of 2 total)
  • #98855

    hi

    first post from sweden.

    im looking for a code to do the following:

    Buy stock when up 2,2% from openening price the same day and then has retracted down below a moving average of my choosing during a specefic timeframe say the first 60 min from market open.

    I have tryied coding it whotout succses, having problems whit getting the % up to work.

    Thanks for the help.

    br marcus, sweden.

     

     

    #98967

    You can try with the below code, the “trigger” variable is the one used to test the gap percent at the first opening hour. “endtime” is the time limit to test the price retraction below the moving average. There is no stop and limit in the code.

     

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

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