f4f
翠鸟科
a voler essere pignoli........il codice del candelier è solo questo...
Codice:Var: Stop1, Stop2, StopLong, StopShort, PREV, Chandelier(0),OscAtr3, OscAtr25; Var: contahl,prox0,indzona1,pp,llow,hhigh,aa, bb,expoa,expob,dd,indzona2; ///////////////////////////////////////////////////////////////////////////////// OscAtr3 = ATR(C, 10) * 3; OscAtr25 = ATR(C, 10) *2.5; PREV = [COLOR=Red][B]Chandelier[1];[/B][/COLOR] if PREV < L THEN if (H - OscAtr3) >= PREV then Stop1 = H - OscAtr3; else Stop1 = PREV; endif; else Stop1 = H - OscAtr3; endif; if PREV < l then if (C - OscAtr25) >= PREV then Stop2 = C - OscAtr25; else Stop2 = prev; endif; else Stop2 = C - OscAtr25; endif; If Stop1 > Stop2 then StopLong = Stop1; else StopLong = Stop2; endif; if PREV > H then if (L + OscAtr3) <= PREV then Stop1 = L + OscAtr3; else Stop1 = PREV; endif; else Stop1 = L + OscAtr3; endif; if (PREV > H) then if (C + OscAtr25) <= PREV then Stop2 = C + OscAtr25; else Stop2 = PREV; endif; else Stop2 = C + OscAtr25; endif; If Stop1 < Stop2 then StopShort = Stop1; else StopShort = Stop2; endif; if BarSince(L > StopLong[1]) > BarSince(H < StopShort[1]) then Chandelier = StopLong; else Chandelier = StopShort; endif; PlotChart(Chandelier, 0, blue, solid, 2);
sono molto incuriosito dal codice del chandelier
nel listato qui sopra però chandelier è utilizzato come function.....