♥ 0 |
Hi! Im trying to reduce the number of buy and sell signals triggering from this custom indicator i’ve created from CCI Average indicator in TOS. Im wanting to have only the initial signal and no more duplicates before a new signal is created. Here is the code im working with so far.. declare upper;
input cciLength = 14; input cciAvgLength = 9; input over_sold = -100; input over_bought = 100;
def CCI = CCI(length = cciLength); def CCIAvg = Average(CCI, cciAvgLength); def OverBought = over_bought; def OverSold = over_sold;
plot UpSignal = CCI crosses above oversold; plot DownSignal = CCI crosses below overbought;
UpSignal.SetDefaultColor(Color.UPTICK); UpSignal.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP); DownSignal.SetDefaultColor(Color.DOWNTICK); DownSignal.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
Marked as spam
|
Please log in to post questions.