code help for entry condition

Forums ProRealTime English forum ProOrder support code help for entry condition

Viewing 1 post (of 1 total)
  • #106493

    Hi,

    I am looking for some help in adding an extra condition for entry to an existing strategy but I just can’t get it working! Basically I think it will be something like the following:

    limit = 25
     
    v1 = last 5EMA value
    v2 = last Close
    C2 = (v2-v1) < limit
     
    If C1 AND C2 then
       Buy 1 point at market
    I know what I need to add in my head but can’t think of the PRT language to achieve it! I have attached an image which you may find helpful in case I have explained it clearly. Any help much appreciated!
Viewing 1 post (of 1 total)

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