PureBytes Links
Trading Reference Links
|
I really hope someone can help me figure out this one.
I'm using the FileAppend to keep track of my trades with a multiple entry/exit strategy, but am unable to figure out how to identify them.
I do something like this:
if BarNumber = 1 then
begin
Buy("Strategy1") this bar on close;
Buy("Strategy2") this bar on close;
Buy("Strategy3") this bar on close;
Buy("Strategy4") this bar on close;
end;
.
.
.
if condition1 then ExitLong("Strategy1") Next Bar at open-.25 stop;
if condition2 then ExitLong("Strategy2") Next Bar at open-.5 stop;
if condition3 then ExitLong("Strategy3") Next Bar at open+.25 limit;
if condition4 then ExitLong("Strategy4") Next Bar at open+.5 limit;
if BarNumber > 1 and CurrentEntries < CurrentEntries[1] then
begin
for Value99 = CurrentEntries to CurrentEntries[1] begin
FileAppend("c:\MyFile.txt", NumToStr(EntryTime(1),0), NumToStr(EntryPrice(1),2), NumToStr(ExitTime(1),0), NumToStr(ExitPrice(1),2);
end;
end;
.
.
.
So, when the orders go off I can see the individual trades in the Performance Report with the Entry/Exit Names, but in my file I end up with something like this:
931, 50.00, 941, 50.25
951, 50.00, 1001, 50.50
1011, 50.00, 1021, 49.75
1031, 50.00, 1041, 49.50
What can I do to identify the exit/entry names associated with those trades?
Thanks,
Cash
"Buy Low, Sell High"
(If this statment is used for financial gain, I am entitled to 10% of all profits. ;) )
|