I want to see text in screen in Visual Testing Mode

 
Hello Room,

Greetings to everybody ! May the pips be with you and Merry Christmas.

My problem is that I have devised certain variables the result of which is displayed on screen. These variables contain the end results of the formulas and functions from Meta Trader. I can see the result of variables when the chart is online. Now the main thing is that I want to see the same variables in screen in visual testing mode. How is that possible ???

Anybody Please help !!!

Regards,
 
You can add indicators to visual mode after you start it.

Apparently drawing in the EA is disabled, i guess for performance reasons.

Create an indicator that writes the data you want to see, is my thought.
 

You can add indicators to visual mode after you start it.

Apparently drawing in the EA is disabled, i guess for performance reasons.

Create an indicator that writes the data you want to see, is my thought.




I have tried creating new indicator in Metatrader and adding all my formulas to the indicator, and also attaching the indicator to the chart while running, but it is still not drawing the results on screen. It is not giving any errors also.

Please help.
 
It is nor quiet correctly. Run this simple EA in Visual Testing Mode and you will see that output comments and drawing is available.

//+------------------------------------------------------------------+
//|                                                  CommentInEA.mq4 |
//|                      Copyright © 2007, MetaQuotes Software Corp. |
//|                                        http://www.metaquotes.ru/ |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2007, MetaQuotes Software Corp."
#property link      "http://www.metaquotes.ru/"

//+------------------------------------------------------------------+
//|  start fuction of Expert Advisor                                 |
//+------------------------------------------------------------------+
int start()
  {
//----
   static datetime TimeOpen;
   if (Time[0]!=TimeOpen)
      {
      TimeOpen=Time[0];
      Comment("Time open of current bar is ",TimeToStr(TimeOpen));
      }
//----
   return(0);
  }
//+------------------------------------------------------------------+
 
Hello Sir,

I have tried your code in EA, I can see it in the online chart but not in visual testing mode. The smiling face is appearing on top right hand corner in both the cases i.e in online and visual testing mode, it means that the EA is active both in testing mode and online mode.

Anything missing ?? Please help.

Regards
 
Hello Room,

I am overwhelmed by the response and help you all are extending to me, I have seen the video, I have understood it, but the problem remains the same, I am not able to see it. There is some problem somewhere, I am using latest build of Metatrader 4.

Anybody, Please help me or suggest me if I need to do any settings in metatrader to do it.

Thank you once again for your valuable time extended to me.

Regards,
 
I don't see a problem...

//+------------------------------------------------------------------+
//|                                          Phy__EA_Object_Test.mq4 |
//|                      Copyright © 2007, MetaQuotes Software Corp. |
//|                                        http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2007, MetaQuotes Software Corp."
#property link      "http://www.metaquotes.net"

//+------------------------------------------------------------------+
//| expert initialization function                                   |
//+------------------------------------------------------------------+
int init()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert deinitialization function                                 |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----

   return(0);
  }
//+------------------------------------------------------------------+
//| expert start function                                            |
//+------------------------------------------------------------------+
int start()
  {

	static int k;
	
	string name = "TestLine"+k;
	
	ObjectCreate(name, OBJ_TREND, 0, Time[0], Close[0], Time[k], Close[k]);

	k++;
	
	name = "TestText"+k;
	
	ObjectCreate(name, OBJ_TEXT, 0, Time[0], Close[0], 0, 0);
	ObjectSetText(name, DoubleToStr(Close[0],Digits), 12, "Arial Bold", Yellow);
	
	name = "TestLabel";
	
	ObjectDelete(name);
	ObjectCreate(name, OBJ_LABEL, 0, 0,0,0,0);
	ObjectSetText(name, "Label " + DoubleToStr(Close[0],Digits), 12, "Arial Bold", Yellow);
	

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


 
I don't see a problem...

//+------------------------------------------------------------------+
//|                                          Phy__EA_Object_Test.mq4 |
//|                      Copyright © 2007, MetaQuotes Software Corp. |
//|                                        http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2007, MetaQuotes Software Corp."
#property link      "http://www.metaquotes.net"

//+------------------------------------------------------------------+
//| expert initialization function                                   |
//+------------------------------------------------------------------+
int init()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert deinitialization function                                 |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----

   return(0);
  }
//+------------------------------------------------------------------+
//| expert start function                                            |
//+------------------------------------------------------------------+
int start()
  {

	static int k;
	
	string name = "TestLine"+k;
	
	ObjectCreate(name, OBJ_TREND, 0, Time[0], Close[0], Time[k], Close[k]);

	k++;
	
	name = "TestText"+k;
	
	ObjectCreate(name, OBJ_TEXT, 0, Time[0], Close[0], 0, 0);
	ObjectSetText(name, DoubleToStr(Close[0],Digits), 12, "Arial Bold", Yellow);
	
	name = "TestLabel";
	
	ObjectDelete(name);
	ObjectCreate(name, OBJ_LABEL, 0, 0,0,0,0);
	ObjectSetText(name, "Label " + DoubleToStr(Close[0],Digits), 12, "Arial Bold", Yellow);
	

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





Hello !!!

I appreciate your code, the previous 2 codes given were working in the online mode and not in testing mode. This code also gives same problem. The Results of the formulas are still not visible in visible back testing.

Please let me know the following things :-

1. What is gone wrong ??
2. Any more light you can throw on this issue ??
3. Where did you download metatrader from ? If I download from there will it solve my
problem ??
4. Any suggestion you may wish to give finally.

Kind Regards
 
1. No idea
2. ???
3. Metaquotes Version 4.00 build 211.
4. No idea
Reason: