I am trying to practice my coding EA skills and created an EA around RSI levels.
When i try to back test the ea, it opens a position up on RSI level between 50-60 (range) and the example input variables are based on 70 and 30. Is this a coding issue or something to do with the back test / days off / holidays or something i am missing completely? I tried to add a print of the RSI level which showed once at 20 but not for anything else (wouldnt show, said 4756 error or something)
(2) When i back test and try to strategy optimize it also adds in rsi_buy and rsi_sell levels above 100 - i assume this is a known error or is it a cause from the code below?
(3) Also when i try to add a decimal (.) it wont let me under rsi level say 35.99 or 65.99, it wont let me add in a decimal in strategy tester?
Appreciate any assistance! ***I just notice i forgot to add in code to only open 1 position ** please ignore this factor - adding in
What are the differences between the three modes of testing in MetaTrader 5, and what should be particularly looked for? How does the testing of an EA, trading simultaneously on multiple instruments, take place? When and how are the indicator values calculated during testing, and how are the events handled? How to synchronize the bars from different instruments during testing in an "open prices only" mode? This article aims to provide answers to these and many other questions.
I am trying to practice my coding EA skills and created an EA around RSI levels.
When i try to back test the ea, it opens a position up on RSI level between 50-60 (range) and the example input variables are based on 70 and 30. Is this a coding issue or something to do with the back test / days off / holidays or something i am missing completely? I tried to add a print of the RSI level which showed once at 20 but not for anything else (wouldnt show, said 4756 error or something)
(2) When i back test and try to strategy optimize it also adds in rsi_buy and rsi_sell levels above 100 - i assume this is a known error or is it a cause from the code below?
(3) Also when i try to add a decimal (.) it wont let me under rsi level say 35.99 or 65.99, it wont let me add in a decimal in strategy tester?
Appreciate any assistance! ***I just notice i forgot to add in code to only open 1 position ** please ignore this factor - adding in