I want to store the low of the previous when a long position is opened. What is the best way to do this? I know how to use variables - and how the find the close of the bar - and therefore do not help with that. What I need help with something like:
if (long position was just opened)
closevar = Close[1]
what is the condition I must use for "long position was just opened). This condition would only be true for the bar on which the position was opened - and not for the next bar although the long position would still be open.
Verge

Comment