Suppose my buy conditions are something like
buy = a>b or
c>d;
How can I set up my sell condition so that if I bought on the
condition of a>b, then I would sell on the condition of b>a. Or, if I
bought on the condition of c>d, how can I ensure that I sell on the
condition of d>c, regardless of how a and b relate?
If I have the
statement below, then I am looking at more variables then I want
sell =
b>a or d<c;
Most likely a is already greater than b, or c is
already greater tahn d, so this trade will only last one day. I want to stay
in until the condition triggering the buy expires.
It seems like I
should be able to put a boolean in front of each, but I am not sure how to do
that. I guess the array aspect of prices is confusing me
Thanks in
advance,
RB