Support Board
Date/Time: Wed, 05 Nov 2025 14:35:56 +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); } |
