hi sorry i need a help regarding mq4 code, i have a problem with the arrow of an indicator, it always appears before the candle closed (i mean like appear and dissaper till the condition met). i have set to appear when the candle closed, but it's not work. all i want is only appear after the condition met and the candle closed. thank's in advance.
here is my code
Just don't assign value to Buffer1[] and Buffer2[] when i==0.
Just don't assign value to Buffer1[] and Buffer2[] when i==0.
sorry iam a newbie in coding, i used eabuilder to make custom indicator,, i dont know how to correct it, can you please show the code i should change ?
thank's in advance
sorry iam a newbie in coding, i used eabuilder to make custom indicator,, i dont know how to correct it, can you please show the code i should change ?
thank's in advance
Change
Buffer1[i] = Low[2+i] - 5 * myPoint; //Set indicator value at Candlestick Low - fixed value
to
if (i>0) Buffer1[i] = Low[2+i] - 5 * myPoint; //Set indicator value at Candlestick Low - fixed value
Change
to
if i may, i have one more question to you. in eabuilder we use 2 indicator and combine them in to one, but how can we make two indicator into one, but all the code are inserted into that one.
eg. i make MA cross in eabuilder, but the resulted indicator code is only showed the buffer on the main indicator. no combined code inside it.
what i mean is that we insert those 2 indicator code into one, and build a new indicator based on them.
sorry for asking.
if i may, i have one more question to you. in eabuilder we use 2 indicator and combine them in to one, but how can we make two indicator into one, but all the code are inserted into that one.
eg. i make MA cross in eabuilder, but the resulted indicator code is only showed the buffer on the main indicator. no combined code inside it.
what i mean is that we insert those 2 indicator code into one, and build a new indicator based on them.
sorry for asking.
You'll have to do some programming (i.e. beyond what eabuilder can do) in order to combine separate indicators' codes into one.
You'll have to do some programming (i.e. beyond what eabuilder can do) in order to combine separate indicators' codes into one.
sorry for asking that,,
another one can i ?
my indicator is repaint, but thats not the problem, the problem is i cant see the history how bad it was. can i have all arrow that printed by the indicator, even if it makes a new one.
eg: it shows on candle one closed, but the condition still happend on candle two closed and so on. can we have all arrow printed to all those candle?
sorry for asking that,,
another one can i ?
my indicator is repaint, but thats not the problem, the problem is i cant see the history how bad it was. can i have all arrow that printed by the indicator, even if it makes a new one.
eg: it shows on candle one closed, but the condition still happend on candle two closed and so on. can we have all arrow printed to all those candle?
From the code, it does not repaint, and all past arrows remain displayed...
of course, I don't have your "iCustom(NULL, PERIOD_CURRENT, "indicatory", i)" so I cannot really run and test.
From the code, it does not repaint, and all past arrows remain displayed...
of course, I don't have your "iCustom(NULL, PERIOD_CURRENT, "indicatory", i)" so I cannot really run and test.
iam combining repaint indicator and ma
and I wonder Buffer2[i] = Low[2+i] what is that means ?
and I wonder Buffer2[i] = Low[2+i] what is that means ?
Nothing, just a "suitable" price level for drawing arrows - you can play around with other values and see what happens.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
hi sorry i need a help regarding mq4 code, i have a problem with the arrow of an indicator, it always appears before the candle closed (i mean like appear and dissaper till the condition met). i have set to appear when the candle closed, but it's not work. all i want is only appear after the condition met and the candle closed. thank's in advance.
here is my code