windowshopr
Member
The pseudo-code that I'd like to work is:
...however it says invalid statement for these inputs. You aren't allowed to use the Get functions for inputs. I'd like to have default values load into these inputs with the current date and time.
You CAN do:
...however those values don't remain constant, they change with time. You CAN also do:
...however I'd like to NOT have to enter the current date and time manually every time.
Can we set a default value for date/time inputs to the current date/time, or how can I define them as def's and make sure they remain static/don't change once the script is added to a chart?
Code:
input signalDate = GetYYYYMMDD();
input signalTime = GetTime();
...however it says invalid statement for these inputs. You aren't allowed to use the Get functions for inputs. I'd like to have default values load into these inputs with the current date and time.
You CAN do:
Code:
def signalDate = GetYYYYMMDD();
def signalTime = GetTime();
...however those values don't remain constant, they change with time. You CAN also do:
Code:
input signalDate = 20220727;
input signalTime = 1300;
...however I'd like to NOT have to enter the current date and time manually every time.
Can we set a default value for date/time inputs to the current date/time, or how can I define them as def's and make sure they remain static/don't change once the script is added to a chart?