Login Page - Create Account

Support Board


Date/Time: Sun, 24 Nov 2024 23:23:33 +0000



Post From: Intermittent odd scaling issue with Study

[2024-10-24 22:37:06]
User846000 - Posts: 27
Update: I have solved this by using a list of price multipliers as the simplest option to scale the study to the price levels:

// Retrieve the selected scaling factor from the drop-down list
int ScalingFactorIndex = Input_PriceScalingFactor.GetIndex();
switch (ScalingFactorIndex)
{
case 0: PriceScalingFactor = 0.0001; break;
case 1: PriceScalingFactor = 0.001; break;
case 2: PriceScalingFactor = 0.01; break;
case 3: PriceScalingFactor = 0.1; break;
case 4: PriceScalingFactor = 1.0; break; // Default
case 5: PriceScalingFactor = 10.0; break;
case 6: PriceScalingFactor = 100.0; break;
case 7: PriceScalingFactor = 1000.0; break;
case 8: PriceScalingFactor = 10000.0; break;
default: PriceScalingFactor = 1.0; break; // Safety default
}

No longer an issue.

Thanks
Tim