Thank you for you reply. I still have the same issue.
If i use a fixed tag name, I'm getting buy sell in the last bar or current bars, not on the historical bars based on the condition. Please check the
sametag-issue.png screenshot attached.
DrawArrowDown("mytag", true, 0, isBelow[0] + TickSize, Color.Blue);
DrawArrowUp("mytag", true, 0, isAbove[0] - TickSize, Color.Orange);
if i use unique tag with currentBar.toString(), I'm getting multiple arrow in all the bars. Please check the currentbar-issue.png screenshot attached
DrawArrowDown(CurrentBar.ToString(), true, 0, isBelow[0] + TickSize, Color.Blue);
DrawArrowUp(CurrentBar.ToString(), true, 0, isAbove[0] - TickSize, Color.Orange);
attached the screen shot from trading view. I want to generte buy and sell signals and arrows based on the condition only. But I want to see those arrows in current and historical bars that are loaed in the chart. Please refer to sample-tv-buy-sell.png attached.
I want the indicator to generate Buy, sell signal, give the closing price at the time of alert and display up/down arrows in the chart.
Thankyou,
Murali

Comment