moonsboy
moonsboy
moonsboy
Added topic How to prevent this happen while trading?
I don't want big slippage happen while opening or closing orders.  However, the slippage is still often much higher as over "10" although I set "slippage=3" already. Now that the slippage in "OrderSend()" and "OrderClose()" don't work at all
moonsboy
Added topic Who can help tell why the code can't show "rectangle"?
With the code below, I want to show a rectangle frame around the latest 3 bars.   Who can help tell why the code can't show the "rectangle frame"?  I couldn't find the root cause. Also attached the print log below for reference.  Maybe
moonsboy
Added topic Double confirming the calculation method
a. Double confirm with you that it's not necessary to use '2' below but ok to use '1' below to compare for "int" types. Correct?  1.  if (a > b)  2.  if (a - b > Point / 2.)     b. How many digits does the number
moonsboy
Added topic What are the possible reasons?
The same EA I made can place “OrderModify()” in other brokers, but can’t at 1 broker from the second time of modification. I checked my code and the broker's environment and can confirm no issue in my code. So please note that this topic is to check
moonsboy
Added topic How to get Used Margin of an order?
It's not easy to see the used Margin of an order if there are a few orders opened.  1.  Is there a simple way to get the used Margin of an order? 2. If there is a short order of "Eur/Gbp" and my account money is "Usd", should I use the bid
moonsboy
Added topic Professors, Professors, please help, so Confused on the code execution !!!
So frustrated I haven't any idea how this happened! The code ran on 2 brokers for 3 months. Today the issue below suddenly happened at 1 broker. Please refer to the log and code below.  The code should run sentence by sentence based OnTick
moonsboy
Added topic Where can I find the difference instructions of these functions?
Where can I find the difference instructions of the functions below? I didn't find the differences even though I tried to print the return values. 1. Between DoubleToStr() and DoubleToString()? 2. Between CharToString() and CharToStr() ? 3. Between
moonsboy
Added topic Believe this needs an expert familiar on the arrays of Structure !!!
Please refer to the screenshot below.   Why does the "Experts Log" always say "array out of range" even though I changed "symbolCount" in line 37 into '0'?       Below is the complete code.   #property strict input string
moonsboy
Added topic what is the good way to detect if a symbol is existing?
What is the good way to detect if a symbol is existing?  E.g. How to detect if "EurUsd.Pro" is existing or not? 
moonsboy
Added topic Is there difference to use market prices or ask/bid?
Is there any difference between to use "Ask" directly  and to use "MarketInfo (Symbol(), MODE_ASK)" instead? In another word,  "MarketInfo (Symbol(), MODE_ASK) " = "Ask"? "MarketInfo (Symbol(), MODE_BID) " = "Bid"? Otherwise, when are they
moonsboy
Added topic Why does this initiation fail?
When my same EA ran EventSetMillisecondTimer(50) within OnInit() on 4 charts, it returns successful on 1 chart  only, wrong code is "   Internal error "(translated to the description) on all other 3 charts. Why did it happen? How to prevent
moonsboy
Added topic Does an Array have the maximum limit of dimension?
 Does an Array have the maximum limit of dimension? I can't find it in the help instruction.  Is it mentioned in the help instruction
moonsboy
Added topic My God, MT4 chart froze again! How to prevent the disaster happen on live trading?
Please refer to the screenshot attached that 1 of the open charts froze at 9 hours ago and other open charts are still alive. It’s the screenshot of my live account with the latest version of MT4 terminal. The correct server time should be 13:51 as
moonsboy
Added topic Do you know if this is an issue of MT4 back test?
 In my EA, a new order is open only after a previous order is closed and there is only 1 order open at any one time.  The rule is followed well according to back test. However, do you know why the curves of Balance and Equity aren’t
moonsboy
Added topic Does this mean my requesting price was re-quoted?
Please refer to the EA log printed below. I found "136" means "Off Quotes". Does it mean that my requesting price was re-quoted? Or is it just a slippage?  Moreover, how to know if my EA is experiencing re-quote or slippage? How to know if
moonsboy
Added topic How to get the accurate profit of a closed Order?
Please refer to the screenshot below. The profit is printed with OrderProfit()  once detecting OrderClose(...) returns "true". There's no problem with back testing. During the live test, you can see OrderProfit() of a closed order was
moonsboy
Added topic Can't see indicators
No matter my EA uses iMA or iCustom indicators , the indicators are not displayed on the chart where my EA is running. But my EA exactly works with those indicators. It means indicators are working for the EA, but not displayed.    Do you
moonsboy
Added topic Why is the price displayed not at the same step as the chart?
You know there are O/H/L/C prices displayed on every chart as default. However when I display the Bid/Ask prices on different brokers, I found the Bid price isn't at the same step as the close price on the chart for a few brokers and it is behind the
moonsboy
Added topic Sometimes no input parameters in the saved report
For same code, sometimes there are not input parameters shown in the saved report after back testing. But sometimes the saved report is fine after back testing. In case that the report is saved and hasn't parameters in the report, html file, I always
moonsboy
Added topic Does MQ not want to support back test on MT4 and MT5?
MT4 always cover or remove the history data I downloaded and exported once connected to broker server.  . Does it mean MQ doesn't want to support back test? . Does it mean MQ doesn't want users to do back test? . Does it mean MQ will waive the