if(bool_crossover[1]) //金叉
{
PlotString(\"多\",\"多\",Low-2,Red); //K线上显示\"多\"
Buy(1,Open); //平空单开多单
}
if(bool_crossunder[1]) //死叉
{
PlotString(\"空\",\"空\",High+2,Green); //K线上显示\"空\"
SellShort(1,Open); //平多单开空单
}
请帮助修改一下PlotString(\"多\",\"多\",Low-2,Red); //K线上显示\"多\"
能改变显示字体大小
一般画图函数没有字体大小属性
使用plot类有
Vars
Plot plt;
Events
OnInit()
{
plt.setOption(\"text\",\"font-size\",15); //设置字体大小为15号
}
OnBar(ArrayRef<Integer> indexs)
{
plt.text(\"text\",High,\"高\");
}