What function(s) should I be looking at for the following pseudo code?

When MACD crosses positive, buy, and use the lowest price during the
previous negative MACD swing as a stop.

I'm pretty sure I can write the buy conditioned on the cross with little
problem. But at this point I have no idea how to write that stop.

I am not a programmer at all, but I once got a Unix box to output, "Hello,
world!" It was probably dumb luck.

Reply via email to