PureBytes Links
Trading Reference Links
|
You are right.
LastCalcDate is activated only the last bar and shows only one string on the
printing output whichever is your database.
-----Messaggio originale-----
Da: M. Simms [mailto:prosys@xxxxxxxxxxxxxxxx]
Inviato: martedi 14 agosto 2001 16.55
A: Scorpio Massimiliano
Oggetto: RE: EL Question on Print statement
Nice trick....where did you get it ?
I guess this indicates that LastCalcDate is unresolved until the maxbarsback
setting has been determined by TS......no ?
> -----Original Message-----
> From: Scorpio Massimiliano [mailto:massimiliano.scorpio@xxxxxxxxxxxx]
> Sent: Tuesday, August 14, 2001 3:44 AM
> To: 'Dave Nadeau'
> Cc: 'omega-list@xxxxxxxxxx'
> Subject: R: EL Question on Print statement
>
>
> You can try this solution:
>
> if LastCalcDate=Date then begin
>
> Print(newline + GetSymbolName + ", "+ NumToStr(NetProfit,2)+"
> Profit"+" " + NumToSTr(PercentProfit,1)+" %,
> "+NumToStr(MaxIDDrawDown,2)+" MaxDD"+" " + NumToStr(Barnumber,0)+"
> Bars, "+NumToStr(TotalTrades,0)+" Trades");
>
> End;
>
> Max Scorpio (Italy)
>
> -----Messaggio originale-----
> Da: Dave Nadeau [mailto:dave_nadeau@xxxxxxxxx]
> Inviato: lunedi 13 agosto 2001 3.58
> A: Omega List
> Oggetto: EL Question on Print statement
>
>
> When I add the following code to a Signal that I'm using in a strategy
>
>
> If LastBarOnChart then begin
> Print(newline + GetSymbolName + ", "+ NumToStr(NetProfit,2)+"
> Profit"+" " + NumToSTr(PercentProfit,1)+" %,
> "+NumToStr(MaxIDDrawDown,2)+" MaxDD"+" " + NumToStr(Barnumber,0)+"
> Bars, "+NumToStr(TotalTrades,0)+" Trades");
>
> End;
>
>
> {The print statement is all on one line in the Power Editor}
>
> I will get six lines in my Debug window:
>
>
> ES M1, 18243.90 Profit 84.8 %, -569.70 MaxDD 84250 Bars, 2324 Trades
>
> ES M1, 18243.90 Profit 84.8 %, -569.70 MaxDD 84251 Bars, 2324 Trades
>
> ES M1, 18243.90 Profit 84.8 %, -569.70 MaxDD 84252 Bars, 2324 Trades
>
> ES M1, 18243.90 Profit 84.8 %, -569.70 MaxDD 84253 Bars, 2324 Trades
>
> ES M1, 18243.90 Profit 84.8 %, -569.70 MaxDD 84254 Bars, 2324 Trades
>
> ES M1, 18243.90 Profit 84.8 %, -569.70 MaxDD 84255 Bars, 2324 Trades
>
> ES M1, 18243.90 Profit 84.8 %, -569.70 MaxDD 84256 Bars, 2324 Trades
>
>
> instead of just one.
>
> Does anyone have any suggestions on what I'm doing wrong?
>
> Thanks!
>
> ================
> Dave Nadeau
> Fort Collins, CO
>
|