Custom Indicator

I’m wanting to make a custom indicator. Basically it’s 4 to 5 if statements. I have done HTML but I’m finding the learning curve to steep on Javascript.

I think there is a community indicator we can base this off. Looking for input or direction getting this made.



Can you describe what it is you would like this indicator to do, or an image of it running in a different platform? Members like @tikidave might be able to get you pointed in the right direction.

The basic structure for this in Javascript is as follows:

map(d, i, history) {
if (first condition) {
// do something
} else if (some condition) {
// do something
} else {
// do something

    return {
        value: someValue