5MA slope 구할 때 index 안 맞는 문제 처리
This commit is contained in:
@@ -309,7 +309,7 @@ namespace upper_limit_crawler
|
||||
public float GetPrev5MASlope(int iTime)
|
||||
{
|
||||
int iLastIdx = m_1MinChart.IndexOfKey(iTime)-1;
|
||||
if(iLastIdx <= 1)
|
||||
if(iLastIdx <= 1 || iLastIdx >= m_5MAChart.Count)
|
||||
return float.NaN;
|
||||
|
||||
MATick LastMA = m_5MAChart.Values[iLastIdx];
|
||||
|
||||
Reference in New Issue
Block a user