[ARCHIVE!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Can't go anywhere without you - 4. - page 10
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
indicator code, everything works. Here is the library code.
This is a call in the indicator code:
I do not know how to use it.
Z.I. I am sure there are a lot of mistakes and stupid, please shoot blanks.
You yourself write that you have an Expert Advisor and the function is for an indicator.
Count the number of bars you want forcibly and no more.
Secondly, add a check that there has already been an opening by this signal or you will get a new order every tick.
Third, check the iCustom function
You yourself write that you have an Expert Advisor, and the function is for an indicator.
Count the number of bars you want forcibly and no more.
I do not know how to use it.
Z.I. I'm sure there are a lot of mistakes and stupid, please shoot blanks.
Opening price
How do you force a count?
Opening price
I.e. use this condition for recalculation of bars?
But in my indicator, at every tick the arrays TP_UP and TP_DN are calculated.Therefore, we should calculate them first of all.
For your Expert Advisor and to open trades, the only thing that matters is the signal on the 0th bar, isn't it? So, shorten the calculation cycle from the number of bars to the number needed for this calculation
I tried to open orders on a new bar there using the NewBar() function. If it is used for this purpose?
For example if (NewBar())i++; Something like this.
For your Expert Advisor and trade opening it is only the signal on the 0th bar that matters, isn't it? So shorten the calculation cycle from the number of bars to the number required for this calculation
indicator code, everything works. Here is the library code.
This is a call in the indicator code:
Maybe the array was not prepared correctly in the indicator init()? Did I understand you correctly - the imported function did not work there?