Thank you for giving time to consider my request.
While I was trying to develop an indicator plotting arrows using some other indicators, due to the used indicators are working on switching based first tick of bar, I tried to plot arrow by using the (FirstTickOfBar) command:
protected override void OnBarUpdate()
{
if (FirstTickOfBar)
{
if (condition) // Do: Plot Arrows, dot ....
}
}
No problem till now, as the arrows are plotted & the conditions are working fine. But.
Somehow I found that this command is active and can be used only in a case of strategy development more, it cannot be used in an indicator development case. and the arrows show at the close of the bar.
and I was wondering if I did something wrong using this command in an indicator development? if Yes, is there any alternative method to call a condition from the First Tick of Bar in case of indicator development.
I hope if you can clarify me the subject on using (FirstTickOfBar) in an indicator development situation
Thank you.
Comment