有些靈魂可以解釋為什麼iMaOnArray在第一次加載時工作但在時間框架改變時失敗。
顯然我錯過了什麼?
插入的代碼int start(){double mPrsCl; int mLim,counted_bars = IndiorCounted(); ArraySetAsSeries(mMa,true); ArraySetAsSeries(mMa2,true); if(counting_bars gt; 0)mLim = MathMin(Bars,mHist) - (counted_bars - (Bars - mHist)); if(counts_bars lt; 0)返回(0); if(counting_bars == 0)mLim = MathMin(Bars,mHist) - 1; for(int i = mLim; i gt; = 0; i--){.......一些代碼mPrsCl = someval; BarCl#91; I#93; = mPrsCl; if(i lt; mHist - mMaPrd2 - 1){mMa#91; i#93; = iMAOnArray(BarCl,0,mMaPrd,0,1,i); mMa2#91; I#93; = iMAOnArray(BarCl,0,mMaPrd2,0,1,i);更多代碼返回(0); }
當indi首次加載Ma的節目時如預期的那樣,但是一旦TF被改變,它們就會出現在某處,但值為“0”或非常低。
任何幫助非常感謝。
TIA
M.