Forums › ProRealTime English forum › ProBuilder support › Help with Higher Lows Price sync with Higher Low MACD when candle crosses MA › Reply To: Help with Higher Lows Price sync with Higher Low MACD when candle crosses MA
09/08/2019 at 1:32 PM
#106832
Hi Vonasi,
Thanks a lot for your response. I am still looking for a better and clearer way of naming the parameters. I can imagine it is challenging, sorry for that.
I have added your lines ( see attachment), but I get a syntax error in your line 9 ( I know I coded that one :-). So something isn’t right in that line.
How can I copy and paste the coding including the line numbers on the left? When I copy and paste it doesn’t iclude the lines.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
// Higher Lows Price in sync with Higher Low MACD //indicators SMA50 and MACD MA = Average[50] LM = MACDline[12,26,9] //CCL = CONDITIONS CANDLES IN RELATION TO AVERAGE FOR LONG POSITION //bullish candle crosses over bullish Average. C1 = ma[1] =< ma and open < m50 and close > m50 // The body of the previous candle needs to be below the Average C2 = open[1] < m50 and close[1] < m50 CCL = c1 and c2 // CYCLE LOW MACD (MCL), the lowest MACD in the period when MACD < Signalline // Comparing MACD in a next running CYCLE LOW at a close of a bar with the previous CYCLE LOW. // START MCL MD1 = LM(close) <= Signalline and LM[1] > LM(close) If MD1 then MCL = 1 mclst = LM endif //END OF CYCLE LOW MACD MD2 = LM(close) => Signalline and LM[1] < LM(close) If MD2 then MCL = 0 endif //lowest LM in cycle if mcl then mclst = min(mclst, LM) endif // SIGNAL LONG If CCA and MHL and PHL then |