Code for my strategy " Stochastic Oscillator"

Dear Sir,

As i want to code a strategy & alert sound.

I use in my Pi chart Stochastic PERIOD (5,3,3) AND DMA(5), DMA(13) in 15-min chart

BUY- WHEN Stochastic K period crosses level 20 LINE CUT UPSIDE

SELL-WHEN Stochastic K period crosses level 80 LINE CUT DOWNSIDE

As per above condition

Buy Script:

SOPK(9, 3, 9, SIMPLE) > 20

Sell Script:

SOPK(9, 3, 9, SIMPLE) < 80