Login Page - Create Account

Support Board


Date/Time: Sun, 19 May 2024 06:52:31 +0000



Post From: Change to ask/bid vol difference text indicator

[2018-08-26 12:13:37]
User563418 - Posts: 6
Sorry i meant would you know the specific lines of code that would make it like shown?
I've tried to do it but i'm not a programmer.

Basically in the code for that indicator i pasted below i want the text to display above the bar if the difference is >=1 and below the bar if <=0.

Any idea how to code it correctly?

  Subgraph_Difference[sc.Index] = sc.AskVolume[sc.Index] - sc.BidVolume[sc.Index];

  if (Input_DisplayAboveOrBelow.GetIndex() == 0)
    TextPosition[sc.Index] = sc.High[sc.Index] + (Input_OffsetInTicks.GetInt() * sc.TickSize);
  else    
    TextPosition[sc.Index] = sc.Low[sc.Index] - (Input_OffsetInTicks.GetInt() * sc.TickSize);

Thanks
SD
Date Time Of Last Edit: 2018-08-26 13:08:33