I am programming an indicator that manages the prices of several instruments at the same time. I use the AddDataSeries() function to add instruments and I calculate different stoploss prices on these instruments. I would need a function that would determine the cost of the price distance for 1 unit trade on any instrument. I tried several methods, but none of them worked exactly on all instruments, so I would like to request a solution that gives me the same result as the risk incurrency when using ctrl+F4. Do you have any solution?
Br
Comment