Forum

Error cannot convert enum in mql5

Why is it i get the "cannot convert enum" error in mql5? but not mql4? In the following i get the error int tf= 0 ; iLow ( _Symbol ,tf, 0 ); But if i type it directly into the parameter there is no error? iLow ( _Symbol , 0 , 0 ); Or even the enumeration directly there is no error? iLow ( _Symbol

Why error "strategy tester report not found"

Hi, in the following code why is it on market test when i tested once it passed okay But when i try again about 30 minutes later with the exact same code it says "test on EURUSD H1 strategy tester not found" #property copyright "Copyright 2023, Stephen J Reynolds" #property link "

OrdersTotal doesnt always work?

Hi, why in the following code does OrdersTotal() not always return an order? void OnTick () { // Timer int hour = Hour(); int timehour = 10 ; // Buy Switch static bool buySwitch= false ; // Adjust Lot Size double lotSize=LotSize; // Current order counts int buyCount = 0

BMP File not loading on tester?

Hi, on executing the following code, why is it, the bmp file shows okay when i place ea directly onto the chart but when i use on tester it doesnt show the image? This problem is in mql5. In mql4 it works with no problems on chart or tester the image is always showing? int OnInit () { string

Converting bmp file problem?

Hi, why in the following code is only one bmp image showing? void OnStart () { string objName1= "img1" ,objName2= "img2" ; string imgFile1= "\\Images\\dollar.bmp" ; string imgFile2= "\\Images\\arrows.bmp" ; ObjectCreate ( 0 ,objName1, OBJ_BITMAP_LABEL , 0 , 0 , 0 ); ObjectSetString ( 0

Why isnt my sum working?

Hi, ive been trying to compare the current days open to yesturdays close but am a little stuck on the following. Can someone please explain to me that within the following code : //+------------------------------------------------------------------+ // Gap

Payment delay

Hi, can someone explain whats going on with a delayed payment i have on my account? Its now at -1296 hours? And still pending. What is going on

Insert table query?

Hi, how do you change the text from this To this To demonstrate this i used the inspect button in windows 10. But when i save it it goes back to the center position

wrong timeframe request error

Hi, why on the following do i get error "wrong timeframe request in open prices testing mode error" when i test on the 15m timeframe? double lowprice_i= iLow ( _Symbol ,( ENUM_TIMEFRAMES ) 5 , iLowest ( _Symbol , ( ENUM_TIMEFRAMES ) 5 , MODE_LOW , 11 , 1 )); How do you look at different timeframes

array out of range on strict?

Why on the flowing code do i get array out of range error only when on property strict? int start() { double atr,lowprice_i,highprice_i,lowma,highma; bool nexttrend= 0 ; double minhighprice= High[ Bars - 1 ]; double maxlowprice = Low[ Bars - 1 ];