• Welcome back! Thank you for being a part of this Traders Community. Let's discuss and share :)
    Selamat datang kembali! Trimakasih telah menjadi bagian dari Komunitas Trader ini. Mari berdiskusi dan berbagi :)

Peak indicator and iCustome

Leon Valdez

Member
Credits
0
Please help,

I dont know why the iCustome command doesnt work for the Peak indicator. My gues is that because it make a file to write and do some operations and then retreive the information... and Im thinking that when the indicator is called by the iCustome command it doesnt create the file needed for the computations... Anyways thats my guess, i really not sure why.

However, if the buffers variables are initialized with a value it retrieve the value of initialization.
And yes, im calling the buffer 1, not the 0 one.

Please anyone has already experimented this issue?
 

Attachments

Ciao
is correct that in the file PeakT1.mq4 there is ...
Green_Line[1]=1;
Red_Line[1]=2;

Ciao
yeap, its just an initialization value so the variable doesnt start with an empty value. If the variables are not initialized with a value (just like in the original peak indicator), the retrieve value of iCustome is a big value of 2147483647 that means empty value.

I just added the values of 1 and 2 to see if the number of 2147483647 changed to 1 and 2 and yes it did.

You can test it just converting those lines into comments
//Green_Line[1]=1;
//Red_Line[1]=2;
 
Last edited:
ciao Leon
Share with everyone, it's always welcome
In this forum many have helped me, it is right that my little help is shared with everyone
Attention that Peak repaints.
Ciao
 
ciao Leon
Share with everyone, it's always welcome
In this forum many have helped me, it is right that my little help is shared with everyone
Attention that Peak repaints.
Ciao
Here is my Scanner bro, I did for EURO, USA Dollar, Pound and other called Misc with AUDs and CHFs. However it runs very slow and doesnt refresh. Somebody know how could it be modify to run smoother and refresh the info?
 

Attachments

Here is my Scanner bro, I did for EURO, USA Dollar, Pound and other called Misc with AUDs and CHFs. However it runs very slow and doesnt refresh. Somebody know how could it be modify to run smoother and refresh the info?

mmmmmhhhh,
my friend, too much iCustom = too much CPU
why use many PAIR, for the correlation?
 
mmmmmhhhh,
my friend, too much iCustom = too much CPU
why use many PAIR, for the correlation?

Because look a pair one by one in each of the timeframes takes me more about 40 min, and i can loose a good entry oportunity. And in this way of show all the pairs at the same time i can evalutate in less than 1 minute a good entry oportunity.
 
Back
Top