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 2:53 PM
#106837
I simplified the whole thing. I hope these variables are better readable. I stille get a syntax error at line 19.
And… I see the line numbers in the left show up after I submitted.
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 |
//--- Higher Lows Price in sync with Higher Low MACD //---settings MA = Average[ma] Mline = MACDline[12,26,9] SLine = ExponentialAverage[9] once lastpoint = 0 //MACDline Cycle Low if (MLine crosses under Sline and Mline =< Sline) then //MACDline Cycle Low MCL = 1 PriceLow = lowest[mcl](low) Macdlow = lowest [mcl](Sline) endif Pricelow[1] =< Pricelow and MACDlow[1] =< MACDlow then DRAWTEXT("■",TOPx,TOPy,Dialog,Bold,20) coloured(0,200,0,255) lastpoint = -1 lastX = BOTx lastY = BOTy endif return |