Search found 2 matches

by gorby
16 May 2011
Forum: MultiCharts
Topic: Counter function
Replies: 4
Views: 1206

Re: Counter function

Thanks for the help. But moving mysum doesn't solve the problem. With this change, the indicator correctly identifies each day the condition is met and gives me the number of consecutive days that the condition has been met. However, it still doesn’t tell me how many times the condition has been met...
by gorby
15 May 2011
Forum: MultiCharts
Topic: Counter function
Replies: 4
Views: 1206

Counter function

I am having difficulty coding an indicator using the counter. I have not been successful trying to code the number of days a stock is up during the past 20 days. The code I am using is: Inputs: length(20); Vars: mysum(0), counter(0); For counter = 0 to length -1 begin mysum = 0; If c > c[1] then mys...

Go to advanced search