tenkan kijun 1h / 5m
Forums › ProRealTime foro Español › Soporte ProOrder › tenkan kijun 1h / 5m
- This topic has 18 replies, 3 voices, and was last updated 4 years ago by
novat.
-
-
06/01/2021 at 10:03 AM #170891
Lo verifiqué, pero no entendí qué quieres hacer con esta estrategia, ¿te parece bien o no?
Para un screener, debe crear otro tema (también puede consultar este) en el soporte de ProScreener, indicando las diversas condiciones Long y Short.
06/01/2021 at 4:26 PM #17091506/01/2021 at 5:28 PM #170919Pueba esto:
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182DEFPARAM CumulateOrders = FALSE//Timeframe(1h,UpdateOnClose)// — Ichimoku —myTenkanSen1 = (highest[7](high) + lowest[7](low)) / 2myKijunSen1 = (highest[22](high) + lowest[22](low)) / 2//mySpanA1 = (myTenkanSen1[26] + myKijunSen1[26]) / 2//mySpanB1 = (highest[52](high[26]) + lowest[52](low[26])) / 2//myChikou1 = close[26]L1 = myTenkanSen1 > myKijunSen1S1 = myTenkanSen1 < myKijunSen1//Timeframe(5 minute,UpdateOnClose)// — Ichimoku —myTenkanSen2 = (highest[7](high) + lowest[7](low)) / 2myKijunSen2 = (highest[22](high) + lowest[22](low)) / 2//mySpanA2 = (myTenkanSen2[26] + myKijunSen2[26]) / 2//mySpanB2 = (highest[52](high[26]) + lowest[52](low[26])) / 2//myChikou2 = close[26]L2 = myTenkanSen2 CROSSES OVER myKijunSen2S2 = myTenkanSen2 CROSSES UNDER myKijunSen2//Timeframe(default)ONCE Lbreak = 0ONCE Sbreak = 0//IF Lcond = 0 THENLcond = L1 AND L2 AND Not OnMarketIF Lcond THENScond = 0ENDIFENDIFIF Scond = 0 THENScond = S1 AND S2 AND Not OnMarketIF Scond THENLcond = 0ENDIFENDIF//IF Lcond and Not Lcond[1] THENLbreak = 0MyHI = high[1]ELSIF Scond and Not Scond[1] THENSbreak = 0MyLO = low[1]ENDIFIF OnMarket THENLcond = 0Scond = 0Lbreak = 0Sbreak = 0ENDIFIF Lcond THENLbreak = close CROSSES OVER MyHIELSIF Scond THENSbreak = close CROSSES UNDER MyLOENDIF// LONGIF Lcond AND Lbreak THENBUY 1 CONTRACTS AT MARKETLbreak = 0ENDIF// condicions de sortidaindicador1=myKijunSen2c1 = (close < myKijunSen2)IF longonmarket and c1 thensell at marketendif// SHORTIF Scond AND Sbreak THENSELLSHORT 1 CONTRACTS AT MARKETENDIF// exit shortc2 = (close > myKijunSen2)if shortonmarket and c2 thenExitshort at marketendif//SET TARGET pPROFIT 200//SET STOP pLOSS 10006/01/2021 at 5:58 PM #170927 -
AuthorPosts
