For instance, I have two bars in a row, each with the close higher than the previous bar, thus two green bars. So I go long at the beginning of the next bar, but I want to set the stop loss to be the low of two bars ago (the first green bar in this example). I have also thought about setting the stop at the low of two bars ago minus another 10 cents or so, but I figure for programming purposes I can figure out how to do that once I know how to set the stop at the low/high (high for a short that is red/red) of the bar two bars back.
Any help would be greatly appreciated.
Thanks in advance.

Comment