Listing the Open Orders and create object

 

Hi everybody,

I have an idea, i would like creating a button list with opened orders. When i click on it, the order is closed.

 There are 2 zones: green for Buy and red for Sell. The green button is in positive profit and red button is in negative profit.

 See screenshot below.

Anyone has a sample code for create this ?

Regards. 

Files:
Reason: