This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//@version=6 | |
indicator("Líneas de Entrada, Salida y Ganancia ($) y RRR", overlay=true) | |
// Grupo: Ajustes de Líneas y Precios | |
precio_entrada = input.price(title="Precio de Entrada", defval=0.0, inline="1", confirm=true, group="Líneas y Precios") | |
precio_salida = input.price(title="Precio de Salida", defval=0.0, inline="2", confirm=true, group="Líneas y Precios") | |
precio_stop_loss = input.price(title="Precio de Stop Loss", defval=0.0, inline="3", confirm=true, group="Líneas y Precios") | |
is_short = input.bool(title="Posición en Corto (Short)", defval=false, group="Líneas y Precios", tooltip="Marcar para calcular métricas basadas en una posición de venta (Short).") | |
// Grupo: Configuración de Ganancia |