Welcome Guest, you are in: Login
CTS Futures
Home
Pricing
Market Data
FAQ
Videos

T4 Desktop
User Guide
Scripting Guide
Release Notes

Mobile and Web
T4 Mobile for Android
T4 Mobile for iOS
T4 Mobile for Browser
T4 WebTrader

Admins
T4 Admin Guide
MiFID II/MiFIR

Developers
API 4.7 Guide
FIX API


Page History: INPUT Function

Compare Page Revisions



« Older Revision - Back to Page History - Newer Revision »


Page Revision: 2012/08/14 10:34


The input function allows for user configuration of script parameters to customize a script on a chart. For example, a script that used a moving average would use the INPUT function to get the number of periods to use for the moving average. That would allow the same script to be used on multiple charts with different values for the number of periods.

Numeric Values

INPUT(<label>, <number>, <min value>, <max value>);

Function Parameters
ParameterDescription
<label>The label that appears on the property page for this value.
<number>The number of periods to compute the moving average over.
<min value>The minimum value allowed for this input.
<max value>The maximum value allowed for this input.

Examples:

periods = input("Moving Average Periods", 14, 1, 1000);
variance = input("Variance", 0.25, 0, 1.0);



INPUT(<label>, <text>);

INPUT(<label>, <color>);

INPUT(<label>, <lookup>);

Function Parameters
ParameterDescription
<label>The label that appears on the property page for this value.
<periods>The number of periods to compute the moving average over.
<MAType>The type of moving average to compute.

Trade how you want, where you want

support@ctsfutures.com (312) 939 0164

2 Pierce Pl, Suite 200, Itasca, IL 60143

© 2009-2023 Cunningham Trading Systems LLC All rights reserved.