hi
@bbhanushali
Found this code for pop-up in exploration :
// one time popup example by trash ....
//
http://www.traderji.com/newreply.php?do=postreply&t=78419
/////////////////////////////////////////////////////////////////////////
period = 5; // number of averaging periods
m = MA( Close, period );
Buy = Cross( Close, m );
Sell = Cross( m, Close );
if( Status( "action" ) == actionIndicator )
{
Buy = ExRem( Buy, Sell );
Sell = ExRem( Sell, Buy );
alertstr = Name() + "_Last Bartime:" + DateTimeToStr( LastValue( DateTime() ) );
buyid = "ID:1";
sellid = "ID:2";
duration = secleft(); // one popup ocurrence AFTER confirmed signal
if ( LastValue( Ref( Buy, -1 ) ) )
PopupWindowEx( buyid, "Buy " + alertstr, "Buy Alert", duration, -1, -1 );
if ( LastValue( Ref( Sell, -1 ) ) )
PopupWindowEx( sellid, "Sell " + alertstr, "Sell Alert", duration, 0, 0 );
Title = "Intrabar " + StaticVarGetText( "prevPopup:" + buyid ) +
"\nIntrabar " + StaticVarGetText( "prevPopup:" + sellid ) +
"\nBartime left: "+ duration;
Plot( Buy, "True Buy Sig", colorGreen, styleHistogram, 0, 1, 0, 0, width = -80 );
Plot( Sell, "True Sell Sig", colorRed, styleHistogram, 0, 1, 0, 0, width );
}
But getting 3 errors, pic attached
.
Could you kindly look into it.
Cheers
JS