OPEN-SOURCE SCRIPT

Stochastic w/ Crossover Alerts (by WJ)

已更新
NOTE:
// STOCHASTIC CODE TAKEN FROM DEFAULT INDICATOR
// I HAVE ONLY MADE SOME ADJUSTMENTS FOR VISUAL AID
// I MADE THIS FOR MY OWN USE BUT HAVE DECIDED TO PUBLISH AND SHARE IN CASE ANYBODY WANTS TO USE IT

This is the normal default built-in Stochastic indicator which I have added some stuff for visual aid:
  • Stochastic background turns green when K line crosses D line UPWARDS, D line is below the oversold level, and price is above selected MA
  • Stochastic background turns red when K line crosses D line DOWNWARDS, D line is above the overbought level, and price is below selected MA
  • Alert notification on the crossover candle with background colour change when conditions are met (MA filter)
發行說明
Changed alerts to K line detection as it's better, apologies for the confusion and trouble of re-adding the indicator
發行說明
Changed to both K and D line as it seems to be the best solution
發行說明
Added sharper detection mode (toggleable) that also takes whether the k and d lines of the candle before crossover candle into account
發行說明
Added middle line
發行說明
Added toggleable background colour change when k line crosses 50
發行說明
Added new alerts for non-OBOS crossovers
發行說明
MA checking was slightly wrong (used OPEN instead of CLOSE), fixed
發行說明
Updated some stuff
Stochastic Oscillator

開源腳本

在真正的TradingView精神中,這個腳本的作者以開源的方式發佈,這樣交易員可以理解和驗證它。請向作者致敬!您可以免費使用它,但在出版物中再次使用這段程式碼將受到網站規則的約束。 您可以收藏它以在圖表上使用。

想在圖表上使用此腳本?

免責聲明