- ago
To enter a trade I would use:
PlaceTrade(bars, TransactionType.Buy, OrderType.Market); It looks as if I'm entering the trade in the same bar where I check conditions. I thought we always place trade at the next bar. Did I miss something?
0
732
Solved
5 Replies

Reply

Bookmark

Sort
Glitch8
 ( 12.08% )
- ago
#1
>>It looks as if I'm entering the trade in the same bar where I check conditions<<
What makes you think that?
0
- ago
#2
I'm in the same bar where I check conditions and then Buy in in the same bar.
0
- ago
#3
Do you have a code example along with symbol/data loading settings to demonstrate?
0
- ago
#4
The Help documentation for PlaceTrade states: "... The backtester will attempt to fill the trade at the start of the following bar,..."

Are you suggesting this isn't happening as documented? If so, can you prove it with an example?
0
Best Answer
- ago
#5
I have not got to the point of testing yet and I didn't see anything in the Help file yet. Superticker has found it though.
All should be OK.
0

Reply

Bookmark

Sort