StopLoss dinamico en VChart
Publicado: 29 Abr 2007 14:20
Disculpas si el tema ya ha sido tratado, pero he hecho una búsqueda y no lo he encontrado.
¿Como se convierte esto en dinámico?
If .GetMarketPosition = 1 Then
.ExitLong AtLimit, 1, PrecioEntrada + StopGan
.ExitLong AtStop, 1, PrecioEntrada - StopPer
Else
If .GetMarketPosition = -1 Then
.ExitShort AtLimit, 1, PrecioEntrada - StopGan
.ExitShort AtStop, 1, PrecioEntrada + StopPer
End If
End If
Saludos y gracias.
¿Como se convierte esto en dinámico?
If .GetMarketPosition = 1 Then
.ExitLong AtLimit, 1, PrecioEntrada + StopGan
.ExitLong AtStop, 1, PrecioEntrada - StopPer
Else
If .GetMarketPosition = -1 Then
.ExitShort AtLimit, 1, PrecioEntrada - StopGan
.ExitShort AtStop, 1, PrecioEntrada + StopPer
End If
End If
Saludos y gracias.