Sorry I have been away for a while. I am working on a code with daily operations. It works from 0200h to 2200h, and based on accumulation of contracts.
I would like to sell or exit short when the profit of all my positions together is above 30 pips. I am using positionperf but obviously something is wrong.
IF SHORTONMARKET AND COUNTOFPOSITION >= 3 AND positionperf>30*pipsize THEN
EXITSHORT MARKET
ENDIF
Thanks in advance for your help and have a nice weekend.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok