Forums ProRealTime English forum ProScreener support MACD Stochastic code Reply To: MACD Stochastic code

#80306

Hi all,

I wonder if you could help me with a procode. Let me see if I make sense.

I’m trying to write a screener code for two timeframes, let’s say. Daily and 4Hours

Below are my criteria

  1. Stochastic 14,3,5 should cross within MACD on the daily TF first with ADX above 20 and increasing
  2. Then on the 4 hour TF, stochastic to cross and be in the same direction as Daily, or alert if it’s already in the same direction as Daily.

So even if the stoch has crossed on the daily, there shouldn’t be an alert until H4 stoch crosses in the same direction.

I hope I made sense: it’s been a long day.

Thanks.

KR,

MM