Support Board
Date/Time: Sun, 23 Feb 2025 21:39:57 +0000
[User Discussion] - problem of getting study subgraph from "Ask/Bid difference" Study
View Count: 611
[2021-02-23 20:56:50] |
User61576 - Posts: 445 |
I cloned the SCSFExport scsf_TradingSystemStudySubgraphCrossover(SCStudyInterfaceRef sc) and added a log function of the 2 subgraphs (SG2 and SG3) of the above study when logging SG2 - it's getting the correct data but regarding SG3 or SG4 - I am not getting any values I am attaching my test cpp as screenshots of my setup as well as a sample of the log (where Max = SG2 and you can see there is no value for SG3 at 2nd and 4th line) Chart: ESH21_FUT_CME[M] 1000 Volume #6 | Study: Trading System - Study Subgraph Crossover | Max = 219.000000 | 2021-02-23 15:54:42.932
Chart: ESH21_FUT_CME[M] 1000 Volume #6 | Study: Trading System - Study Subgraph Crossover | | 2021-02-23 15:54:42.932 Chart: ESH21_FUT_CME[M] 1000 Volume #6 | Study: Trading System - Study Subgraph Crossover | Max = 62.000000 | 2021-02-23 15:55:00.434 Chart: ESH21_FUT_CME[M] 1000 Volume #6 | Study: Trading System - Study Subgraph Crossover | | 2021-02-23 15:55:00.434 please advice Date Time Of Last Edit: 2021-02-24 06:26:24
|
![]() ![]() Attachment Deleted. |
[2021-02-23 21:22:12] |
Flipper_2 - Posts: 57 |
You forgot the code
|
[2021-02-24 06:26:39] |
User61576 - Posts: 445 |
fixed
|
[2021-02-24 06:44:41] |
Flipper_2 - Posts: 57 |
Thats because you have an error in your code. : ) float Min = StudyLine2[sc.Index]; SCString MessageText2; MessageText1.Format("Min = %f", Min); <<<<<<<<<<<<< wrong SCString ! sc.AddMessageToLog(MessageText2, 0); You are formatting MessageText1 both times Date Time Of Last Edit: 2021-02-24 06:45:28
|
To post a message in this thread, you need to log in with your Sierra Chart account: