OK, I;ve found this bug in TS6, and verified on two different boxes. Could somebody either confirm or deny?
------repro-----
Start with an empty workspace
Hit the New Chart button (left hand side)
Enter QQQ (and prompt for format)
Select a date of 12/06/01, 1 minute, 2 days back
Select OK
Select File, New
Select the Easy Language tab
Select Strategy
Select OK
Enter a name of aaabug and hit OK
Erase all the text and enter:
---
if time=1031 then
begin
buy this bar on close;
setstopcontract;
setprofittarget(0.10);
end;
---
Hit F3 to verify
Select the chart
Right click and select insert strategy
Select aaabug
Hit close
Select View, Strategy Performance
Select the trades tab
Note that the first trade shows it hit the profit target of $259. Since we accepted the default settings of zero commision and slippage, and 100 shares that's a violation of the SetTargetProfit of $.10/share. Instead the trigger seems to be about $2.59/share.
------repro-----
Start with an empty workspace
Hit the New Chart button (left hand side)
Enter QQQ (and prompt for format)
Select a date of 12/06/01, 1 minute, 2 days back
Select OK
Select File, New
Select the Easy Language tab
Select Strategy
Select OK
Enter a name of aaabug and hit OK
Erase all the text and enter:
---
if time=1031 then
begin
buy this bar on close;
setstopcontract;
setprofittarget(0.10);
end;
---
Hit F3 to verify
Select the chart
Right click and select insert strategy
Select aaabug
Hit close
Select View, Strategy Performance
Select the trades tab
Note that the first trade shows it hit the profit target of $259. Since we accepted the default settings of zero commision and slippage, and 100 shares that's a violation of the SetTargetProfit of $.10/share. Instead the trigger seems to be about $2.59/share.
). I expect to hear back from her tomorrow or the next day. I'll post anything noteworthy. I'l be darn sure to post a fix or workaround.