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 ....
price and time - vel for Amibroker (AFL)
Copy & Paste Friendly
Back
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | _SECTION_BEGIN ( "Magfied Market Price" ); //Magfied Market Price FS= Param ( "Font Size" ,30,11,100,1); GfxSelectFont ( "Times New Roman" , FS, 700, True ); GfxSetBkMode ( colorWhite ); GfxSetTextColor ( ParamColor ( "Color" , colorGreen ) ); Hor= Param ( "Horizontal Position" ,800,1,1200,1); Ver= Param ( "Vertical Position" ,12,1,830,1); GfxTextOut ( "" + C , Hor , Ver ); YC= TimeFrameGetPrice ( "C" , inDaily ,-1); DD= Prec ( C -YC,2); xx= Prec ((DD/YC)*100,2); GfxSelectFont ( "Times New Roman" , 11, 700, True ); GfxSetBkMode ( colorBlack ); GfxSetTextColor ( ParamColor ( "Color" , colorYellow ) ); GfxTextOut ( "" +DD+ " (" +xx+ "%)" , Hor , Ver+45 ); _SECTION_END (); _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" ,50,0,1000,1); y= Param ( "yposn" ,350,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+40, x-3, y-2, 0, 0 ); //GfxSetBkMode(1); GfxSelectFont ( "Arial" , 14, 700, False ); GfxSetTextColor ( colorRed ); GfxTextOut ( "Time Left :" +SecsToGo+ "" , x, y ); _SECTION_END (); |