if (market=flat & close>0)
{enter long}
else if market = long & close is less than threshold
{enter short}
else if market = short & close is > than threshold
{enter long}
else if market = long & close is less than threshold
{enter short}
....
.... and so on
my question is that by using 'else if' does the system read this script from top to bottom? meaning the fourth else if condition is still Long or Short, will that interfere with the first one?
essentially what i am trying to do is reverse my positions if trade goes against me. but i want to happen in the order from top to bottom. if i get stopped out of the first one, then go to next else if statement, if i get stopped out of that one, then go to next else if statement and so on
Comment