//--------[Update]-------//
Even If I change m size to 5 I get the weird huge negative data
Your code |
if(g_close.GetData(i) < g_close.GetData(i+1)) ArrayFill(pricelows, i, 1, g_close.GetData(i)); |
equivalent |
if(g_close.GetData(i) < g_close.GetData(i+1)) pricelows[i] = g_close.GetData(i); |
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
Hello,
I want to fill these arrays with high and low values of rsi and price. When I use a position of 5 it prints fine (see the first 4 rows of the photo, these are pricehighs, pricelows, rsihighs and rsilows). The moment I use a bigger position to search throught the data 10, 15,... I get weierd exponential data (huge and negative numbers). I have no idea how this came into my code as I haven't dont any calculation to alter the data, what can be happening here? My results are even negative!
This my code:
and this is my result: See attached image.