Skip to content

Instantly share code, notes, and snippets.

@marketcalls
Created January 7, 2017 06:52
Show Gist options
  • Save marketcalls/90a11c5f272df9136570bbb9133d2364 to your computer and use it in GitHub Desktop.
Save marketcalls/90a11c5f272df9136570bbb9133d2364 to your computer and use it in GitHub Desktop.
Magnified Market Price
_SECTION_BEGIN("Magnified 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",940,1,1200,1);
Ver=Param("Vertical Position",12,1,830,1);
YC=TimeFrameGetPrice("C",inDaily,-1);
DD=Prec(C-YC,2);
xx=Prec((DD/YC)*100,2);
GfxTextOut(Name()+": "+C+ " "+""+DD+" ("+xx+"%)", Hor , Ver );
GfxSelectFont("Times New Roman", 10, 700, True );
GfxSetBkMode( colorBlack );
GfxSetTextColor(ParamColor("Color",colorYellow) );
//GfxTextOut(""+DD+" ("+xx+"%)", Hor , Ver+20 );
_SECTION_END();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment