Support Board
Date/Time: Sat, 04 Jan 2025 07:30:13 +0000
[User Discussion] - Adapt WriteBarDataToFile with sc.BidSize sc.AskSize
View Count: 1005
[2014-06-27 17:36:25] |
Leo33 - Posts: 73 |
In the Studies6.cpp /***********************************************************************/ SCSFExport scsf_WriteBarDataToFile(SCStudyInterfaceRef sc) { ... .. BarDataString.Format(formatString, DateString.GetChars(), hour, minute, second, MillisecondsText, sc.FormatGraphValue(OpenValue, ValueFormat).GetChars(), sc.FormatGraphValue(HighValue, ValueFormat).GetChars(), sc.FormatGraphValue(LowValue, ValueFormat).GetChars(), sc.FormatGraphValue(CloseValue, ValueFormat).GetChars(), sc.Volume[Index], sc.NumberOfTrades[Index], sc.BidVolume[Index], sc.AskVolume[Index]); WriteFile(hFile,BarDataString.GetChars(),(DWORD)BarDataString.GetLength(),&numOfWrittenByte,NULL); .. .. >>>> >>>might i be able to add in: sc.BidSize sc.AskSize >>>and change the file headers to include them? fileHeader = "Date Time Open High Low Close Volume NumberOfTrades BidVolume AskVolume\r\n"; to:: fileHeader = "Date Time Open High Low Close Volume NumberOfTrades BidVolume AskVolume BidSize AskSize\r\n"; I don't suppose it could be that straightforward? |
[2016-05-04 00:25:15] |
rhovega - Posts: 279 |
Hi Leo33, Did you manage to modify the study successfully? |
[2016-06-06 08:12:13] |
Leo33 - Posts: 73 |
@rhovega - I didn't try, or try any coding in Sierra. Just not enough time spare.
|
To post a message in this thread, you need to log in with your Sierra Chart account: