S&P500 automatic trading strategy ROBOT EEUU 500 1H
Forums › ProRealTime English forum › ProOrder support › S&P500 automatic trading strategy ROBOT EEUU 500 1H
- This topic has 30 replies, 11 voices, and was last updated 4 years ago by robertogozzi.
-
-
02/06/2017 at 8:31 AM #2402602/06/2017 at 4:06 PM #24121
Hello! This is the code for the DOW, to see if we can reduce the Maxdrawdown.
1234567891011121314151617181920212223242526272829303132333435363738// Definición de los parámetros del códigoDEFPARAM CumulateOrders = true // Acumulación de posiciones desactivadaif countofposition<50 thenn=1// Condiciones para entrada de posiciones largasindicator1 = ExponentialAverage[24](MACDline[21,44,24](close))indicator2 = MACDline[21,44,24](close)c1 = (indicator1 <= indicator2)indicator3 = Stochastic[28,8](close)indicator4 = Average[22](Stochastic[28,8](close))c2 = (indicator3 >= indicator4)indicator8 = close - 20ignored, ignored, indicator9 = CALL "MiIndicador(3)"(close)c6 = (indicator8 <= indicator9)indicator11 = closeindicator21 = ExponentialAverage[40](close)c11 = (indicator11 >= indicator21)IF c1 AND c2 AND c6 and c11 THENBUY n CONTRACT AT MARKETENDIFendif// Condiciones de salida de posiciones largasignored, indicator10, ignored = CALL "MiIndicador(3)"(close)c7 = (close CROSSES under indicator10)IF c7 THENSELL AT MARKETENDIFSET STOP pLOSS 800SET TARGET pPROFIT 3001 user thanked author for this post.
02/06/2017 at 4:13 PM #24122Thanks Raul. Good job!
The only problem I see with this code is that you are saved by accumulating orders-It dosen´t work on it´s own.
02/06/2017 at 4:22 PM #2412302/06/2017 at 4:24 PM #24124I’m doing the same right now haha! But i´ll have to leave soon so I will come back toinght 🙂
02/06/2017 at 4:51 PM #24126Although it continues to have accumulation, this could be a possible solution:
123456789101112131415161718192021222324252627282930// Definición de los parámetros del códigoDEFPARAM CumulateOrders = true // Acumulación de posiciones desactivada// Condiciones para entrada de posiciones largasindicator8 = close -25ignored, ignored, indicator9 = CALL "MiIndicador(3)"(close)c6 = (indicator8 <= indicator9)indicator11 = ExponentialAverage[20](close)indicator21 = ExponentialAverage[10](close)c11 = (indicator11 crosses over indicator21)IF c6 and c11 THENBUY 1 CONTRACT AT MARKETENDIF// Condiciones de salida de posiciones largasignored, indicator10, ignored = CALL "MiIndicador(3)"(close)c7 = (close CROSSES under indicator10)IF c7 THENSELL AT MARKETENDIFSET STOP pLOSS 800SET TARGET pPROFIT 30002/06/2017 at 6:41 PM #24143Hi again!
That code looks much better! Good job!
I´m optimizing right now so bear with me.
I´m trying som different timeframes as well. So far this is how far I’ve come in the 4 hours timeframe. Nothing special but I think its worth sharing.
123456789101112131415161718192021222324252627282930// Definición de los parámetros del códigoDEFPARAM CumulateOrders = true// Acumulación de posiciones desactivada// Condiciones para entrada de posiciones largasindicator8 = close -95//--25ignored, ignored, indicator9 = CALL "MiIndicador(3)"(close)c6 = (indicator8 <= indicator9)indicator11 = ExponentialAverage[50](close) //20indicator21 = ExponentialAverage[40](close) //10c11 = (indicator11 crosses over indicator21)IF c6 and c11 THENBUY 1 CONTRACT AT MARKETENDIF// Condiciones de salida de posiciones largasignored, indicator10, ignored = CALL "MiIndicador(3)"(close)c7 = (close CROSSES under indicator10)IF c7 THENSELL AT MARKETENDIFSET STOP pLOSS 850SET TARGET pPROFIT 5002/06/2017 at 7:14 PM #2414402/06/2017 at 7:40 PM #2414702/06/2017 at 7:43 PM #24148For the record. I´m not going to start it. I just wanted to share some “in progress” code 🙂
02/09/2017 at 1:53 AM #24453Hi Raul, I’m watching your strategy and I wish you could explain it better. You say that you use 4 indicators, a MACD, a Stoctic, a Moving Average and Ichimoku … could you indicate if the parameters of the indicators? MACD and stochastic by default? The Mobile Media of how many periods is it? I ask you please explain what the extrategia is that seems to be very interesting. Thank you very much in advance I await your response Greetings
Hola Raul, estoy viendo tu estrategia y me gustaría que la pudieras expliacar mejor.
Dices que utilizas 4 indicadores, un MACD, un Estocático, una Média Móvil e Ichimoku… ¿podrías indicar si los parámetros de los indicadores? ¿el MACD y el estocástico por defecto? ¿La Media Móvil de cuantos periodos es?
Te pido por favor que expliques en qué consiste la extrategia que parece ser muy interesante.Muchas gracias de antemano
Quedo a la espera de tu respuesta
Saludos
02/09/2017 at 8:37 AM #24460I translated your post in English, please speak English in this part of the forum, for everyone’s comprehension. Thanks in advance.
02/09/2017 at 1:34 PM #2448506/20/2017 at 11:50 AM #3864202/05/2020 at 5:28 PM #118765bonjour cette strategy est elle toujours bonne? sur quelle instrument et unite de temps svp? merci
-
AuthorPosts
Find exclusive trading pro-tools on