♥ 0 |
Hi Pete, I truly appreciate all you do for the trading community. I have several alerts that I use for my watchlist, but the issue with the existing code is the use of ‘def ‘ . The alert only happens one time per day instead of every time the condition is triggered. I found this link https://toslc.thinkorswim.com/center/reference/thinkScript/Reserved-Words/def.html Is it possible to make changes to some of your indicators that you’ve developed and not use ‘def’ in the code so that they can be recursive? declare lower; def Diff = MACD(fastLength, slowLength, MACDLength, averageTypeMACD).Diff; input over_bought = 80; def SlowK = reference StochasticFull(over_bought, over_sold, KPeriod, DPeriod, priceH, priceL, priceC, 3, averageTypeSTOCH).FullK; def SlowD = reference StochasticFull(over_bought, over_sold, KPeriod, DPeriod, priceH, priceL, priceC, 3, averageTypeSTOCH).FullD; plot data = (SlowK[1] < SlowD[1]) and (SlowK > SlowD) and (Lowest(SlowK[1], 3) < 20) and (Diff[1] < Diff); Is it possible to replace the ‘def’ with something that is in the link above as a guide?? Thanks in advance. Carol
Marked as spam
|
Please log in to post questions.