limit order life cycle
Posted: May 23 2024
In this PowerLanguage code, are the limit entry orders active just for the time the conditions are true and then they get cancelled when the conditions become false?
Or are they submitted and never canceled till one of them gets executed?
//if entriestoday(date) = 0 and marketposition = 0 then begin
//
// if timewindow
// then buy ("Long") 1 contract next bar at mylow limit;
// if timewindow
// then sellshort ("Short") 1 contract next bar at myhigh limit;
//
//end;
Or are they submitted and never canceled till one of them gets executed?
//if entriestoday(date) = 0 and marketposition = 0 then begin
//
// if timewindow
// then buy ("Long") 1 contract next bar at mylow limit;
// if timewindow
// then sellshort ("Short") 1 contract next bar at myhigh limit;
//
//end;