Yong Zheng / Publications
Forum
Sometimes it hard to analyse why ERR_INVALID_STOPS is happened
I have develop a EA, there are error code 130 ERR_INVALID_STOPS, I have log the ordersend symbol : XAUUSD.r lotsize : 0.67 order : OP_SELLSTOP opening price : 1863.00 slippage : 24 stoploss : 1869.00 takeprofit : 1855.00 bid : 1863.08 stopLevel : 0.00 I also consider the stoplevel, in this case
PrintFormat or StringFormat ERR_FORMAT_TOO_MANY_FORMATTERS
Hello, I have many Format Function in Code, there are sometimes this error ERR_FORMAT_TOO_MANY_FORMATTERS Does PrintFormat or StringFormat have a limit? Nested StringFormat have limitation
How to detect installed metatrader location path
Hello, how to detect programmatically the installed metatrader location path, I would like to create a installation for EA or indicator. Do I need to check the registry? What ist the location for metatrader 4 or 5
OrderModify only TakeProfit
I got sometimes Takeprofit modify error 130, when takeprofit go to negativ area. that means, takeprofit move buy order under orderopenprice, sell order move to upper. Then I got the error. I saw many other EA do also same, but they works without error. Why is it
Demo version of expert advisor
I cannot find any docu about compiling expert adivsor in demo version? How do I create a demo version of EA or Indicator
iTime do not work expected in strategy tester
Hello, my situation is that, I have a indicator running in strategy tester in MT4 build 1045 . Test begin on 2013.01.01 00:00:00. int OnCalculate (...) { Print ( "Test: ", iTime ( Symbol (), PERIOD_D1 , 0 ), " Highest : ", iHigh ( NULL , PERIOD_D1 , 0 ), " Lowest : ", iLow ( NULL , PERIOD_D1
Cannot get proper value of bars
Hello, I am just programming a sample expert advisor and let it run in strategy expert. but have following problem. I tried both version ( Open[ 0 ] and iOpen ). sPrice.dOpen = Open[ 0 ]; sPrice.dClose = Close[ 0 ]; sPrice.dHigh = High[ 0 ]; sPrice.dLow = Low[ 0 ]; sPrice.dOpen = iOpen(
Free real signal
During creating a real signal, there are no free option to select. I want to set the charge of signal to 0 USD. It warns me, thats is not possible below 20 USD. Is free signal not possible more