
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 WHRoeder,
It is still just giving a flat line...Not to sure why.
YYYEEEEEAAAAHHHHH!!!!!!
It is working GREAT.....Now I just need to get the BinSig = Previous value (either 1 or -1, instead of 0 at the end of the code).
Do I just make it BinSig[i+1]?
Have a quick look at the code again for me please.
Thank you again...YIPPEE...Brilliant!!! :)
Code below.
Tim
Nope...I tried BinSig[i]=BinSig[i+1]; and leaves a dotted line. Not connected.
Bit Confused...lol
Thank you.
Tim.
You are assigning exactly the same value to each array
Hi Guys,
Thank you very much again for everything...Great learning curve...
GumRai: I think I have fixed the assigning of values....Have a look at code below.
I'm still struggling with the code for "instead of 0, then the last value that wasn't a 0(i.e 1 or -1)"
I tried "BinSig[i+1]" but that just gave the previous value of BinSig, even if the previous value was a 0.
Very confused...Need help big time with that code.
And I have no idea how to make the "BinSig" change its look with different time frames, but still keep the PERIOD_H1 signals.
I'm almost there.....I can smell it...I just need a bit of help to cross the finish line....lol... :)
Thanks again guys and gals!
Cheers,
Tim.
Hi Guys,
Thank you very much again for everything...Great learning curve...
GumRai: I think I have fixed the assigning of values....Have a look at code below.
I'm still struggling with the code for "instead of 0, then the last value that wasn't a 0(i.e 1 or -1)"
I tried "BinSig[i+1]" but that just gave the previous value of BinSig, even if the previous value was a 0.
Look at this section of code and work through the first few values in the loop manually to see if the code works . . .
. . . the first loop value is 0
the net loop value is 1HOURCLOSE[0] == Bid
HOURCLOSE[1], HOURCLOSE[2] have not been calculated yet . . .
HOURCLOSE[1] == Close for H1 Bar 1
HOURCLOSE[2], HOURCLOSE[3] have not been calculated yet . . . .
etc. do you see the issue ?
Now do the same with this modified for loop . . .
Hi Raptor,
Not sure why it is just a flat line now....I think I have gone backwards in coding...lol
Cheers,
Tim.
Hi Raptor,
Not sure why it is just a flat line now....I think I have gone backwards in coding...lol
Do you understand why you need to make the change you have made ? please answer this Q.
If you do understand . . . why didnt you also change this loop ?
Why have you changed from using HOURCLOSE0 to using HOURCLOSE0, HOURCLOSE1 & HOURCLOSE2 ?