Forum

strategy tester problem

long gbp = ChartOpen ( "GBPUSD" , PERIOD_M5 ); ChartSetInteger (gbp, CHART_MODE , CHART_CANDLES ); Why second line doesn't work on strategy tester and so when I use _Symbol when chart GBPUSD is opened Its don't give me a "GBPUSD"? How to fix this

Integer file write and read.

int file_handleb= FileOpen ( "buy" , FILE_READ | FILE_WRITE | FILE_BIN | FILE_COMMON ); FileWriteInteger (file_handleb, 1 , INT_VALUE ); int a = FileReadInteger (file_handleb, INT_VALUE ); Comment (a); Why the output of FileReadInteger is zero? How to fix it

Why this simple expert goes on lose? When is downtrent ;)

//+------------------------------------------------------------------+ //| 3.mq5 | //| Copyright 2013, MetaQuotes Software Corp. | //| http://www.mql5.com |

void OnChartEvent

void OnChartEvent When I used strategy tester void OnChartEvent isn't work. How to fix this. So I try to create buttons on strategy tester but they doesn't shows