Problema con temporalidades
Forums › ProRealTime foro Español › Soporte ProBuilder › Problema con temporalidades
- This topic has 3 replies, 2 voices, and was last updated 1 year ago by robertogozzi.
-
-
11/21/2023 at 11:18 PM #224095
Buenas tengo un problema ya que hago un indicador en diferentes temporalidades desde 1 minuto hasta 20 minutos (todo dentro del mismo codigo con timeframes y al final timeframe default) pero al agregarlo a la grafica no me salen los datos correctamente y ademas si la grafica la cambio de temporalidad me da otros resultados distintos. Como podria solucionarlo para que me de bien los resultados siempre. Un saludo
11/22/2023 at 11:04 AM #224110Para entender el problema necesitas código.
11/22/2023 at 5:19 PM #224163Como veras en el código es un código que me dice donde esta situado ema20 en las diferentes temporalidades desde 1 minuto hasta 60 minutos, pero no se por que no sale correcto alguno de ellos ya que como te adjunto en la imagen, por ejemplo en 25 minutos sale que esta por encima del precio y en realidad esta por debajo, así que no se si es problema del código o de que el código tengo que agregarlo en la temporalidad diferente, siempre lo agrego en 1 minuto pero me he fijado que si cambio la temporalidad de la grafica a 1 segundo cambian los resultados. Espero que puedas ayudarme. Gracias
ema20 en diferentes temporalidades123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267defparam drawonlastbaronly = trueTIMEFRAME(1mn)myema1 = ExponentialAverage[20](close)TIMEFRAME(2mn)myema2 = ExponentialAverage[20](close)TIMEFRAME(3mn)myema3 = ExponentialAverage[20](close)TIMEFRAME(4mn)myema4 = ExponentialAverage[20](close)TIMEFRAME(5mn)myema5 = ExponentialAverage[20](close)TIMEFRAME(6mn)myema6 = ExponentialAverage[20](close)TIMEFRAME(7mn)myema7 = ExponentialAverage[20](close)TIMEFRAME(8mn)myema8 = ExponentialAverage[20](close)TIMEFRAME(9mn)myema9 = ExponentialAverage[20](close)TIMEFRAME(10mn)myema10 = ExponentialAverage[20](close)TIMEFRAME(11mn)myema11 = ExponentialAverage[20](close)TIMEFRAME(12mn)myema12 = ExponentialAverage[20](close)TIMEFRAME(13mn)myema13 = ExponentialAverage[20](close)TIMEFRAME(14mn)myema14 = ExponentialAverage[20](close)TIMEFRAME(15mn)myema15 = ExponentialAverage[20](close)TIMEFRAME(16mn)myema16 = ExponentialAverage[20](close)TIMEFRAME(17mn)myema17 = ExponentialAverage[20](close)TIMEFRAME(18mn)myema18 = ExponentialAverage[20](close)TIMEFRAME(19mn)myema19 = ExponentialAverage[20](close)TIMEFRAME(20mn)myema20 = ExponentialAverage[20](close)TIMEFRAME(21mn)myema21 = ExponentialAverage[20](close)TIMEFRAME(22mn)myema22 = ExponentialAverage[20](close)TIMEFRAME(23mn)myema23 = ExponentialAverage[20](close)TIMEFRAME(24mn)myema24 = ExponentialAverage[20](close)TIMEFRAME(25mn)myema25 = ExponentialAverage[20](close)TIMEFRAME(26mn)myema26 = ExponentialAverage[20](close)TIMEFRAME(27mn)myema27 = ExponentialAverage[20](close)TIMEFRAME(28mn)myema28 = ExponentialAverage[20](close)TIMEFRAME(29mn)myema29 = ExponentialAverage[20](close)TIMEFRAME(30mn)myema30 = ExponentialAverage[20](close)TIMEFRAME(31mn)myema31 = ExponentialAverage[20](close)TIMEFRAME(32mn)myema32 = ExponentialAverage[20](close)TIMEFRAME(33mn)myema33 = ExponentialAverage[20](close)TIMEFRAME(34mn)myema34 = ExponentialAverage[20](close)TIMEFRAME(35mn)myema35 = ExponentialAverage[20](close)TIMEFRAME(36mn)myema36 = ExponentialAverage[20](close)TIMEFRAME(37mn)myema37 = ExponentialAverage[20](close)TIMEFRAME(38mn)myema38 = ExponentialAverage[20](close)TIMEFRAME(39mn)myema39 = ExponentialAverage[20](close)TIMEFRAME(40mn)myema40 = ExponentialAverage[20](close)TIMEFRAME(41mn)myema41 = ExponentialAverage[20](close)TIMEFRAME(42mn)myema42 = ExponentialAverage[20](close)TIMEFRAME(43mn)myema43 = ExponentialAverage[20](close)TIMEFRAME(41mn)myema44 = ExponentialAverage[20](close)TIMEFRAME(45mn)myema45 = ExponentialAverage[20](close)TIMEFRAME(46mn)myema46 = ExponentialAverage[20](close)TIMEFRAME(47mn)myema47 = ExponentialAverage[20](close)TIMEFRAME(48mn)myema48 = ExponentialAverage[20](close)TIMEFRAME(49mn)myema49 = ExponentialAverage[20](close)TIMEFRAME(50mn)myema50 = ExponentialAverage[20](close)TIMEFRAME(51mn)myema51 = ExponentialAverage[20](close)TIMEFRAME(52mn)myema52 = ExponentialAverage[20](close)TIMEFRAME(53mn)myema53 = ExponentialAverage[20](close)TIMEFRAME(54mn)myema54 = ExponentialAverage[20](close)TIMEFRAME(55mn)myema55 = ExponentialAverage[20](close)TIMEFRAME(56mn)myema56 = ExponentialAverage[20](close)TIMEFRAME(57mn)myema57 = ExponentialAverage[20](close)TIMEFRAME(58mn)myema58 = ExponentialAverage[20](close)TIMEFRAME(59mn)myema59 = ExponentialAverage[20](close)TIMEFRAME(60mn)myema60 = ExponentialAverage[20](close)TIMEFRAME(default)DrawText("―",BarIndex[60],myema1,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[59],myema2,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[58],myema3,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[57],myema4,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[56],myema5,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[55],myema6,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[54],myema7,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[53],myema8,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[52],myema9,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[51],myema10,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[50],myema11,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[49],myema12,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[48],myema13,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[47],myema14,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[46],myema15,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[45],myema16,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[44],myema17,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[43],myema18,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[42],myema19,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[41],myema20,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[40],myema21,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[39],myema22,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[38],myema23,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[37],myema24,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[36],myema25,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[35],myema26,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[34],myema27,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[33],myema28,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[32],myema29,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[31],myema30,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[30],myema31,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[29],myema32,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[28],myema33,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[27],myema34,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[26],myema35,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[25],myema36,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[24],myema37,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[23],myema38,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[22],myema39,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[21],myema40,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[20],myema41,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[19],myema42,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[18],myema43,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[17],myema44,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[16],myema45,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[15],myema46,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[14],myema47,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[13],myema48,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[12],myema49,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[11],myema50,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[10],myema51,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[9],myema52,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[8],myema53,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[7],myema54,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[6],myema55,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[5],myema56,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[4],myema57,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[3],myema58,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[2],myema59,dialog,standard,10) COLOURED(204,0,0)DrawText("―",BarIndex[1],myema60,dialog,standard,10) COLOURED(204,0,0)DrawText("1",BarIndex[60],myema1+3,dialog,standard,15) COLOURED(0,0,0)DrawText("2",BarIndex[59],myema2+3,dialog,standard,15) COLOURED(0,0,0)DrawText("3",BarIndex[58],myema3+3,dialog,standard,15) COLOURED(0,0,0)DrawText("4",BarIndex[57],myema4+3,dialog,standard,15) COLOURED(0,0,0)DrawText("5",BarIndex[56],myema5+3,dialog,standard,15) COLOURED(0,0,0)DrawText("6",BarIndex[55],myema6+3,dialog,standard,15) COLOURED(0,0,0)DrawText("7",BarIndex[54],myema7+3,dialog,standard,15) COLOURED(0,0,0)DrawText("8",BarIndex[53],myema8+3,dialog,standard,15) COLOURED(0,0,0)DrawText("9",BarIndex[52],myema9+3,dialog,standard,15) COLOURED(0,0,0)DrawText("10",BarIndex[51],myema10+3,dialog,standard,15) COLOURED(0,0,0)DrawText("11",BarIndex[50],myema11+3,dialog,standard,15) COLOURED(0,0,0)DrawText("12",BarIndex[49],myema12+3,dialog,standard,15) COLOURED(0,0,0)DrawText("13",BarIndex[48],myema13+3,dialog,standard,15) COLOURED(0,0,0)DrawText("14",BarIndex[47],myema14+3,dialog,standard,15) COLOURED(0,0,0)DrawText("15",BarIndex[46],myema15+3,dialog,standard,15) COLOURED(0,0,0)DrawText("16",BarIndex[45],myema16+3,dialog,standard,15) COLOURED(0,0,0)DrawText("17",BarIndex[44],myema17+3,dialog,standard,15) COLOURED(0,0,0)DrawText("18",BarIndex[43],myema18+3,dialog,standard,15) COLOURED(0,0,0)DrawText("19",BarIndex[42],myema19+3,dialog,standard,15) COLOURED(0,0,0)DrawText("20",BarIndex[41],myema20+3,dialog,standard,15) COLOURED(0,0,0)DrawText("21",BarIndex[40],myema21+3,dialog,standard,15) COLOURED(0,0,0)DrawText("22",BarIndex[39],myema22+3,dialog,standard,15) COLOURED(0,0,0)DrawText("23",BarIndex[38],myema23+3,dialog,standard,15) COLOURED(0,0,0)DrawText("24",BarIndex[37],myema24+3,dialog,standard,15) COLOURED(0,0,0)DrawText("25",BarIndex[36],myema25+3,dialog,standard,15) COLOURED(0,0,0)DrawText("26",BarIndex[35],myema26+3,dialog,standard,15) COLOURED(0,0,0)DrawText("27",BarIndex[34],myema27+3,dialog,standard,15) COLOURED(0,0,0)DrawText("28",BarIndex[33],myema28+3,dialog,standard,15) COLOURED(0,0,0)DrawText("29",BarIndex[32],myema29+3,dialog,standard,15) COLOURED(0,0,0)DrawText("30",BarIndex[31],myema30+3,dialog,standard,15) COLOURED(0,0,0)DrawText("31",BarIndex[30],myema31+3,dialog,standard,15) COLOURED(0,0,0)DrawText("32",BarIndex[29],myema32+3,dialog,standard,15) COLOURED(0,0,0)DrawText("33",BarIndex[28],myema33+3,dialog,standard,15) COLOURED(0,0,0)DrawText("34",BarIndex[27],myema34+3,dialog,standard,15) COLOURED(0,0,0)DrawText("35",BarIndex[26],myema35+3,dialog,standard,15) COLOURED(0,0,0)DrawText("36",BarIndex[25],myema36+3,dialog,standard,15) COLOURED(0,0,0)DrawText("37",BarIndex[24],myema37+3,dialog,standard,15) COLOURED(0,0,0)DrawText("38",BarIndex[23],myema38+3,dialog,standard,15) COLOURED(0,0,0)DrawText("39",BarIndex[22],myema39+3,dialog,standard,15) COLOURED(0,0,0)DrawText("40",BarIndex[21],myema40+3,dialog,standard,15) COLOURED(0,0,0)DrawText("41",BarIndex[20],myema41+3,dialog,standard,15) COLOURED(0,0,0)DrawText("42",BarIndex[19],myema42+3,dialog,standard,15) COLOURED(0,0,0)DrawText("43",BarIndex[18],myema43+3,dialog,standard,15) COLOURED(0,0,0)DrawText("44",BarIndex[17],myema44+3,dialog,standard,15) COLOURED(0,0,0)DrawText("45",BarIndex[16],myema45+3,dialog,standard,15) COLOURED(0,0,0)DrawText("46",BarIndex[15],myema46+3,dialog,standard,15) COLOURED(0,0,0)DrawText("47",BarIndex[14],myema47+3,dialog,standard,15) COLOURED(0,0,0)DrawText("48",BarIndex[13],myema48+3,dialog,standard,15) COLOURED(0,0,0)DrawText("49",BarIndex[12],myema49+3,dialog,standard,15) COLOURED(0,0,0)DrawText("50",BarIndex[11],myema50+3,dialog,standard,15) COLOURED(0,0,0)DrawText("51",BarIndex[10],myema51+3,dialog,standard,15) COLOURED(0,0,0)DrawText("52",BarIndex[9],myema52+3,dialog,standard,15) COLOURED(0,0,0)DrawText("53",BarIndex[8],myema53+3,dialog,standard,15) COLOURED(0,0,0)DrawText("54",BarIndex[7],myema54+3,dialog,standard,15) COLOURED(0,0,0)DrawText("55",BarIndex[6],myema55+3,dialog,standard,15) COLOURED(0,0,0)DrawText("56",BarIndex[5],myema56+3,dialog,standard,15) COLOURED(0,0,0)DrawText("57",BarIndex[4],myema57+3,dialog,standard,15) COLOURED(0,0,0)DrawText("58",BarIndex[3],myema58+3,dialog,standard,15) COLOURED(0,0,0)DrawText("59",BarIndex[2],myema59+3,dialog,standard,15) COLOURED(0,0,0)DrawText("60",BarIndex[1],myema60+3,dialog,standard,15) COLOURED(0,0,0)DRAWHLINE(close)RETURN11/22/2023 at 5:52 PM #224164¿Qué datos están mal?ù
En cualquier caso, debes preguntarle directamente a PRT, porque se permiten un máximo de 6 períodos de tiempo diferentes para las estrategias (incluido el predeterminado).
El indicador no informa errores, pero me temo que no puede manejarlos.
-
AuthorPosts
Find exclusive trading pro-tools on