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 for Amibroker (AFL)
Rating:
5 / 5 (Votes 1)
Tags:
amibroker, function
Calculates the time for each bar to end
Similar Indicators / Formulas
Percent Rank
Submitted
by genkumag about 13 years ago
Last Thursday Of The Month
Submitted
by sahasra over 13 years ago
Visible Min and Max Value Demo
Submitted
by kaiji almost 15 years ago
Chandelier Exit Functions
Submitted
by kaiji almost 15 years ago
Adaptive Laguerre Filter from John Ehlers
Submitted
by kaiji almost 15 years ago
Averages Functions Include
Submitted
by demon about 14 years ago
Indicator / Formula
Copy & Paste Friendly
_SECTION_BEGIN("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(); Newperiod = SecNumber % TimeFrame == 0; SecsLeft = SecNumber - int( SecNumber / TimeFrame ) * TimeFrame; SecsToGo = TimeFrame - SecsLeft; x=Param("xposn",300,0,1000,1); y=Param("yposn",50,0,1000,1); GfxSelectSolidBrush( ColorRGB( 230, 230, 230 ) ); GfxSelectPen( ColorRGB( 230, 230, 230 ), 2 ); if ( NewPeriod ) { GfxSelectSolidBrush( colorYellow ); GfxSelectPen( colorYellow, 2 ); Say( "New period" ); } GfxRoundRect( x+45, y+17, x-3, y-2, 0, 0 ); GfxSetBkMode(1); GfxSelectFont( "Arial", 12, 700, False ); GfxSetTextColor( colorBlack ); GfxTextOut( ""+SecsToGo+" / "+NumToStr( TimeFrame, 1.0 ), x, y ); _SECTION_END();
0 comments
Leave Comment
Please login here to leave a comment.
Back