.

#1

Hi all, i am trying to use icustom with this attached indicator. I usually just delete the "extern" and it would work fine.

but not this time. Anyone can shed some like why this is so?

Can someone help please make a non-input and possibly, have another buffer that have both positive and negative values, please?

Many thanks in advance,
YFX

Point of balance - histo mtf nmc.mq4
(8.61 KiB) Downloaded 226 times


#2
yuhu wrote:Hi all, i am trying to use icustom with this attached indicator. I usually just delete the "extern" and it would work fine.

but not this time. Anyone can shed some like why this is so?Can someone help please make a non-input and possibly, have another buffer that have both positive and negative values, please?Many thanks in advance,
YFX
Because it calls itself recursively to calculate the the value
If you remove the parameters, it can not do that any more

#3
I understand that. but just deleting the "extern" doesnt remove the parameters does it? Just internalizing it (?)

#4
yuhu wrote:I understand that. but just deleting the "extern" doesnt remove the parameters does it? Just internalizing it (?)
No. First of all it makes them inaccessible and you can not set (change) their values any more
And since the indicator needs to have the parameters accessible (in order to "tell" to the next instance which level should be calculated) and since it can not do that ("tell") any more, the whole recursive mode falls and the calculations are nt being performed as they should

#5
I see.

Would the following work: 
(iCustom(NULL,0,"Point of balance - histo mtf nmc",0,12,10,PRICE_CLOSE,true,0,i+1))

Thank you in advance!


#6
hmm, i tried the following:

(iCustom(NULL,0,"Point of balance - histo mtf nmc","Current time frame",12,10,1,true,0,i+1));
(iCustom(NULL,0,"Point of balance - histo mtf nmc",0,12,10,PRICE_CLOSE,true,0,i+1));
(iCustom(NULL,0,"Point of balance - histo mtf nmc","Current time frame",12,10,PRICE_CLOSE,true,0,i+1));

but it doesnt work.. do you see anything glaringly obvious that is wrong?

Thank you!

#7
yuhu wrote:hmm, i tried the following:

(iCustom(NULL,0,"Point of balance - histo mtf nmc","Current time frame",12,10,1,true,0,i+1));
(iCustom(NULL,0,"Point of balance - histo mtf nmc",0,12,10,PRICE_CLOSE,true,0,i+1));
(iCustom(NULL,0,"Point of balance - histo mtf nmc","Current time frame",12,10,PRICE_CLOSE,true,0,i+1));

but it doesnt work.. do you see anything glaringly obvious that is wrong?

Thank you!
yuhu

You can not change the parameters of that indicator - they are used in a specific way that does not allow you to change them

#8
Hi Mladen, i wasnt trying to change anything, just wasnt sure of the correct syntax.

I finally managed to get it to work by 
iCustom(NULL,0,"Point of balance - histo mtf nmc","Current time frame",12,10,PRICE_CLOSE,true,1,i+1));

I still wasnt sure why buffer 0 didnt work, but buffer 1 works.

Many thanks as always for your guidance   :)

#9
yuhu wrote:Hi Mladen, i wasnt trying to change anything, just wasnt sure of the correct syntax.

I finally managed to get it to work by 
iCustom(NULL,0,"Point of balance - histo mtf nmc","Current time frame",12,10,PRICE_CLOSE,true,1,i+1));

I still wasnt sure why buffer 0 didnt work, but buffer 1 works.

Many thanks as always for your guidance  
Happy trading :)


Attachments 1
  1. Similar Topics

    1. Point and figure chart indicator for MT4

      0 Replies 2606 Views

      by moey_dw, Sun Feb 04, 2018 5:38 pm in MT4 Indicators

      0 Replies
      2606 Views
    2. 39 Replies
      11943 Views

Return to “Coding Help”

Who is online

Users browsing this forum: CommonCrawl [Bot], Trendiction [Bot] and 3 guests