I am trying to draw arrows and texts (name of the arrows) on the bars base on time and prices, not on barAgo.
I am failing to have all arrows as well as the names of all these arrows. Sometimes I have the arrow without the name, sometimes I have none of them. With the code I have, I have backtested on a 5 minutes char and on a 2k ticks chart, but I am realizing that the result is worse on the 2k ticks chart. I have less arrows there, even when the conditions are fullfilled. On both timeframes, some arrows appears and the names of the bars are missing.
I have also realized that the recurency of the arrow and the text related to "Hammer" is high. It is the only text and the only arrow working without problem.
What could be the problem?
I have following code:
Draw.Text(this, "TextHarami", false, "BullHarami", Time[shift1], Low[shift1]- 8*TickSize, 0, Brushes.Lime, myFont, TextAlignment.Center, Brushes.Transparent, null, 1); Draw.ArrowUp(this, "arrowHarami"+CurrentBar, true, Time[shift1], Low[shift1] - 2*TickSize, Brushes.Lime); Draw.Text(this, "BullEngulf", false, "BullEngulf", Time[shift1], Low[shift1]- 8*TickSize, 0, Brushes.DodgerBlue, myFont, TextAlignment.Center, Brushes.Transparent, null, 1); Draw.ArrowUp(this, "arrowBullEngulf"+CurrentBar, true, Time[shift1], Low[shift1] - 2*TickSize, Brushes.DodgerBlue); Draw.Text(this, "Hammer", false, "Hammer", Time[shift1], Low[shift1]- 8*TickSize, 0, Brushes.OrangeRed, myFont, TextAlignment.Center, Brushes.Transparent, null, 1); Draw.ArrowUp(this, "arrowHammer"+CurrentBar, true, Time[shift1], Low[shift1] - 2*TickSize, Brushes.OrangeRed);

Comment