Creating an entry with TIF = DAY

Moderator: admin

Creating an entry with TIF = DAY

Postby cwn6161 » Tue Jan 24, 2012 1:26 pm

I am trying to create an entry order that automatically closes after a day (TIF=DAY) if the trading condition is not met. Is there a variable in valuemap that I am not aware of that can set this parameter, or does anyone have a suggestion on how to code this? Thanks for the help!
cwn6161
 
Posts: 5
Joined: Tue Jan 24, 2012 1:22 pm

Re: Creating an entry with TIF = DAY

Postby sunshine » Wed Jan 25, 2012 7:29 am

To create an entry order with DAY time-in-force, you should fill the valuemap field "GTC" with the "DAY" value.
Please see for details:
Create an Entry Limit Order
Create an Entry Stop Order
sunshine
 

Re: Creating an entry with TIF = DAY

Postby cwn6161 » Wed Jan 25, 2012 9:29 am

Thanks for the link! I think I must have found an old link to those orders, because when I looked the GTC value did not have a valid option for DAY.
cwn6161
 
Posts: 5
Joined: Tue Jan 24, 2012 1:22 pm


Return to Indicator Development

Who is online

Users browsing this forum: No registered users and 51 guests