Support Board
Date/Time: Thu, 12 Jun 2025 09:46:38 +0000
Post From: Getting data from other timeframe chart when Bar is Closed
[2022-11-10 20:32:07] |
kam2001 - Posts: 87 |
sorry, you mean something like this, i am not sure how to get the index of other chart SCGraphData BaseData; sc.GetChartBaseData(1, BaseData); int lastElementIndex = BaseData[SC_LAST].GetArraySize() - 1; if(BaseData[sc.Index] < lastElementIndex){ SCString cBuffer; cBuffer.Format("CLOSED - Last Price %f", BaseData[SC_LAST][lastElementIndex]); sc.AddMessageToLog(cBuffer, 0); } |