Buenos días:
Tengo un sistema que da unos resultados bastante aceptables en el Dax.
Estoy intentando poner unos filtros y me estoy volviendo loco.
Actualmente lo estoy intentando de muchas formas. Seía algo así
(Aquí van el resto de las condiciones para comprar y vender y el sitema siempre está abiero o cerrado)
............................
...........................
.Sell AtStop, 1, .Close + 1
End If
End If
End If
If .GetMarketPosition(0) = 1 Then
.ExitLong AtLimit, 1, .GetEntryPrice(0) + gl
If .GetMarketPosition(0) = 0 Then
End If
End If
If .GetMarketPosition(0) = -1 Then
.ExitShort AtLimit, 1, .GetEntryPrice(0) - gc
If .GetMarketPosition(0) = 0 Then
End If
End If
End With
End Sub
Pero a la hora de la verdad cuando se me ejecuta la opción exitlong atlimit o exitshort atlimit el sistema empieza a comprar o vender una vez detrás de otra. Si uso barras de cinco minutos durante esos cinco minutos compra y vende sin parar en el punto en el que le maraca la orden limit.
He intentado poner algo así para que cuando haya ejecutado la opción limit intente comprar o vender de nuevo en el punto inicial
If .GetMarketPosition(0) = 0 Then
.buy atlimit, 1, .GetExitpricePrice(0) - filtro1
End If
If .GetMarketPosition(0) = 0 Then
.sell atlimit, 1, .GetExitpricePrice(0) + filtro1
End If
Esto último iría después de todo lo anterior quedando algo así
.Sell AtStop, 1, .Close + 1
End If
End If
End If
If .GetMarketPosition(0) = 1 Then
.ExitLong AtLimit, 1, .GetEntryPrice(0) + gl
If .GetMarketPosition(0) = 0 Then
End If
End If
If .GetMarketPosition(0) = -1 Then
.ExitShort AtLimit, 1, .GetEntryPrice(0) - gc
If .GetMarketPosition(0) = 0 Then
End If
End If
If .GetMarketPosition(0) = 0 Then
.buy atlimit, 1, .GetExitpricePrice(0) - filtro1
End If
If .GetMarketPosition(0) = 0 Then
.sell atlimit, 1, .GetExitpricePrice(0) + filtro1
End If
If .GetMarketPosition(0) = 1 Then
.ExitLong AtLimit, 1, .GetEntryPrice(0) + gl
If .GetMarketPosition(0) = 0 Then
End If
End If
If .GetMarketPosition(0) = -1 Then
.ExitShort AtLimit, 1, .GetEntryPrice(0) - gc
If .GetMarketPosition(0) = 0 Then
End If
End If
End With
End Sub
Total que me salen unos resultados muy buenos pero no son realmente aplicables.
Gracias y un saludo
Ayuda sobre un sistema y filtros
El espacio de los traders quant: sistemas de trading, gestión monetaria, automatización de sistemas.
Volver a “Sistemas de Trading”
Ir a
- Los Mercados
- ↳ Acciones Españolas
- ↳ Acciones Extranjeras
- ↳ Futuros y Opciones
- ↳ Forex
- ↳ Criptomonedas
- ↳ Renta Fija
- Las Técnicas
- ↳ Trading en General
- ↳ Sistemas de Trading
- ↳ Diarios de Trading
- ↳ Análisis Económico y Fundamental
- ↳ Psicología y Trading
- Plataformas de Trading
- ↳ Metatrader 4
- ↳ Expert Advisors
- ↳ Indicadores
- ↳ Scripts
- ↳ Metatrader 5
- ↳ Expert Advisors
- ↳ Indicadores
- ↳ Scripts
- ↳ Ninja Trader
- ↳ Estrategias
- ↳ Indicadores
- ↳ TradeStation
- ↳ Estrategias
- ↳ Indicadores
- ↳ PaintBars
- ↳ ShowMes
- ↳ Funciones
- ↳ MultiCharts
- ↳ Estrategias
- ↳ Indicadores
- ↳ Pine Script
- ↳ Expert Advisor Studio
- ↳ Python
- ↳ R
- ↳ ProRealTime
- ↳ Sistemas
- ↳ Indicadores
- ↳ Screeners
- ↳ Visual Chart
- ↳ Sistemas
- ↳ Indicadores
- ↳ Estudios
- ↳ AmiBroker
- ↳ Sistemas
- ↳ Indicadores
- ↳ Exploradores
- ↳ Comentarios
- ↳ Funciones
- ↳ Metastock
- ↳ Sistemas
- ↳ Indicadores
- ↳ Exploradores
- ↳ Asesores Expertos
- ↳ cTrader
- ↳ cBots
- ↳ Indicadores
- ↳ JForex
- ↳ Software
- Recursos para Traders
- ↳ Brokers
- ↳ Fiscalidad
- ↳ Data Feeds e Históricos
- ↳ Libros y Revistas de Trading
- ↳ Tutoriales
- ↳ Artículos Interesantes
- ↳ Páginas Web
- ↳ Cursos y Servicios
- ↳ Vídeos y Webinars
- Comunidad X-Trader.net
- ↳ Novedades de la Web
- ↳ Site Feedback
- ↳ Eventos
- ↳ 10 Años de X-Trader.net
- ↳ 20 Años de X-Trader.net
- ↳ Clasificados