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!