Buy = Buycondition1 or Buycondition2 or Buycondition3
I am able to plot Buy text on chart with this code.
dist = 1.5*ATR(10);
for( i = 0; i < BarCount; i++ )
{
if( Buy[i] ) PlotText( "Buy@" + C[ i ], i, L[ i ]-dist[i], colorPink );
}
Trying to achieve against which Buy condition ( Buycondition1 or Buycondition2 or Buycondition3) Buy triggered , need to be displayed below Buy Candle.
Simpy Replace Buy with BuyConditionX in your code:
for( i = 0; i < BarCount; i++ )
{
if( BuyCondition1[i] ) PlotText( "BuyCondition1@" + C[ i ], i, L[ i ]-dist[i], colorPink );
if( BuyCondition2[i] ) PlotText( "BuyCondition2@" + C[ i ], i, L[ i ]-dist[i], colorPink );
// and so on
}
I think it is better if you explained the logic or conditions under which the text should be displayed so you have a minimal plot.
In a constrained space with very small bars, you cant expect to fit long sentences and not have this.
Its just the same as zooming out so much that the Candles are not clearly visible.
You could zoom in the chart but that will only help a bit until you think of a better way of what needs to be displayed
OR just use Plottext for the selected bar instead of all at once.