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
I didn't use your code, I used mine but added as a value to the function to pass the price of the close like you did. I then called the function in the main loop of the indicator passing as parameter Close[i], and now it's working correctly!thank you!
I didn't use your code, I used mine but added as a value to the function to pass the price of the close like you did. I then called the function in the main loop of the indicator passing as parameter Close[i], and now it's working correctly!thank you!
Sure, also because it's even more elegant than my code 😃
I thought it was due to creating the objects in the OnCalculate, but I have looked at other open source indicators which are similar and don't have this problem even though the objects are created in the OnCalculate...