![]() ![]() PrintInCell ( StrFormat ( "%.1f%%", Chg ), Row, m ) ![]() PrintInCell ( StrFormat ( "%.1f%%", VarGet ( "ChgYear" + y ) ), Row, 13 ) PrintInCell ( StrFormat ( "%g", y ), Row, 0 ) Header = "Year," + MonthNames + ",Yr Profit%" įor( Col = 0 ( Colname = StrExtract ( Header, Col ) ) != "" Col ++ ) MonthNames = "Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec" GfxLineTo ( XOffset, YOffset + Height ) GfxLineTo ( XOffset + width, YOffset + Height ) GfxTextOut ( "" + y, XOffset + 2 + width, yp ) Yp = YOffset + Height * ( 1 - ( y - Miny ) / ( Maxy - Miny ) ) ![]() Height = Status ( "pxheight" ) - 2 * YOffset įor( y = grid * ceil ( Miny / grid ) y <= grid * floor ( Maxy / grid ) y += grid ) Width = Status ( "pxwidth" ) - 4 * XOffset _TRACE ( "grid = " + grid + " range " + range ) ![]() GfxTextOut ( StrFormat ( "%.2f", y ), xp, yp ) It should be applied to ~~~EQUITY – portfolio equity symbol (so it only produces output if you run backtest before using it).ĬolorHSB ( 70, 255 * relpos, 255 ), ColorHSB ( 70, 20, 255 ) ) ĬolorHSB ( 0, 20, 255 ), ColorHSB ( 0, 255 * ( 1 - relpos ), 255 ) ) The type of chart is switchable from Parameters dialog. It allows to display three kinds of charts: The code below is an little bit more complex example of Low Level Graphics functions (see ) ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |