Forum

log discrepancy

Hi guys , i exhausted all my debugging skills to try to wrap my mind around this issue but i could not solve it, i found discrepancy in the log so i cant really trust it, for example if im looping from 200 to 1 , the log only show wen counter is 100 and goes on to 1 why is that is there something i

converting to mql4

hi im trying to convert indicator from pine script to mql4 length = input ( 14 ),morph = input ( 0.9 ,minval= 0 ,maxval= 1 ),mult = input ( 1 .),flatten = input ( 1 .) //---- x = n y = close m(a,b) => p = morph * a + ( 1 -morph) * b k = nz(m(k[length],y),y) + (x-x[length])/(x[length* 2

how to add external value to array

hi im trying to add some external bool var to array i dont want to use the array resize meathod because it will shrink my array if (M1) { ArrayResize (TimeFrame, ArraySize (TimeFrame) + 1 ) TimeFrame[ ArraySize (TimeFrame) - 1 ] = "M1" ; } how to add them as they are extern bool

How to convert string to bool

Hi i want to ask how to convert string to bool something like this bool trade_m15=true; String trade=StringConcatenate(“trade_m”,Period()) bool test = trade What im basically trying-to attempt is i have array of time frames and i want to check if the user want to trade these timeframes or not, i

this is weird

hi guys i have coded this ea and it work fine to some dgree m i been trying for the couble of days to figure out what is wrong bur i cant find it m i tried using some print statment in attempt to find the error but no luch , i dont even get ordersenf error or somthing from this sort to even start

modyifing orders

hi guys , im writing function to move stop loss to break even and close percentage of the order im geting errors in the ordermodify and orderclose opreator when i print the resuilts in journal i get the orderlot()=0.0 before i even issue the orderclose commandm any help will be apriciated thanks

strategy tester act funny

can any one please expalin what is going on i have limit order the price pull backe below them and yet theu are not triggered so weird , i dont think it is my expert issue becuase it send the order with no issue any help will be appritiated thanks

ERROR 112

hi guys i have this error hunting me in mql4 , i tried searching for some solution' but found no luck i tried to compile it again in new terminal and and new computer as some one commented but found no luck can any body please help me

error 112

i hit wall with this errror my code compile with no other errors ,the error is internal error #112 0 0, the only piece of info about it is in mql4 page which it said Double quote (") omitted any help will be appreciated ,thx

internal error

i hit wall with this errror my code compile with no other errors ,the error is internal error #112 0 0 , the only piece of info about it is in mql4 page which it said Double quote (") omitted any help will be appreciated ,thx