Login Page - Create Account

Support Board


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



Post From: ACSIL: sc.TickSize from other chart

[2016-01-18 11:03:28]
Marmany - Posts: 303
For info I achieve the result you are after by having a study on the transmitting chart with:
float& TckSize = sc.GetPersistentFloat(123);
TckSize = sc.TickSize();

Then on the receiver chart retrieve the value with a study containing:
SCInputRef TckSizeFeed = sc.Input[1]:

if(sc.SetDefaults)
{
    TckSizeFeed .Name = "Tick Size Feed";
    TckSizeFeed .SetChartStudyValues(1,1);// change digits as necessary

}
float TckSize = sc.GetStudyPersistentFloatFromChart(TckSizeFeed.GetChartNumber(), TckSizeFeed.GetStudyID(), 123);

First time the receiver study is run make sure in Study Settings that correct Transmitter chart is being picked up.

Hope this also works for you.