Created
January 7, 2017 06:42
-
-
Save marketcalls/d6a8952dd6f864f11335aa1d36d28c30 to your computer and use it in GitHub Desktop.
Dashboard.afl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_SECTION_BEGIN("Dashboard"); | |
X0 = 10; | |
Y0 = 20; | |
procedure DrawData (Text, x1, y1, x2, y2, colorFrom, colorTo) | |
{ | |
GfxSetOverlayMode(0); | |
GfxSelectFont("Verdana", 8.5, 700); | |
GfxSetBkMode(1); | |
GfxGradientRect(x1, y1, x2, y2, colorFrom, colorTo); | |
GfxDrawText(Text, x1, y1, x2, y2, 32|1|4|16); | |
} | |
DrawData (Name(), X0, Y0, X0+150, Y0+20, colorGrey40, colorGrey40); | |
DrawData (Date(), X0+155, Y0, X0+320, Y0+20, colorGrey40, colorGrey40); | |
DrawData ("Open : " + Open, X0+325, Y0, X0+450, Y0+20, colorGrey40, colorGrey40); | |
DrawData ("Close : " + Close, X0+455, Y0, X0+580, Y0+20, colorGrey40, colorGrey40); | |
DrawData ("High : " + High, X0+585, Y0, X0+710, Y0+20, colorGrey40, colorGrey40); | |
DrawData ("Low : " + Low, X0+715, Y0, X0+840, Y0+20, colorGrey40, colorGrey40); | |
DrawData ("Autocorrelation : " + AutoCor, X0+845, Y0, X0+1050, Y0+20, colorGrey40, colorGrey40); | |
DrawData ("Smooth Osc : " + rsx, X0+1055, Y0, X0+1225, Y0+20, colorGrey40, colorGrey40); | |
_SECTION_END(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment