Stock Portfolio Organizer
The ultimate porfolio management solution.
Shares, Margin, CFD's, Futures and Forex
EOD and Realtime
Dividends and Trust Distributions
And Much More ....
WiseTrader Toolbox
#1 Selling Amibroker Plugin featuring:
Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
Time Left for each bar with Sound for Amibroker (AFL)
Copy & Paste Friendly
Back
//***********************************************\\Time Left//****************************//
function GetSecondNum()
{
Time = Now( 4 );
Seconds = int( Time % 100 );
Minutes = int( Time / 100 % 100 );
Hours = int( Time / 10000 % 100 );
SecondNum = int( Hours * 60 * 60 + Minutes * 60 + Seconds );
return SecondNum;
}
RequestTimedRefresh( 1 );
TimeFrame = Interval();
SecNumber = GetSecondNum();
SecsLeft = SecNumber - int( SecNumber / TimeFrame ) * TimeFrame;
SecsToGo = TimeFrame - SecsLeft;
Secsleft = SecsToGo % 60 ;
Minleft = int( SecsToGo / 60 );
Title = Title + "\n\\c05 " + Minleft + "\\c09 : " + "\\c07 " + Secsleft ;
//(Colourful timing in left upper corner ie 05, 09 & 07)
Hora=Param("Left - Right",525,1,1200,1);
Vera=Param("Up - Down",17,1,830,1);
GfxSetBkMode( colorWhite );
Newperiod = SecNumber % TimeFrame == 0;
if ( NewPeriod )
{
Say( " Next Candle Startz" );//Sound
}
FST=Param("Font Size Time",16,12,100,1);
GfxSelectFont( "Arial", FST, 700, italic = False, underline = False, True );
GfxSetTextColor(ParamColor("Color",colorTan) );
GfxTextOut( ""+"" + Minleft + ":"+ "" + Secsleft+"",Hora+30,Vera+65);
//***********************************************\\Time Left//****************************//
Peruse marketlogy.com for best AFL