Login Page - Create Account

Support Board


Date/Time: Tue, 07 May 2024 21:42:17 +0000



[Programming Help] - Example study

View Count: 547

[2018-06-13 17:35:33]
User252419 - Posts: 235
Could you give me an example of the result of the difference of Bid_Stack/Pull_Value(Sum of 10 levels)-Ask_Stack/Pull_Value(Sum of 10 levels) stored over time plotted in a line/bar? I don't know how to store the result of this difference over time and plot it in a line/bar for each bar period.
Here is a similar study but I don't know how to do what I've just said. Should be pretty simple for you.
Thank you,

/*==========================================================================*/

SCSFExport scsf_MarketDepthPullingStackingValuesExample(SCStudyInterfaceRef sc)

{

SCSubgraphRef BidPullingStackingSubgraph = sc.Subgraph[0];

SCSubgraphRef AskPullingStackingSubgraph = sc.Subgraph[1];



if (sc.SetDefaults)

{

// Set the configuration and defaults



sc.GraphName = "Market Depth Pulling/Stacking Values Example";



sc.GraphRegion = 1;



sc.AutoLoop = 0;



sc.FreeDLL = 0;



BidPullingStackingSubgraph.Name = "Bid";

BidPullingStackingSubgraph.DrawStyle = DRAWSTYLE_LINE;



AskPullingStackingSubgraph.Name = "Ask";

AskPullingStackingSubgraph.DrawStyle = DRAWSTYLE_LINE;



return;

}





//The following two functions will return 0 if there is no pulling and stacking value at the specified price

BidPullingStackingSubgraph[sc.ArraySize - 1] = (float)sc.GetBidMarketDepthStackPullValueAtPrice(sc.Bid);

AskPullingStackingSubgraph[sc.ArraySize - 1] = (float)sc.GetAskMarketDepthStackPullValueAtPrice(sc.Ask);

}
Date Time Of Last Edit: 2018-06-13 17:39:34

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

Login

Login Page - Create Account