Try this: printf (tname + " saw a highest Close of " + WriteVal(HighestV, 1.2) + ", " + WriteVal(HighestS, 1.0) + "-bars ago on " + NumToStr(ValueWhen(Close == HighestV, DateTime()), formatDateTime));
Mike --- In [email protected], Mubashar Virk <mvir...@...> wrote: > > Hi All, > I need a little help with the following. > > These Lines: > ///////////////////////////////////////////// > _N( tname = Name() ); > HighestV = Highest( Close ); > HighestS = HighestBars ( Close ); > printf (tname + " saw a highest Close of " + WriteVal(HighestV, 1.2) + > ", " + WriteVal(HighestS, 1.0) + "-bars ago."); > /////////////////////////////////////////// > > Gives me: > XYZ saw a highest Close of 1234.56, 50-bars ago. > > QUESTION: What do I need to add at the end of the code to get the > following line: > XYZ saw a highest Close of 1234.56, 50-bars ago on 12/12/2009. > > Thanks, >
