Mate, here is a 'paint bar' you can apply to do it. Just paste
that code into a new paint bar and then apply it to the chart. But
there is a load of stuff on the forum and a load of walk through
lessons you can take. It takes some time but so be it.
inputs:
PriceH( High ),
PriceL( Low ),
PriceC( Close ),
Length( 60 ),
OverSold( 20 ),
OverBought( 80 ),
OverSColor( Cyan ),
OverBColor( Blue ) ;
if MySlowK Crosses Over OverSold then
begin
PlotPaintBar( High, Low, "SlowK", OverSColor ) ;
Alert( "SlowK crosses oversold zone" ) ;
end
else if MySlowK Crosses under OverBought then
begin
PlotPaintBar( High, Low, "SlowK", OverBColor ) ;
Alert( "SlowK crosses overbought zone" ) ;
end
else
NoPlot( 1 ) ; { unpaint the bar }
Stochastics
Posted by winter39 on 28th of Jan 2010 at 03:24 pm
How do you set an alert for when the stochastics cross the 80/20 level?
Currently in TS setting an alert for Stochastics means the lines crossing but not the 80/20 crossing.
Any advice?
Thank you.
paint bar
Posted by window72 on 28th of Jan 2010 at 03:57 pm
Mate, here is a 'paint bar' you can apply to do it. Just paste that code into a new paint bar and then apply it to the chart. But there is a load of stuff on the forum and a load of walk through lessons you can take. It takes some time but so be it.
inputs:
PriceH( High ),
PriceL( Low ),
PriceC( Close ),
Length( 60 ),
OverSold( 20 ),
OverBought( 80 ),
OverSColor( Cyan ),
OverBColor( Blue ) ;
variables:
MySlowK( 0 ) ;
MySlowK = SlowKCustom( PriceH, PriceL, PriceC, Length ) ;
if MySlowK Crosses Over OverSold then
begin
PlotPaintBar( High, Low, "SlowK", OverSColor ) ;
Alert( "SlowK crosses oversold zone" ) ;
end
else if MySlowK Crosses under OverBought then
begin
PlotPaintBar( High, Low, "SlowK", OverBColor ) ;
Alert( "SlowK crosses overbought zone" ) ;
end
else
NoPlot( 1 ) ; { unpaint the bar }
paint bar
Posted by winter39 on 29th of Jan 2010 at 10:48 am
Thank you for all that info, and the reminder to look at the forum. I certainly will look into this when I have chance.
Have a good weekend.
winter
I think you can draw
Posted by robo3 on 28th of Jan 2010 at 03:29 pm
I think you can draw a horizontal line on the chart and set an alram on the cross of that line. I am still a newbie with TS
Horizontal line
Posted by winter39 on 28th of Jan 2010 at 04:15 pm