MP = MarketPosition;
NP = NetProfit ;
opp = openpositionprofit;
if date date[1] then begin
PLB4Today = NP[1] + OPP[1] ;
end;
ProfToday = NP - PLB4Today ;
if ProfToday = -absvalue(LLimit) then begin
- Entry
Basicly this code only lets me trade when my P/L is above my set daily loss or below my daily target.
i would like to alter this code to function as a sort of trailing stop.
so when my P/l is above 500 i would like my losslimit to set to +300, when my P/L hits 600 the losslimit sets to +400 and so on.
if anybody could push me in the right direction it would be much appreciated.
p.s. i started working with easylanguage 2 months ago.