Login Page - Create Account

Support Board


Date/Time: Mon, 03 Feb 2025 14:11:25 +0000



Post From: Ask volume Bid volume difference text

[2019-11-15 08:32:38]
User907968 - Posts: 825
1) To drop trailing zeros from study subgraph output display:

In ACSIL use variable 'sc.ValueFormat', refer -
- ACSIL Interface Members - Variables and Arrays: sc.ValueFormat
or
From study settings window, refer -
- Chart Studies: Settings and Inputs Tab >> Value Format

2) To remove (-) negative sign you could change the study code so that all the values stored in the subgraph array are positive:

For example (using scsf_AskVolumeBidVolumeDifferenceText)

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

with
if (sc.AskVolume[sc.Index] > sc.BidVolume[sc.index])
    Subgraph_Difference[sc.Index] = sc.AskVolume[sc.Index] - sc.BidVolume[sc.Index];
  else
    Subgraph_Difference[sc.Index] = sc.BidVolume[sc.Index] - sc.AskVolume[sc.Index];