Need help with macd screener

Forums ProRealTime English forum ProScreener support Need help with macd screener

Viewing 6 posts - 1 through 6 (of 6 total)
  • #30319

    Hello I just need help with the macd screener with a variable look back.

    I tried using the automated service but I can’t get it to work

    all I wanted to know is when the Macd signal line and MacD Liner have crossed or are equal and if that is up or if that is down,

    and then be able to adjust how many bars it looks back so on a 4hour chart I want it to look back 20, so that’s 20 4hour bars, if someone here could be really helpful and get this sorted for me I would be so grateful thank you very much

    #30474

    This is the code you need. It will fetch through the last lookback periods to know if the MACD signal line has crosses over or under the zero line. It will always give you the last signal (bearish=1 or bullish=-1 one), because of course many crosses may have occurred in the lookback period!

     

    #30560

    thank you Nicolas BUT  it need to be the macd line NOT zero line,  I am going to try and fix it my self but just  in cases could you as well please

    #30562

    hello iv just gave it a try and i found the same issues  if that the look back period never seems to work  it set to 2 or 3 and it still counting all the crosses  it does not seam to do it job, any thoughts on that

    #30749

    I found the mistake sorry, I didn’t reset the condition variable at each iteration.

    I changed the crosses detection to the MACD line with its signal line instead of the zero one.

     

    #31013

    Thank you ever so much for what you just did, really appreciate it I struggle a lot with the code on PReal it even though it’s very simple I just do not have the hindsight I haven’t got it, so thank you very much

    kind regards

    Patrick k Templar

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

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