Need to exit long positions before market close, say, at 1555. There is a previous post which mentions the GetTime function, but that seems to be deprecated. Thus, how can one SellAtMarket at a given time?
Size:
Color:
Size:
Color:
Thanks Eugene,
I was able to implement the following, where my [i] is the bar:
CODE:
Please log in to see this code.
then, only buy if timenow < 1555. It works fine.
Size:
Color:
Or if Community Components is installed you can literally use this one-liner:
CODE:
Please log in to see this code.
Yes, even
"using Community Components" isn't required.
Size:
Color:
thx - got it!
Size:
Color: