popup signal

#1
hello


i have an afl which gives buy /sell signal ( arrows )

i have 12 scripts in my favourites list ..

i need that whenever arrow comes in any of my selected scripts a notification like a pop up ( with or with out sound ) shud come even i am writing a mail or surfing net

further is it also possible to have multitime frame multi scripts alert ?

how to use this function as i am not profecient in ami

regards
 

trash

Well-Known Member
#7
In Metastock too the slert works only on open charts !
AmiBroker is not Metastock! It is (much) better. Because it is better popup in AmiBroker will also work if AB is minimized!

This can be achieved by setting "onlyvisible" parameter of RequestTimedRefresh to false.

Code:
RequestTimedRefresh( 1, onlyvisible = False ); 

Current = Now ( 4 );
Hours = int ( Current / 10000 );
Minutes = int ( ( Current - Hours * 10000 ) / 100 );
Seconds = Current - Hours * 10000 - Minutes * 100;
totalSeconds = Hours * 60 ^ 2 + Minutes * 60 + Seconds;
Left =  Interval() - totalseconds % Interval();//alternatively Status( "lastbartimeleft" ); //alternatively Status( "lastbartimeleftrt" ); see manual for description

execute = StaticVarGet ( "execute" );

if ( Interval() - Left == 0 )
{
    if ( execute )
    {       
        PopupWindow( "Current time is: " + Now(), "Alert", 5, 640*mtRandom(), 480*mtRandom() );
        SetChartBkColor ( colorYellow );
        StaticVarSet ( "execute", 0 );        
    }
}
else
    StaticVarSet ( "execute", 1 );

Title = StrFormat( "Time left: %g", left );
 

Similar threads