Can you confirm that in above code triggers are as per what you wanted?
Plz see that the buy should have been triggerd at 840.8 but it didnot.. but the earlier buy at 1130 was triggered successfully.
Is there something that i have to do to setup my database correctly for the code.
Really appreciate your help.
Thanks