Donchian Channel | Donchian Channel MultiCharts

Donchian Channel - User Contributed Studies and Indicator Library Discussion Forum For Traders' Community.BuynowTryitforfreeMultiCharts/Support/DiscussionForumForTraders'CommunityQuicklinksUnansweredtopicsActivetopicsSearchFAQLoginBoardindexMultiChartsUserContributedStudiesandIndicatorLibrarySearchAdvancedsearchDonchianChannelStudiesthathavebeencontributedtothecommunitybyotherusers.Ifyou’vegotsomethingusefultoshare,that’sgreat!PostReplyPrintview3posts•Page1of1shanemcdonaldPosts:196Joined:08Aug2012Has thanked:41timesBeen thanked:41timesDonchianChannelQuotePostbyshanemcdonald»16Nov2014ThisisaDonchianChannelfromTrader'sExchange.Code:Selectall//DonchianChannel////http://www.tradersxchange.comInputs:Base(close),Length(13),ShowAvg(true);Variables:DonHigh(0),DonLow(0),DonAvg(0);DonHigh=Highest(base,Length);DonLow=Lowest(base,Length);DonAvg=((DonHigh+DonLow)/2);Plot1(DonHigh,"DonchianHi");Plot2(DonLow,"DonchianLo");ifShowAvg=truethenPlot3(DonAvg,"DonchianAvg");TopMAtricksPosts:789Joined:09Apr2012Has thanked:286timesBeen thanked:281timesRe:DonchianChannelQuotePostbyMAtricks»21Nov2014Thankyouforpostingthiscommonlyusedtool.However,Iseeanerrorinthispieceofcode:Usingthehigh/lowoftherecentClosepricesdoesn'tseemveryaccurate.TheDonchianChannelusesthehighestofthehighsandlowestofthelows.Trythis:Code:SelectallInputs:Length(20);Variables:DonchianHi(0),DonchianLo(0),DonchianAvg(0);DonchianHi=Highest(High,Length);DonchianLo=Lowest(Low,Length);DonchianAvg=((DonchianHi+DonchianLo)/2);Plot1(DonchianHi,"DonchianHi");Plot2(DonchianLo,"DonchianLo");Also,similarcodeisusuallyincludedinwithMCorTSlibrariesunderthename"PriceChannel".TopshanemcdonaldPosts:196Joined:08Aug2012Has thanked:41timesBeen thanked:41timesRe:DonchianChannelQuotePostbyshanemcdonald»21Nov2014Thanksforthecode!IonlyposteditbecausethePriceChanneldoesnothavethemidpoint.Icouldnotgetthemidpointsetupproperlymyself.SoIusetheDonchianIfoundonTradersExchange.thanksforthenewcode,itsgreat!shaneTopDisplaypostsfromprevious:Allposts1day7days2w


常見投資理財問答


延伸文章資訊