查看完整版本: 新手上路:script里print执行的结果显示在哪里?

icsurf 2007-4-21 09:07

新手上路:script里print执行的结果显示在哪里?

比如,我按例子寻找某一开盘价的日期,然后print,可是print的结果显示在哪呢?
//+------------------------------------------------------------------+
//|                                                    findvalue.mq4 |
//|                       Copyright ?2007, MetaQuotes Software Corp. |
//|                                        [url]http://www.metaquotes.net[/url] |
//+------------------------------------------------------------------+
#property copyright "Copyright ?2007, MetaQuotes Software Corp."
#property link      "http://www.metaquotes.net"
extern double p1=118.88;
//+------------------------------------------------------------------+
//| script program start function                                    |
//+------------------------------------------------------------------+
int start()
  { double opens_array[20];
   
  int idx;
  for(int i=0;i<20;i++)
    opens_array[i]=Open[i];
  ArraySort(opens_array, MODE_ASCEND);
  idx = ArrayBsearch(opens_array, p1);
  if(idx!=-1 && opens_array[idx]==p1)
  Print("open price 117.87 found in the 30 last bars, idx = ", idx);

//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+

楚门 2007-5-2 21:47

日志
页: [1]
查看完整版本: 新手上路:script里print执行的结果显示在哪里?