Forums ProRealTime English forum ProOrder support Adjustment in code because combined stops can not be used with pro order Reply To: Adjustment in code because combined stops can not be used with pro order

#107457

Hi

Thank you again for the help.. I have tried you new code from the post this morning..  It works great but if i remove line 30-31 it just keeps on placing orders during the day. What I want is for the system just to place pending orders until 1 is filled and when bar close it closes other pending order.

So it must only do the 1 trade per day but must keep orders at that level until it is activated. If for some reason both is activated one will close and we go in the other direction so that is ok. I just need it to keep order open until its triggered. But for example if buy trade is activated on the close of the bar where it is activated it must close the sell pending order.  So keep orders open until 1 is activated. Thats it.

Thanks again