Oh my lordy lordy .!! ..
Wouldn't you know it, just from going over my posted code to make sure I had it right (wasn't changed from me messing, aka testing, with it), I spotted the problem.
Forgot to declare the arrays correctly.
double squeezeTop[5]; double squeezeBottom[5];
Specifying the SIZE of the array isn't something I'm used to doing lately writing php. It works just perfect now.
D'OH! ...
Well, hope this helps someone else in the long run. :)
~goobs
You ARE the ubergoober, afterall... :)
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
Can anyone spot my problem I've got?
I'm trying to include the values of the positive and negative arrays in my EA from the Squeeze_Break indicator ('Squeeze Break Indicator'). For the sake of space, I'll not dupe any of it's code here (it's at that link), unless requested.
All I'm getting is 0. I know the indie is loading fine, since if I set the On_Screen_Info var to true, it will show the Comment output that the indie does while my ea runs.
I've also tried just specifying the specific index (0, 1, or 2) instead of using the x variable, but with no luck.
I get no compilation errors, and no errors during runtime. Like I mentioned, I know it's running if I turn on it's output with On_Screen_Info to true.
The journal just shows 0 from the output of my print statement.
Thanks for any help in advance.
~goobs
My script for calling the indie and trying to place the last five indexes into an array is as follows: