Ganancias y pérdidas
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © abotello

//@version=5
indicator("Ganancias",overlay=true)
comision = input(0.00464)
compra_neta = close*(1+comision)
//fast = ema(close, 5)
//compra_neta = fast*(1+comision)

pm2 = compra_neta*(1-0.02)/(1-comision)

p0 =  compra_neta*(1)/(1-comision)

p1 =  compra_neta*(1+0.01)/(1-comision)

now = close


plot(pm2, title="StopLoss", color=color.red,  linewidth=2)
plot(p0, title="P0", color=color.blue,  linewidth=2)
plot(p1, title="P1", color=color.green,  linewidth=2)

