Code: Select all
switch (StopLossMode)
begin
case (1):
if marketposition = 1 and close < my_level then
sell ("STL1") this bar on close;
case (2):
if marketposition = 1 and low <= my_level then
sell ("STL2") this bar at my_level; <<<--- ------ Compiled with error(s): ------ Incorrect method name
end;
Forgive me if the question is trivial, but I'm still inexperienced
thank you very much