Hi, How would I code the following please? On the bar that the BUY is triggered, calculate x = (close-open). Then make the pprofit = x. Thanks.