Need coder's help, just a little modification

Post Reply
User avatar
LittleCaro
Trader
Posts: 63
Joined: Tue May 19, 2015 7:09 am

Need coder's help, just a little modification

Post by LittleCaro »

Hello all,

I find this indicator on the internet, and find it very interesting.

But it shows so little history.

As i understand it, the setting "nobs" is number of bars, but when i change it, it doesn't work.

Please if someone have time to look, can you make it to show more history.

Thanks a lot !
You do not have the required permissions to view the files attached to this post.
User avatar
renexxxx
Trader
Posts: 860
Joined: Sat Dec 31, 2011 3:48 am

Need coder's help, just a little modification

Post by renexxxx »

This little piece of code was not written by a programmer who loves his job (or himself for that matter). I could go on and on and on listing what is wrong with the code, but I wont bother. I just did a quick fix and the code is now producing something. If that something is what you want, great. If not, throw the code in the bin and move on.
You do not have the required permissions to view the files attached to this post.
User avatar
LittleCaro
Trader
Posts: 63
Joined: Tue May 19, 2015 7:09 am

Need coder's help, just a little modification

Post by LittleCaro »

Thank you Renexx for trying to fix this indicator. But it's not working, the history not show.

I use it on eurusd on 1 hour, and i have good results, follow the magenta line. And at 6h00 GMT, take a long or a short following the latest move of the magenta line, and shoot for 20 pips. You'll be surprised.

Thank you again Renexx !
User avatar
renexxxx
Trader
Posts: 860
Joined: Sat Dec 31, 2011 3:48 am

Need coder's help, just a little modification

Post by renexxxx »

LittleCaro » Wed May 27, 2015 7:11 pm wrote:Thank you Renexx for trying to fix this indicator. But it's not working, the history not show.
It is working for me:
Selection_067.jpg
Did you actually compile the mq4 file?
You do not have the required permissions to view the files attached to this post.
User avatar
LittleCaro
Trader
Posts: 63
Joined: Tue May 19, 2015 7:09 am

Need coder's help, just a little modification

Post by LittleCaro »

Yes Renexx it works also for me, but if you change the "nobs" and put it to 3000 for exemple, the indicator doesn't change and not show more history.

I'm sorry to not be enough clear the first time, my english is not native, so excuse-me :)
User avatar
renexxxx
Trader
Posts: 860
Joined: Sat Dec 31, 2011 3:48 am

Need coder's help, just a little modification

Post by renexxxx »

LittleCaro » Wed May 27, 2015 11:59 pm wrote:Yes Renexx it works also for me, but if you change the "nobs" and put it to 3000 for exemple, the indicator doesn't change and not show more history.

I'm sorry to not be enough clear the first time, my english is not native, so excuse-me :)
If you increase nobs you have to increase n as well, but you have to make sure that 2^^n < nobs. So, eg. nobs=3000 and n=11. 0
User avatar
LittleCaro
Trader
Posts: 63
Joined: Tue May 19, 2015 7:09 am

Need coder's help, just a little modification

Post by LittleCaro »

renexxxx » Wed May 27, 2015 7:58 pm wrote: If you increase nobs you have to increase n as well, but you have to make sure that 2^^n < nobs. So, eg. nobs=3000 and n=11. 0

Thank you so Much Renexxxx, it works, it works !

You made my day !

So smart guys here, thanks again, and have a nice day !

:!!:
Post Reply

Return to “Coders Hangout”