Functions by Category Functions by Alphabetical list
PlotText ([bar],[value],[string],[color]) |  |
This function plots text on a chart. This function is similar to DrawText, however this function uses a relative coordinate positioning system. Color can be any color constant, or result from the color function. Example: #Plot the open price on the chart for every 10th bar
PlotPrice('Candle');
#set the counter
my $count=1;
#loop round all bars in the chart
foreach my $bar (BarsBack+1..NumberOfBars) {
#add one to the counter
$count++;
if ($count==10) {
#we've reach ten - plot the text and reset the counter
PlotText($bar,Value(Open,$bar),Value(Open,$bar),Red);
$count=1;
}
}
Related functions: PlotPrice , PlotColumn , PlotFixedLine , PlotSetScale , PlotLine , PlotFixedLine , PlotCandlestick , PlotTellTale , PlotPAC , PlotBand , PlotGrid , DrawLine , DrawText , DrawRectangle , DrawFilledRectangle , SetChartOption , Color , Dashes , Dots , Vline , SetBarBackground , SetBarColor , ChartInputSlider , ChartInputCombobox
|