Login Page - Create Account

Support Board


Date/Time: Mon, 13 May 2024 10:29:04 +0000



[User Discussion] - Adapt WriteBarDataToFile with sc.BidSize sc.AskSize

View Count: 956

[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:

Login

Login Page - Create Account