Valor de indicadores en ventana de grafico de precio
Forums › ProRealTime foro Español › Soporte ProBuilder › Valor de indicadores en ventana de grafico de precio
- This topic has 5 replies, 3 voices, and was last updated 2 months ago by
Alfre.
Tagged: anchor, bottomleft, BottomRight, drawrectangle, drawtext, topleft, TopRight
Viewing 6 posts - 1 through 6 (of 6 total)
-
-
04/28/2023 at 7:59 AM #213818
Buenos días.
Mi pregunta es si se puede indicar en la ventana superior que representa el gráfico de precios el valor de los indicadores de manera similar al gráfico adjunto (En este caso la parte superior derecha, también sirve cualquier otro lugar de la ventana que representa el gráfico de precios).
Muchas gracias por adelantado.
04/30/2023 at 4:59 PM #213903Ahí tienes:
1234567891011121314151617DEFPARAM DrawOnLastBarOnly = TrueadxP = 14rsiP = 14atrP = 14myADX = ADX[adxP]myATR = AverageTrueRange[atrP](close)myRSI = Rsi[rsiP](close)//--------------------------------------------------------------------------------------------------------------------drawrectangle(-120,0,-10,-20) anchor(TopRight) coloured("Yellow",20) bordercolor("Green") style(line,2)drawtext ("RSI(#rsiP#) #myRSI#", -66 ,-10, Dialog, Bold, 11) anchor(TopRight) coloured("Red")//drawrectangle(-120,-20,-10,-40) anchor(TopRight) coloured("Yellow",20) bordercolor("Green") style(line,2)drawtext ("ATR(#atrP#) #myATR#", -68 ,-30, Dialog, Bold, 11) anchor(TopRight) coloured("Red")//drawrectangle(-120,-40,-10,-60) anchor(TopRight) coloured("Yellow",20) bordercolor("Green") style(line,2)drawtext ("ADX(#adxP#) #myADX#", -69 ,-50, Dialog, Bold, 11) anchor(TopRight) coloured("Red")return1 user thanked author for this post.
05/01/2023 at 10:34 PM #213949Perfecto.
Muchas gracias Roberto.
Un saludo.
01/29/2025 at 1:58 PM #24317801/29/2025 at 7:24 PM #243202Aquí está, es un poco complicado:
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576DEFPARAM DrawOnLastBarOnly = TrueSortOrder = 0 //1=Ascending order, Any other Value=Descending orderMaxElements = 3adxP = 14rsiP = 14atrP = 14myADX = ADX[adxP]myATR = AverageTrueRange[atrP](close)myRSI = Rsi[rsiP](close)$myVAL[1] = myADX$myIND[1] = 1 //1=ADX$myVAL[2] = myATR$myIND[2] = 2 //2=ATR$myVAL[3] = myRSI$myIND[3] = 3 //3=RSIIF SortOrder = 1 THEN//////////////////////////////////////////////////////////////////// (Bubble Sort) - ASCENDING orderFOR i = 1 TO MaxElements - 1FOR j = 1 TO MaxElements - iIF $myVAL[j] >= $myVAL[j + 1] THEN// swap datatemp = $myVAL[j]$myVAL[j] = $myVAL[j + 1]$myVAL[j + 1] = temp// swap labelstemp = $myIND[j]$myIND[j] = $myIND[j + 1]$myIND[j + 1] = tempENDIFNEXTNEXTELSE//////////////////////////////////////////////////////////////////// (Bubble Sort) - DESCENDING orderFOR i = 1 TO MaxElements - 1FOR j = 1 TO MaxElements - iIF $myVAL[j] < $myVAL[j + 1] THEN// swap datatemp = $myVAL[j]$myVAL[j] = $myVAL[j + 1]$myVAL[j + 1] = temp// swap labelstemp = $myIND[j]$myIND[j] = $myIND[j + 1]$myIND[j + 1] = tempENDIFNEXTNEXTENDIF////////////////////////////////////////////////////////////////////--------------------------------------------------------------------------------------------------------------------drawrectangle(-120,0,-10,-20) anchor(TopRight) coloured("Yellow",20) bordercolor("Green") style(line,2)FOR i = 1 TO 3//myValue = $myVAL[i]IF i = 1 THENx = -66y = -10ELSIF i = 2 THENx = -68y = -30ELSIF i = 3 THENx = -69y = -50ENDIFIF $myIND[i] = 3 THENdrawtext ("RSI(#rsiP#) #myRSI#",x,y,Dialog,Bold, 11) anchor(TopRight) coloured("Red")ELSIF $myIND[i] = 2 THENdrawrectangle(-120,-20,-10,-40) anchor(TopRight) coloured("Yellow",20) bordercolor("Green") style(line,2)drawtext ("ATR(#atrP#) #myATR#",x,y,Dialog,Bold, 11) anchor(TopRight) coloured("Red")ELSIF $myIND[i] = 1 THENdrawrectangle(-120,-40,-10,-60) anchor(TopRight) coloured("Yellow",20) bordercolor("Green") style(line,2)drawtext ("ADX(#adxP#) #myADX#",x,y,Dialog,Bold, 11) anchor(TopRight) coloured("Red")ENDIFNEXTreturn01/29/2025 at 8:57 PM #243209Muchísimas gracias, gran trabajo
1 user thanked author for this post.
-
AuthorPosts
Viewing 6 posts - 1 through 6 (of 6 total)
Find exclusive trading pro-tools on
Similar topics: