Login Page - Create Account

Support Board


Date/Time: Mon, 23 Dec 2024 18:17:32 +0000



Post From: ACSIL trading: checking "last" price and sending order ahead of time

[2015-09-24 17:49:16]
ejtrader - Posts: 688
For 2 - If you have this in your code(check for end of bar condition) - the behavior should be same as tradestation.



// sc defaults section


// This is similar to tradestation code -- if barstatus(1) != 2 return;
if(sc.GetBarHasClosedStatus(sc.Index) == BHCS_BAR_HAS_NOT_CLOSED)
return;

// Generate Trade Signals - These signals would be generated at the end bar - if you plot any signals - they would be marked for current bar
// However the trade itself would be valid/sent for the next bar

Date Time Of Last Edit: 2015-09-24 17:57:37