Forum

ShellExecuteW on MQL4

Hi, Does anyone here knows or have ever use shell32.dll because when i tried it it always return an error "Cannot call 'shell32.dll::ShellExecuteW', 'shell32.dll' is not loaded" . #import int ShellExecuteW( int hWnd, int lpVerb, string lpFile, string lpParameters, string lpDirectory, int nCmdShow);

Efficient Trailing Stoploss

I have an ea that if a certain prices reach for each trade it will activate trailing stop loss . It is good when it has only a few trades but when trades are 20 or more the ea is not as efficient anymore and im trading for 8 symbols. Do you have any idea to make it more efficient? Thanks

Stop Loss and Take Profit Activation

Hi, I would like to ask if you have an idea on how to detect on an EA whether a trade is activated on StopLoss or TakeProfit. Thanks

GlobalVariableSet not working

Hi guys, I would like to ask if i had a proper coding when dealing with GlobalVariables. int OnInit () { //check if GlobalVariable is present if (! GlobalVariableCheck ( "TradeAllowed" )) { GlobalVariableSet ( "TradeAllowed" , 1 ); } else { GlobalVariableSet ( "TradeAllowed"

Communication between EA's

Hi Guys, I just want to ask what is your idea on dealing with 2 EA's communicating in one Client Terminal. For example, same EA's are placed on EURUSD and GBPUSD both have ample amount of trades, when EA on EURUSD reach a condition to which it will close all opened trades because it reach certain

Initial Deposit

Hi. Do you have any idea on how to get the initial deposit on the client terminal? Thanks

Closing all trades

Hi. I have this small problem. I have created an EA that closes all open trades when it hits a certain profit or loss and it is working fine but when i opened 200 trades then activate it when it hits 2000 profit, it only closes by batch but not all using this code. for ( int x= 0 ;x< OrdersTotal

Update label control text on EA

I have created an EA that uses the Dialog Controls with label. Is it possible to update the price (BID and ASK) which is the value for the label? Thanks

How to get the width and height of the Chart Window

Hi. I would like to ask if you know how to get the width and height of a char window because i want to create EA objects that programmatically adjust to the windows height and width... Thanks

Programmatically create CButton with Function

Hi, Is it possible to programmatically create CButton with its function just like on vc++? I have created CButton, CList and other Controls but the problem is how to create their functions especially the CButton. Thanks