Supertrend Movement Coding Question

Forums ProRealTime English forum ProBuilder support Supertrend Movement Coding Question

Viewing 2 posts - 1 through 2 (of 2 total)
  • #209698

    Hi Guys,

    Im not sure how to explain this one but I am hoping to create some code for my strategy that takes into account certain movement of the supertrend to act as a buy or sell signal.  I am hoping to get the signal when the supertrend “bounces” after a quick move down or up. I am looking for the signal as per the attached image (buy shown). it also needs to have crossed below price as in the image. Does anyone have any idea on how to create an input that creates a signal for this? any help is appreciated.

    If more information is needed hit me up below, I will post code when I get back to my PC but for now I am out at the moment sorry. (the issue has been bugging me all day 🤔)

    #209706

    This movement is when the Supertrend is turning red to green or green to red, when a candle crosses under or crosses over.

    Think of the Supertrend as a channel, a line is visible and in color and the other one (at the opposite side) is invisible until the price cross it and become visible and the previous one invisible. That’s why you see the a line that join the opposite sides when the price crossing occur.

    This is the code to detect the Supertrend color change:

     

     

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

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