Simulate a buy and a close order...

 

Hi

Is it possible to take on a piece of data and simulate a buy/close order and know the profit ?

Thanks in advance

Reason: