Hey there, I am new to thinkscript and would greatly appreciate any help. I would like to add a custom color to this input's drop down menu:
The custom color I would like to use is:
this is the study's script:
The custom color I would like to use is:
this is the study's script:
Code:
input Period = aggregationPeriod.HOUR;
input AvgType = averageType.EXPONENTIAL;
input FastLength = 72;
input SlowLength = 89;
input priceclose = close;
input CloudColorBull = {"MAGENTA", "CYAN", "PINK", "LIGHT_GRAY", "ORANGE", "RED", "GREEN", default "GRAY", "WHITE"};
input CloudColorBear = {"MAGENTA", "CYAN", "PINK", "LIGHT_GRAY", "ORANGE","RED", "GREEN",default "GRAY", "WHITE"};
plot fastAVG = MovingAverage(AvgType, close(period = Period), FastLength);
plot slowAVG = MovingAverage(AvgType,close(period = Period), SlowLength);
fastAVG.setdefaultcolor(color.white);
fastAVG.setStyle(curve.SHORT_DASH);
slowAVG.setdefaultcolor(color.white);
slowAVG.setStyle(curve.SHORT_DASH);
AddCloud(fastAVG,slowAVG,GetColor(CloudColorBull),GetColor(CloudColorBear));