Login Page - Create Account

Support Board


Date/Time: Wed, 26 Feb 2020 01:13:44 +0000



[Programming Help] - Safe Depth of Market Data in Spreadsheat

[2020-01-20 16:23:23]
Tom_Tom - Posts: 2 | Ending Date: 2020-03-23
Hello,

i use a Stair Step Chart with a Bar Period Time of one second.
All my studies go to a Spreadsheet.

For the Bid Stack/Pull Value and the Ask Stack/pull Value i use the Market Depth Data Study.

It sseems the Data for the Market Depth Data are not able to store.

Is there a way to store the Data?

Thanks for help!

Sincerely
Thomas
[2020-01-22 11:19:23]
Tom_Tom - Posts: 2 | Ending Date: 2020-03-23
Hello,

now i have done a code.
For the first time this is what i want and i think it is working.

If someone has a note for me to do better, please post.

Thanks!



#include "c:\sierrachart\acs_source\sierrachart.h"

SCDLLName ("Projet 1")


SCSFExport scsf_Demo(SCStudyGraphRef sc)

{

  if (sc.SetDefaults)
  {
    sc.GraphName = "Demo";
    sc.AutoLoop = 1;
    sc.FreeDLL = 1;
    
    
    sc.Subgraph[1].Name = "Bid Stack Pull Value";
    sc.Subgraph[2].Name = "Ask Stack Pull Value";


    
    

    return;
  }

  int BidStackPullValue = sc.GetBidMarketDepthStackPullValueAtPrice(sc.Bid);
  int AskStackPullValue = sc.GetAskMarketDepthStackPullValueAtPrice(sc.Ask);
  
  
  sc.Subgraph[1].Data[sc.Index] = BidStackPullValue;
  sc.Subgraph[2].Data[sc.Index] = AskStackPullValue;
  
}




Sincerely
Thomas

To post a message in this thread, you need to login with your Sierra Chart account:

Login

Login Page - Create Account