Discussion of article "Experiments with neural networks (Part 3): Practical application" - page 3

 
Alexander Day #:

This is incredible work, thank you Roman!

I am running into an issue where I am unable to compile any of the Perceptron MQ5s "1 perceptron 4 angle SL TP - trade" for example has 22 errors, most of them being semicolon expected. Am I missing something or did I do something wrong?



Thanks for the feedback. Set preferences in Excel. Change , to . The system symbol for the separation of numbers with a floating coma.

 
Roman Poshtar #:

Thanks for the feedback. Set preferences in Excel. Change , to . The system symbol for the separation of numbers with a floating coma.

Appreciate your reply! I get the errors even if I open the MQL that comes in the zip file and try to compile that without any modification. Some of them don't error but almost all of the perceptrons do. 
 
Alexander Day #:
Appreciate your reply! I get the errors even if I open the MQL that comes in the zip file and try to compile that without any modification. Some of them don't error but almost all of the perceptrons do. 

You have an error in a file (Symbolinfo.mqh) not in perceptrons.

 
I trained various instruments using the provided EAs( which are very interesting), I wanted to test the EAs one a live market chart but they don't open trades. What could the problem be?
 
Kekeletso Mofokeng #:
I trained various instruments using the provided EAs( which are very interesting), I wanted to test the EAs one a live market chart but they don't open trades. What could the problem be?

Thanks for the feedback. Which EA does not work? If it works in the strategy tester, then it should work in real life.

 

Roman,

One possible reason the EA doesn't work in the Strategy tester is that the "File Sandbox" location changes when optimizing into an Agernt.  I just ran into that issue and am trying to fix it.  I haven't looked at your latest code yet. My suggestion is to us WinFile.mql to escape the SandBox and use WinAPI calls to directly read and write files.  See the discussion on

how to read an csv-file into a string with the Windows-Functions?

which offers several upgrades to WinFile, notably changing some ints into longs.  If you are trying to read a CSV file and obtain every line, I suggest using the "ReadWholeFile' function and doing the parsing internally instead of relying on "ReadLineFromFile" which cause a system crash that I cannot identify. 

Another problem could be the revised Perceptrons are only selecting one trade at the beginning of the run and closing it when the optimizing run ends.  This looks great in the Tester but doesn't work for actual trading.  In looking at my Optimization report, I was surprised to find that there were several hundred passes that resulted in only one trade but had a very good profit for the optimization period e.g. the trade was put on at the start and closed when the optimization run ended.

 
CapeCoddah #:

Roman,

One possible reason the EA doesn't work in the Strategy tester is that the "File Sandbox" location changes when optimizing into an Agernt.  I just ran into that issue and am trying to fix it.  My suggestion is to us WinFile.mql and see the discussion on

how to read an csv-file into a string with the Windows-Functions?
which offers several upgrades to WinFile.  If you are trying to read a CSV file and obtain every line, I suggest using the "ReadWholeFile' function and doing the parsing internally instead of relying on "ReadLineFromFile" which cause a system crash.

Hi. Thanks for the info. I will check everything myself.

 
CapeCoddah #:

Roman,

One possible reason the EA doesn't work in the Strategy tester is that the "File Sandbox" location changes when optimizing into an Agernt.  I just ran into that issue and am trying to fix it.  I haven't looked at your latest code yet. My suggestion is to us WinFile.mql and see the discussion on

how to read an csv-file into a string with the Windows-Functions?

which offers several upgrades to WinFile.  If you are trying to read a CSV file and obtain every line, I suggest using the "ReadWholeFile' function and doing the parsing internally instead of relying on "ReadLineFromFile" which cause a system crash. 

Another problem could be the revised Perceptrons are only selecting one trade at the beginning of the run and closing it when the optimizing run ends.  In looking at my Optimization report, I was surprised to find that there were several hundred passes that resuled in only one trade but had a very good profit for the optimization period e.g. the trade was put on at the start and closed when the optimization run ended.

Thanks for the info. I will check everything myself.

 
CapeCoddah #:

Roman,

One possible reason the EA doesn't work in the Strategy tester is that the "File Sandbox" location changes when optimizing into an Agernt.  I just ran into that issue and am trying to fix it.  I haven't looked at your latest code yet. My suggestion is to us WinFile.mql and see the discussion on

how to read an csv-file into a string with the Windows-Functions?

which offers several upgrades to WinFile.  If you are trying to read a CSV file and obtain every line, I suggest using the "ReadWholeFile' function and doing the parsing internally instead of relying on "ReadLineFromFile" which cause a system crash. 

Another problem could be the revised Perceptrons are only selecting one trade at the beginning of the run and closing it when the optimizing run ends.  In looking at my Optimization report, I was surprised to find that there were several hundred passes that resuled in only one trade but had a very good profit for the optimization period e.g. the trade was put on at the start and closed when the optimization run ended.

Hi.

Thanks for the info. I will check everything myself.

 
Roman Poshtar #:

Thanks for the feedback. Which EA does not work? If it works in the strategy tester, then it should work in real life.

EA 1 perceptron 4 angle SL TP