PureBytes Links
Trading Reference Links
|
Hey guys/gals I am trying to test my system on a wide
variety of markets to see if the principles are sound.
Does anyone have the easylang code that will export in
addition to the code below, sharp ratio, %winners,
%losers, average winning trade, average loosing trade,
ROA, Mathmatical Expectation, and possibly average
entry and exit efficiency, that can be opened in an
excel file and be viewed the same way the code below
is viewed when opened in excel?
By the way to view this in excel you paste this code
onto the end of one of your signals(in your
system),create a Temp folder in the C: drive. then
apply the system to a chart and save it. Optional:
Then you run the workspace assistant and have it scan
through you symbol list. Next open it in excel and
wa-la.. magic. Or you can just do it one symbol at a
time and you still get the same magic, just on one
symbol not the whole list.
Inputs: SysVer(0);
Vars: PFactor(0), WTrades(0), TotBars(0),
TradeStr1(““);
If CurrentBar = 1 Then Begin
TradeStr1 = “Market” + “,” + “Version” + “,” + “P
factor” + “,” + “% Winners” + “,” + “% in trade” +
NewLine;
FileAppend(“C:\Temp\Chap1-1.csv”, TradeStr1);
End;
If LastBarOnChart Then Begin
PFactor = GrossProfit / -GrossLoss;
WTrades = NumWinTrades * 100 / TotalTrades;
TotBars = (TotalBarsLosTrades + TotalBarsWinTrades) *
100 / BarNumber;
TradeStr1 = LeftStr(GetSymbolName, 2) + “,” +
NumToStr(SysVer, 0) + “,” + NumToStr(PFactor, 2) + “,”
+ NumToStr(WTrades, 2) + “,” + NumToStr(TotBars, 0) +
NewLine;
FileAppend(“C:\Temp\Chap1-1.csv”, TradeStr1);
This code above is from Thomas Stridsmans’ new book.
Thanks,
D
|