INDICADOR vela negativa coloreada

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #211993 quote
    PatrickgarridooPatrickgarridoo
    Participant
    New

    Buenas me gustaría saber si se puede hacer un indicador que cuando una vela negativa cierre por encima de EMA3 y EMA3 este por encima de EMA9 la vela roja se me coloree un 10% en color naranja. Un saludo

    #212040 quote
    NicolasNicolas
    Keymaster
    Legend

    Puedes adaptar fácilmente el código que te hizo Roberto en tu otro tema, para ese propósito:

    PerCent = range * 0.1     //10% of the candle's range
    //when a negative candle closes above EMA3 and EMA3 is above EMA9, the red candle is colored 10% orange
    
    test = close<open and close>average[3,1] and average[3,1]>average[9,1]
    if test THEN
    op = round(close + PerCent,5)
    op = round(min(op,max(open,close)),5)
    DrawCandle(op,op,op,close) coloured("orange")
    ELSE
    DrawCandle(open,high,low,close)
    ENDIF
    RETURN
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

INDICADOR vela negativa coloreada


ProBuilder: Indicadores y Herramientas

New Reply
Author
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by NicolasNicolas
3 years, 6 months ago.

Topic Details
Forum: ProBuilder: Indicadores y Herramientas
Language: Spanish
Started: 03/23/2023
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...