Login Page - Create Account

Support Board


Date/Time: Thu, 23 Jan 2025 15:31:16 +0000



Post From: Problem with s_VolumeAtPriceV2 in latest versions of SC

[2018-11-24 20:20:46]
User517260 - Posts: 97
Hi! It was my mistake, so last question is canceled.

I have new situation - I use in one study a few subgraphs:

SCSubgraphRef ID2_Background_Sub         = sc.Subgraph[3];
SCSubgraphRef ID17_BuyCandle_Sub        = sc.Subgraph[19];
SCSubgraphRef ID16_SellCandle_Sub        = sc.Subgraph[20];


  ID2_Background_Sub.Name = "ID2: Background";
  ID2_Background_Sub.DrawStyle = DRAWSTYLE_BACKGROUND_TRANSPARENT;
  ID2_Background_Sub.PrimaryColor = RGB(64,64,64);
  ID2_Background_Sub.DrawZeros = false;
  ID2_Background_Sub.DisplayNameValueInWindowsFlags = 0;

  ID17_BuyCandle_Sub.Name = "ID17: BUY CANDLE";
  ID17_BuyCandle_Sub.DrawStyle = DRAWSTYLE_COLOR_BAR_CANDLE_FILL;
  ID17_BuyCandle_Sub.PrimaryColor = RGB(0, 157, 0);
  ID17_BuyCandle_Sub.DrawZeros = false;

  ID16_SellCandle_Sub.Name = "ID16: SELL CANDLE";
  ID16_SellCandle_Sub.DrawStyle = DRAWSTYLE_COLOR_BAR_CANDLE_FILL;
  ID16_SellCandle_Sub.PrimaryColor = RGB(64, 0, 64);
  ID16_SellCandle_Sub.DrawZeros = false;
    
Problem is - background hides candles. If I use DRAWSTYLE_IGNORE for backgronud - I see normal colored candles, but I can't see background and colored candles same time - it is a problem, because I need to have only one study which draws background depend of time and colored candles. What I have to do to decide this problem? Thanks!