I modified the custom 1 line study but it's not working well. I just want to paint a bar and have an audio alert every time volume is greater than 2000 contracts on a 1 min chart. Here's the code which compiles well and a picture of the result. Help is greatly appreciated.
Code: Select all
inputs:
Criteria( Volume > 2000 ) , AlertCondition( true ) ;
if Criteria then
begin
PlotPaintBar( High, Low, "CustomPB" ) ;
Alert ;
end
else
NoPlot( 1 ) ;
if AlertCondition then
Alert ;