Login Page - Create Account

Support Board


Date/Time: Sun, 09 Mar 2025 21:08:06 +0000



Auto Trade System Back Testing

View Count: 393

[2022-03-09 13:38:45]
User39772 - Posts: 311
Hello,

are the following observations correct.

a) If I use sc.GetBarHasClosedStatus() == BHCS_BAR_HAS_CLOSED during Auto Trade System Back Testing
a Buy Signal at a bar with "Index = 100" causes a fill at the Open of the following bar, i.e. the bar with Index = 101.

b) If I do not use sc.GetBarHasClosedStatus() == BHCS_BAR_HAS_CLOSED during Auto Trade System Back Testing
I understood, that the fill price is always based on the same bar that caused the signal and can be H/L/C/O
of that bar, in the example above the bar with "Index = 100".

If case b) is correct, is there a way to force an entry always at the close of the bar, i.e. to make that a part
of the entry condition or could you provide such a function ?

c) If I use attached orders for Target and Stop.
Can I determine here if the exit is based e.g. on the bar high, or low, or close also ?
Date Time Of Last Edit: 2022-03-09 13:39:38

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account