Support Board
Date/Time: Sun, 12 Jan 2025 23:47:30 +0000
Post From: DOM data
[2017-02-19 17:17:58] |
amirN - Posts: 159 |
Using: //----------------------------------------------------------------------------------------------------------------------------- SCSFExport scsf_Test(SCStudyGraphRef sc) { if (sc.SetDefaults) { sc.GraphName = "Test"; sc.StudyDescription = "Test"; sc.Subgraph[0].Name = "T1"; sc.Subgraph[0].DrawStyle = DRAWSTYLE_DASH; sc.Subgraph[0].PrimaryColor = BLUE; sc.FreeDLL = 1; sc.AutoLoop = 1; sc.GraphRegion = 0; return; } // Get access to the depth bars in the current chart. c_ACSILDepthBars* p_DepthBars = sc.GetDepthBars(); if (p_DepthBars == NULL) { return; } // Do nothing if the bar at the current index has no data. if (p_DepthBars->DepthDataExstsAt(sc.Index) == false) { return; } sc.Subgraph[0][sc.Index] = 2352; } p_DepthBars->DepthDataExstsAt(sc.Index) always return false (0) and hence the following line (sc.Subgraph[0][sc.Index] = 2352;) is not executed. I have loaded market depth historical indicator in another chart and the market depth has been loaded and available. Is there any other setting I can change to be able to access the market depth? |