Hi guy,
Hoping someone can help me out. I have a study where I look for a long and a short condition to be met. The long and short conditions can occur multiple times in succession. For example, and I am making this up, I am looking at the 9EMA>13EMA and so every bar if that is true the long condition is met. Now I just want to put an arrow on the plot the first time the condition is met and not show it again until after the short condition occurs. Likewise for the short condition only one arrow and no more until a long condition occurs.
is there a simple way to do this? I use the long and short conditions for a strategy and it correctly plots the entry and exit arrows once but when I use the code as a study and add Up or Down arrows for the same conditions I see that the arrows are repeated multiple times.
Thanks,
Hoping someone can help me out. I have a study where I look for a long and a short condition to be met. The long and short conditions can occur multiple times in succession. For example, and I am making this up, I am looking at the 9EMA>13EMA and so every bar if that is true the long condition is met. Now I just want to put an arrow on the plot the first time the condition is met and not show it again until after the short condition occurs. Likewise for the short condition only one arrow and no more until a long condition occurs.
is there a simple way to do this? I use the long and short conditions for a strategy and it correctly plots the entry and exit arrows once but when I use the code as a study and add Up or Down arrows for the same conditions I see that the arrows are repeated multiple times.
Thanks,