/*[[ Name := ttf_Crossings Separate Window := No First Color := Red First Draw Type := Symbol First Symbol := 226 Use Second Data := Yes Second Color := Blue Second Draw Type := Symbol Second Symbol := 225 ]]*/ Input: TTFbars(15); Input: t3_period(5); Input: b(0.764); Input: mode_0Sep_1Main(0); Input: barBegin(1000); Input: show_Info(0); Vars : i(0); Vars : b4plusdi(0); Vars : nowplusdi(0); Vars : b4minusdi(0); Vars : nowminusdi(0); SetLoopCount(0); For i = Bars - TTFbars Downto 0 Begin b4plusdi = iCustom("Trend_Trigger_Modified_v3",TTFbars,t3_period,b,mode_0Sep_1Main,barBegin,show_Info,MODE_SECOND,i + 2); nowplusdi = iCustom("Trend_Trigger_Modified_v3",TTFbars,t3_period,b,mode_0Sep_1Main,barBegin,show_Info,MODE_SECOND,i + 1); b4minusdi = iCustom("Trend_Trigger_Modified_v3",TTFbars,t3_period,b,mode_0Sep_1Main,barBegin,show_Info,MODE_SECOND,i + 2); nowminusdi = iCustom("Trend_Trigger_Modified_v3",TTFbars,t3_period,b,mode_0Sep_1Main,barBegin,show_Info,MODE_SECOND,i + 1); if (b4plusdi > 0.0000 and nowplusdi < 0.0000) Then { SetIndexValue(i,High[i] + 15 * Point); }; if (b4plusdi < 0.0000 and nowplusdi > 0.0000) Then { SetIndexValue2(i,Low[i] - 15 * Point); }; End;