Please SUPPORT to prove potential BUGs in Strategy Tester Visualization

 

Hello Community,

I recently submitted two potential bugs to the Service Desk. Even though they claim it is not a bug and is working for them, I still believe it is.

IMPORTANTLY, I am talking about the CHART in the STRATEGY TESTER VISUALIZATION and NOT the CHART in the main navigator window!

To prove, I am asking you guys whether some of you are willing to test the two potential bugs. Below, I briefly describe the potential bugs again but also append my conversation with the service desk:

1. Potential Bug:

Changing the chart color bid line via MQL5 code is not working. However, it works for the ask line. Here is the code:

ChartSetInteger(0,CHART_COLOR_BID,4294967295); // the last parameter "4294967295" defines the "None" color. I found this number in the exported template after setting the colors to "None"
ChartSetInteger(0,CHART_COLOR_BID,clrNONE);

2. Potential Bug:

The Scale Fix Fixed Max and Min values are not working either by setting it via MQL5 code or via the options panel in the Stratey Tester Visualization.



--------------------------      SEE MY COMMUNICATION WITH THE SERVICE DESK BELOW      ---------------------------------------------------



Potential bug in chart layout

Offen, Gestartet: 2018.03.07 15:36, #1972331

Version und Build des Terminals

Meta Trader 5; Version 5.00 build 1755; 29 Jan 2018

Problembeschreibung


Hello developers!

I think I have found a bug. As can bee seen in the image below, one is able to "switch off" the bid and aks price lines by selecting "None" as the Color.

In MQL5, you can address These option using the following Code:

ChartSetInteger(0,CHART_COLOR_ASK,4294967295); // the last parameter "4294967295" defines the "None" color. I found this number in the exported template after setting the colors to "None"
ChartSetInteger(0,CHART_COLOR_BID,4294967295);

However, this only seems to work for the ASK Price Line. Regardless which color I put for the BID Price Line it has no effect. That is where I think there is a bug in MQL5 or am I missing something?

 

algotrader01 2018.03.07 15:46
line
Support Team 2018.03.12 10:24
Status: Unbearbeitet Offen

Dear User,

Thank you for contacting us.

However, this only seems to work for the ASK Price Line. Regardless which color I put for the BID Price Line it has no effect.

It works for Bid and Ask price:

This

ChartSetInteger(0,CHART_COLOR_ASK,4294967295); 
ChartSetInteger(0,CHART_COLOR_BID,4294967295);

And this:

ChartSetInteger(0,CHART_COLOR_ASK,clrNONE); 
ChartSetInteger(0,CHART_COLOR_BID,clrNONE);

Best regards, MQL5.com Support Team


algotrader01 2018.03.29 21:39

Hello Team,

thank you for getting back to me. Have you tested this in the chart of the Strategy Tester Visualization? Since it might work in the Chart window in the Meta Trader Window.

The same actually happens to the scale fix fixed max and min values. When you set them in the Chart Window of the Strategy Tester Visualization then there is no effect whereas changing the values in the Chart Window of the Meta Trader it works seemlesly. It was confirmed by two other users as can be seen from my Forum thread:

https://www.mql5.com/en/forum/231534

Could you please double check whether this is really working for you in the Chart Window of the Strategy Tester Visualization. I also tried your Suggestion using clrNONE but no effect for the Bid-Line as stated above.


Best regards!

Support Team 2018.03.30 13:49

Probably you are using a template during the visual testing https://www.metatrader5.com/en/terminal/help/algotrading/visualization


algotrader01 2018.03.31 15:11

Thanks for getting back!

I do not use a template at all. What I do to adjust the chart is using MQL5 such as CHART_*

But, however, I think setting the max and min values of the chart as well as setting the CHART_COLOR_BID should work regardless of using a template or not.

Again, have you tested these potential Bugs in the Chart Window of the Strategy Tester Visualization? If so, is it working for you guys?

Best!


Support Team 2018.04.02 09:05

Yes, we have tested it, it is working.


algotrader01 2018.04.13 20:46
Which version have you used to test it?
Scale Fix Fixed Maximum / Minimum not working
Scale Fix Fixed Maximum / Minimum not working
  • 2018.03.11
  • www.mql5.com
Hello Community, has anyone else experienced that the Chart options Fixed Maximum and Fixed Minimum are not working at all...
 

You can try to get the chart color background and then set the color of the lines to that same color then it should disappear because they both have the same color.

CHART_COLOR_BACKGROUND

Chart background color

color


Additionally there are call parameters that:

CHART_SHOW_BID_LINE

Display Bid values as a horizontal line in a chart

bool

CHART_SHOW_ASK_LINE

Display Ask values as a horizontal line in a chart

bool


I know that there are some limitations in the tester environment but i do not think that the pose a serious limitation to it's overall possibilities.

 

Thank you Marci for your input. Meanwhile, I know pretty much all of the CHART_ options etc. It is not about to find a work around but to show that the two bugs are real in at least some of the MT5- Versions.

Apart from the ASK_LINE color, the more important "bug" is the Scale Fix Fixed Max and Min one. For very volatile markets it would make debugging much easier as you could keep the chart in the middle of the window by adjusting it after a  number of ticks...

 

CHART_FIXED_MAX and CHART_FIXED_MIN are not working. Reported it last year and got a similar reply.

fixed max min