Print and Comment do not fun ction in my EA

 

I am testing an EA in demo but the comment and print functions do not work.

The EA compiles successfully but nothing is ever printed in the journal, and no comments in the top left of the chart.

The EA is loaded successfully an initialised and that's all.


int start()
  {
//+------------------------------------------------------------------+
//| Find open positions                                     |
//  You open a buy on Actual Ask, you close it on Actual Bid.
//  You open a sell on Actual Bid, you close it on Actual Ask.
//+------------------------------------------------------------------+

   int    nDigits;
   int    nMultiply;
  
   if(Symbol()=="GBPJPY" || Symbol()=="EURJPY" || Symbol()=="USDJPY" || Symbol()=="GOLD")  {nDigits = 3;nMultiply=100;}
   else {nDigits = 5;nMultiply=10000;}
   double currATR = iATR(NULL,0,14,0) * nMultiply;
   double currBreakEven = currATR/2.5;
   double TradeCompleteTarget = currATR*0.8; // =4/5
   double LipsValue = iMA(NULL,0,5,0,MODE_SMMA,PRICE_MEDIAN,0);

Comment (
            "out LIPS: "+DoubleToStr(LipsValue,5)+"\nOrderOpen:"+DoubleToStr(OrderOpenPrice(),5)+"\nTCTP:"+DoubleToStr(((TradeCompleteTarget*Point)*10),5)
            );


etc...
 
SanMiguel:

I am testing an EA in demo but the comment and print functions do not work.

The EA compiles successfully but nothing is ever printed in the journal, and no comments in the top left of the chart.

The EA is loaded successfully an initialised and that's all.


?????

Reason: