Thomas Wang / Publications
Forum
Could anyone provide me with the historical data for EURUSD hourly since 1/1/2012?
In CSV or any other computer readable format would be the best. Thanks
how to use OrderModify to modify an opened order?
I have been able to use OrderModify to modify a pending order, but I don't know how to set the parameter for Price for an opened order. Apparently I cannot modify the Price value since the order has been opened. According to the Documentation, I should be able to use the OrderModify function to
How to specify the volumn of an order to be 5% of the Account Free Margin?
I can use the following function to do so if the symbol is like USD/xxx. double dblVolumn = AccountFreeMargin ()*0.05*AccountLeverage()/100000; But the function doesn't work for symbols like xxx/USD or xxx/yyy. Apparently I should convert it using their corresponding current price. It's still easy
How to send an order without specifying the take profit and stop loss parameters?
Dear all, As stated in the subject, since my EA constantly checks the price for each order to see if the order should be closed, the take profit and stop loss parameters seem unnecessary, but when I use the function SendOrder, I have to specify the take profit and stop loss. I tried to use 0 for
retrieving bollinger bands
Hi, All, I am tring to retrieving the bollinger bands of EURUSD using the following code. I suppose the following code can retrieve the upper and lower bands of the bollinger bands. However when I run the code, the two values return the same. Anyone can help me? double doubleBBUpper = iBands
Does any other forex platform that support MQL4 except Fx-Pro?
I just want to try different platforms/brokers for comparasion. Any recommendation
Why I get a common error when trying to send an order?
even get this error when sending the order from the user interface~ Error Code: 2
How to use MQL4 to retrive data outside of the platform?
I have a program written in VB.NET that can generate buy/sell signal , but I don't know how to SECURELY transfer these information into the trade platform using MQL4. For the time being, I can ask the VB.NET program to write these signals into a TXT file and use MQL4 to read from it. However, since
How to calc these?
Please see the example below. I opened a BUY order of 80 lots (I know it's a crazy size. I just want to amplify the calc) for USDCHF at 1.16783 and the current price is 1.16753. It shows my current profit is -2055.62. 1. How did come up with -2055.62? It showed my Balance is 90342.33 , Equity is
How to close an order at current price?
Hi, I want to close an order either BUY or SELL at current price, but I use the following function in vain. Please help. OrderClose (OrderTicket(),OrderLots(),Ask,3,CLR_NONE); // This is for SELL orders OrderClose(OrderTicket(),OrderLots(),Bid,3,CLR_NONE); // This is for BUY orders When I ran this