Information

Username: firemyst
Member since: 26 Mar 2019
Last login: 04 Jan 2024
Status: Active

Activity

Where Created Comments
Algorithms 0 2
Forum Topics 130 1133
Jobs 0 0

Last Algorithm Comments

FI
firemyst · 1 year ago

I believe you have a bug in your code on this line:

 

var histogram = typicalPrice.Result[index] > mid ? typicalPrice.Result[index] > high ? WeakUpTrend : StrongUpTrend : typicalPrice.Result[index] < low ? StrongDownTrend : WeakDownTrend;

 

It should be:

 

var histogram = typicalPrice.Result[index] > mid ? typicalPrice.Result[index] > high ? StrongUpTrend : WeakUpTrend : typicalPrice.Result[index] < low ? StrongDownTrend : WeakDownTrend;

 

 because if the typical price is greater than the high, that's "strong", not "weak" just like when the typical price less than the low that's "strong" too. :-)

 

FI
firemyst · 1 year ago

Changing the "MA Smooth Type" parameter makes no difference on the output. Are you sure it's coded correctly? Just call up any chart and change it from "Simple" to "weighted" to even "hull".

Nothing happens.