i am growing increasingly frustrated with myself. i cannot get my code to work right.
i want the code to close all pending orders at bar close, but whatever i try it sometimes leaves trades behind. it goes on offline/renko charts, so using expiration on the pending is unfortunately not going to work. i have tried
Time[0] > Time[1], Close[] value coding,
Code: Select all
static int OldBar = Time[0]
if (Time[0] != OldBar) i bet if someone here gives me the answer or something closer to a solution, i will slap my head and cry myself to sleep in shame over its simplicity
Thomas