On chart tab, purple trade closed block-blue check profit (last closed)-modify variable or something to save the result. You could also just use the blue check profit (last closed) block on tick, anywhere and this will activate when needed <0 is a loss