price question

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

    Hi,

    I’m using the code below. There is just one thing I want to change. I don’t want the order to start on ‘close’ but I want the order to start when the price hits “orderhigh” or “orderlow”. What do I have to adjust in the code below?

     

    #69615

    You have to use pending STOP orders:

    Because we can’t know in advance when the order is triggered, the “alreadytraded” variable is to test only when you are on market (and at the beginning of the code, to prevent new pending order while already at market and because the code is read from top to bottom).

     

     

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