sgtrader: no result appears after back-test in MT4 for long period. So I think I got problem
So start printing out your variable and calculation values and track it down. Should take about 2 minutes.
sgtrader:
Did you OrderSend() not get called ? did it get called and failed ? don't you want to know ? read this: What are Function return values ? How do I use them ?
Hi everyone, I wrote code as belows for my EA, compilation is Ok but no result appears after back-test in MT4 for long period. So I think I got problem with the code. Can anyone help me to resolve this problem?
Thanks so much!
The code is very simple with 3 terms for trade!
if( PreClose_1*Point > PreMA_1*Point && PreClose_2*Point <= PreMA_2*Point && (RSI*Point)>50 && (RSI*Point)<70)
Why *Point?
if( RSI_Pre*Point<80 && (RSI*Point)>80 )
Any RSI value *Point will be less than 1 for most symbols, so the above can never be true
Of course. I wanted the OP to find out for himself.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi everyone, I wrote code as belows for my EA, compilation is Ok but no result appears after back-test in MT4 for long period. So I think I got problem with the code. Can anyone help me to resolve this problem?
Thanks so much!
The code is very simple with 3 terms for trade!