I'm using the FormatPriceMarker() method.
Can I use another double within the method eg. a double that updates its values within OnBarUpdate?
eg.
double mySecondPrice;
protected override void OnBarUpdate()
{
mySecondPrice = x[0]; // x being any dataseries
}
public override string FormatPriceMarker(double price)
{
if (price > mySecondPrice)
return price.toString();
else
return mySecondPrice.toString();
}
I know this seems trivial but could be a major issue if not done correctly.
Thank you.
Comment