函数Print()学习
void Print(
argument, // first value
… // next values
);
Parameters
[in] Any values separated by commas. The number of parameters cannot exceed 64.
Note
Arrays cannot be passed to the Print() function. Arrays must be input element-by-element.
例子1
Print("c=",c, " Pi=",M_PI, " (float)M_PI=",(float)M_PI);
// c=3.14159 Pi=3.141592653589793 (float)M_PI=3.14159
预定义Bars学习
Number of bars in the current chart.
例子2
printf(Bars);
//2018.11.28 10:36:48.160 柱体标号索引学习 EURUSD,H1: 2221
//2018.11.28 10:35:55.080 柱体标号索引学习 EURUSD,H4: 8031
//2018.11.28 10:36:26.926 柱体标号索引学习 EURUSD,Daily: 2049
例子3
int counter=1;
for(int i=1; i<=Bars; i++)
{
Print(Close