how to draw an object above or below a candle

Forums ProRealTime English forum ProBuilder support how to draw an object above or below a candle

Viewing 7 posts - 1 through 7 (of 7 total)
  • #39962

    I want to draw an up-arrow below the price bar when MACD crosses above the signal line and above the zero line. Please kindly help me with this as I am not very familiar with the programming code and search through the guides to no avail.

    Many thanks in advance.

    #39963

    Is below any help or a start anyway?

    https://www.prorealcode.com/documentation/drawarrow/

    #40008

    Hi GraHal,

    Thanks for the update. But I have some issues defining the conditions.

    if C>D and D>=C and D>E, how do I define this condition and get the program to draw an arrow above or below the bar?

    Many thanks for your prompt reply and help.

    Regards, Derick.

     

    #40060

    Hi Derick

    I’ve never coded DrawArrow, so I doubt below is fully correct and / or correct syntax, but something like below.

    The gist of below is … if conditions are met then Draw Arrow (as per the link in #39963)

     

    Let us know how you get on?

    Cheers
    GraHal

    #40095

    Hi GraHal,

    Tried the above as per suggested, it does not work. 🙁

    I think there should be some syntax error some where.

    Regards, Derick.

    #40103
    AVT

    Here is an example:

    If you don’t see any arrows made by your code, think of the chance that your conditions are simple not met to be true.

    Hope it helps.

    1 user thanked author for this post.
    #40116

    Hi Derick

    Use GRAPH to see if / when your conditions are being met (as AVT says).

    Also my code (incorrectly) shows a space before the close … is that giving you the syntax error?

    Also my colour has 4 shades, so try 3 and make sure it not same colour as your background else you not see the Arrow!? 🙂

Viewing 7 posts - 1 through 7 (of 7 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login