Indicador de Sesiones
Forums › ProRealTime foro Español › Soporte ProBuilder › Indicador de Sesiones
- This topic has 4 replies, 2 voices, and was last updated 3 years ago by robertogozzi.
Viewing 5 posts - 1 through 5 (of 5 total)
-
-
04/29/2021 at 9:15 AM #168343
Hola a todos, necesito ayuda para crear una indicador que me muestre en la cotización del precio el máximo y el mínimo de sesión, el máximo y el mínimo de la primera hora de cotización y el precio de apertura de sesión. Para sesiones Europa y USA.
Gracias de antemano
04/30/2021 at 1:07 AM #168422Ahi esta:
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495DEFPARAM DrawOnLastBarOnly = TRUE//ONCE StartEU = 090000ONCE EndEU = 173000ONCE h1EUend = StartEU + 010000ONCE OffsetEU = 10//ONCE StartUSA = 143000ONCE EndUSA = 230000ONCE h1USAend = StartUSA + 010000ONCE OffsetUSA= 45//ONCE OpenEU = 0ONCE MaxEU = 0ONCE MinEU = 0ONCE Max1EU = 0ONCE Min1EU = 0ONCE BarEU = 0//ONCE OpenUSA = 0ONCE MaxUSA = 0ONCE MinUSA = 0ONCE Max1USA = 0ONCE Min1USA = 0ONCE BarUSA = 0//------------------------------------------------------------------------// -- EU --//IF OpenTime = StartEU THENOpenEU = openMaxEU = highMinEU = lowMax1EU = highMin1EU = lowBarEU = 0ENDIFIF (OpenTime >= StartEU) AND (Time <= h1EUend) AND (Time > StartEU) THENMax1EU = max(Max1EU,high)Min1EU = min(Min1EU,low)ENDIF//IF (OpenTime >= StartEU) AND (Time <= EndEU) AND (Time > StartEU) THENMaxEU = max(MaxEU,high)MinEU = min(MinEU,low)ENDIFIF (Time = EndEU) THENBarEU = BarIndexENDIF//------------------------------------------------------------------------// -- USA --//IF OpenTime = StartUSA THENOpenUSA = openMaxUSA = highMinUSA = lowMax1USA = highMin1USA = lowBarUSA = 0ENDIFIF (OpenTime >= StartUSA) AND (Time <= h1USAend) AND (Time >= StartUSA) THENMax1USA = max(Max1USA,high)Min1USA = min(Min1USA,low)ENDIF//IF (OpenTime >= StartUSA) AND (Time <= EndUSA) AND (Time >= StartUSA) THENMaxUSA = max(MaxUSA,high)MinUSA = min(MinUSA,low)ENDIFIF Time = EndUSA THENBarUSA = BarIndexENDIF//------------------------------------------------------------------------BarEndEU = BarEUIF BarEU = 0 THENBarEndEU = BarIndexENDIFDrawText("- EU -",BarEndEU - OffsetEU, high * 1.020) coloured(150,50,205,255) //PurpleDrawText("Open #OpenEU#",BarEndEU - OffsetEU, high * 1.019) coloured(150,50,205,255) //PurpleDrawText("Max #MaxEU#" ,BarEndEU - OffsetEU, high * 1.017) coloured(150,50,205,255) //PurpleDrawText("Min #MinEU#" ,BarEndEU - OffsetEU, high * 1.016) coloured(150,50,205,255) //PurpleDrawText("MaxH1 #Max1EU#",BarEndEU - OffsetEU, high * 1.014) coloured(150,50,205,255) //PurpleDrawText("MinH1 #Min1EU#",BarEndEU - OffsetEU, high * 1.013) coloured(150,50,205,255) //Purple//------------------------------------------------------------------------BarEndUSA = BarUSAIF BarUSA = 0 THENBarEndUSA = BarIndexENDIFDrawText("- USA -",BarEndUSA - OffsetUSA, high * 1.020) coloured(50,205,50,255) //GreenDrawText("Open #OpenUSA#",BarEndUSA - OffsetUSA, high * 1.019) coloured(50,205,50,255) //GreenDrawText("Max #MaxUSA#" ,BarEndUSA - OffsetUSA, high * 1.017) coloured(50,205,50,255) //GreenDrawText("Min #MinUSA#" ,BarEndUSA - OffsetUSA, high * 1.016) coloured(50,205,50,255) //GreenDrawText("MaxH1 #Max1USA#",BarEndUSA - OffsetUSA, high * 1.014) coloured(50,205,50,255) //GreenDrawText("MinH1 #Min1USA#",BarEndUSA - OffsetUSA, high * 1.013) coloured(50,205,50,255) //Green//------------------------------------------------------------------------RETURN04/30/2021 at 7:33 PM #16849405/01/2021 at 5:19 PM #16852205/02/2021 at 10:06 AM #168552Ahi esta:
12345678910111213141516171819202122232425ONCE ASIAstart = 230000ONCE EUstart = 090000ONCE USAstart = 143000ONCE r = 255ONCE g = 255ONCE b = 255ONCE t = 100IF OpenTime = ASIAstart THENr = 30g = 144b = 255t = 100ELSIF OpenTime = EUstart THENr = 205g = 0b = 205t = 100ELSIF OpenTime = USAstart THENr = 0g = 205b = 0t = 100ENDIFBackgroundColor(r,g,b,t)RETURNCatálogo de colores http://cloford.com/resources/colours/500col.htm
-
AuthorPosts
Viewing 5 posts - 1 through 5 (of 5 total)
Find exclusive trading pro-tools on
Similar topics: