Attachments forums

List of attachments posted on this forum.


All files on forums: 136160

Calulate profit or loss w/ HLine

icesky, Thu Dec 29, 2022 12:55 pm

Hi everyone,

I'm a newbie on forum. This is my first topic. I'm trying to code an indicator that calculate all average of open or pending position as buy average/sell average/total average.

I wrote it and its work. I want to create a random horizontal line on chart and calculate profit/loss with my averages and distance of this HLine.
I could'nt code how to write the averages above line.
I also want that when I move the HLine it will calculate profit/loss and show above this line.

This indicator will be open source and we can develop it up all together.

Thanks.
All files in topic