Close All Position in all Charts of Achieving Equity Percentage Growth - page 2

 

Did someone already solve this. Please help

N% Equity Watch  = 15%

prevEquityHigh   = 370$ <<<<<<<<<   Im having trouble storing the value of this one?? how ?

currentEquity    =  315$

if (prevEquityHigh-(prevEquityHigh*0.15) <= currentEquity)

        {

        CloseAllPosition();

        }
Reason: