Calculate wicks percent of the body

Forums ProRealTime English forum ProBuilder support Calculate wicks percent of the body

Viewing 5 posts - 1 through 5 (of 5 total)
  • #136828

    Hi,

    I would like to calculate the wicks percent and if it is below 15 percent of the body (close – open in an upward market) I would like an upward arrow to print.

    Example: Body is 100 points and the wick is 13 points then I would the arrow to print at the close of the bar.  If the wick is 16, then no print of arrow

    I know how to print the arrow, its just the calculation that is my issue. It would be nice if the 15 percent could be a variable so I can easily change that number, for testing.

    #136834

    There you go, when x = 1 then it’s < PerCent:

     

    #136837

    Thank you for your quick reply.

    But I get an error massage that “This variables is not used in the code” for both Bullish and x.

    I´m on version 10.3

    #136839

    You can remove line 2 to get rid of BULLISH, which is actually not used.

    As to X it’s up to you using it according to what you want to do.

    If you just want to plot signals then you’ll have to add, at the end:

     

    #136840

    Now it works great!!

    Thank you very much.

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

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