PureBytes Links
Trading Reference Links
|
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: luned́ 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
|