Forum

Using ShellExecuteW to call WEKA

I'm using ShellExecuteW from shell32.dll: int value= ShellExecuteW(0, "open", "C:\test.bat", strParameters, "", 1); The batch file runs WEKA to make a prediction which seems to open but returns an error and quickly the console window closes. I want to capture the error from the console. I've tried

Please suggest how to use 2 ATRs for scalping

Please advise me how to use 2 Average True Range indicators for scalping on short timeframes. Suggrstions welcome. Thankyou

Brokers that offer commodity trading

Hi, Are there any brokers that allow you to trade a wide range of commodities? I've had a quick look around and most only offer 10 or 20 or so. Thankyou for your replies

Getting started with Neural Network EA

Hi, I have programmed a neural net backpropagation EA and just would like to share what I have learned and get some feedback hopefully from others. I've found that it works quite well on EURUSD and GBPUSD on higher timeframes but on other pairs it's not so good. The accuracy of the training is quite

OnTesterDeinit and OnTesterPass not firing

Hi, I can't seem to get these events to fire. I'm trying to write to a file but it does not output and the Print() function does not output anything to the log either. If I place the same code in OnInit() it works fine and I find the file with the output. I am using a 4 core processor and no local

Account disapeared after update

Hi, I recently opened Metatrader to find my demo account has disappeared after an update. In the journal it says something about "deleted due to old version". I can't remember if my demo account had a password or not but I don't have it and trying to login to Metaquotes-Demo with no password does

MQL5 Cloud network problem

HI, I tried using the cloud network to optimise my EA. I have 29USD in my balance and I start the optimisation, enter the password and then it says "processing" next to MQL5 Cloud Network Europe. Then after some time it says "failed". It tries the same thing with the same result with MQL5 Cloud

Expert Advisor only opening 1 trade on GBP pairs

Hi there, I have been writing a few expert advisors for the past weeks and mostly they work well but for some reason I often find that on GBP currency pairs some of them only open 1 trade and no more. I have looked at the code in the debugger and I get the error "no money" when I execute OrderCheck

Problem with Bollinger bands on real data

Hi there, I created my first expert advisor ( I'm an experienced programmer but new to mql5 ) and it performs very well on the strategy tester making lots of profit. However, when I use it on my demo account it quickly makes a loss and never even looks like making a profit. I'm using the Bollinger

Can't change lot size in expert advisor

Hi there, I tried to write my first EA today and everything seemed to work ok apart from that I wasn't able to specify a lot size for orders greater than 0.1 on most symbols. I'm using the following code to open a buy: trade.Buy( 0.1,NULL,Ask,Ask*0.992,Ask*1.006,NULL ); where trade is a CTrade