Average should be calculated using SUM, not multiplication.
This:
(Sentiment_BUY*Sentiment_BUY1*Sentiment_BUY2)/3;
Should be like this:(Sentiment_BUY+Sentiment_BUY1+Sentiment_BUY2)/3;
Hello Everyone,
First I just want to say thanks a lot for your advice in advanced.. :)
So I have the following issue.
I created an indicator using custom indicators by importing them through iCustom. If I simply put the iCustom = IndicatorBuffer I get a Value in my Buffer which is acurate and works the way I want it to in the DATA window.
Now I don't however wan't the indicator value one to one. What I did next was basicly take the average of the past 3 values so that the indicator would be smoother. This changed, but now the Values in the Data window disapeared. Any helpful insights? Thanks a lot :)
See the code attached keep in mind this isn't the indicator one to one since its a payed, but the principle is the same.
And Here is the one which shows up in the data window:
Thank you for your help :)
Also, you can move the icustom inside the if condition. This will speed up your code a little bit.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello Everyone,
First I just want to say thanks a lot for your advice in advanced.. :)
So I have the following issue.
I created an indicator using custom indicators by importing them through iCustom. If I simply put the iCustom = IndicatorBuffer I get a Value in my Buffer which is acurate and works the way I want it to in the DATA window.
Now I don't however wan't the indicator value one to one. What I did next was basicly take the average of the past 3 values so that the indicator would be smoother. This changed, but now the Values in the Data window disapeared. Any helpful insights? Thanks a lot :)
See the code attached keep in mind this isn't the indicator one to one since its a payed, but the principle is the same.
And Here is the one which shows up in the data window:
Thank you for your help :)