Forum

Strategy Tester anomaly

Hi Any help or explanation much appreciated This is some EA OnInit() code int OnInit () { datetime CurrentDate = ( iTime ( NULL , PERIOD_D1 , 0 )) ; Print (CurrentDate); } When I run the strategy tester its prints the date once as expected when the EA starts If I add one or two or a

Simple Indicator Code Question

Hello I've attached an image of a test indicator applied to a live chart and to a strategy test - The same indicator stored in a template EA The image shows different results , this is the test code below Can anyone help me understand what the issue is ? #property copyright "" #property link