How do I write an easylanguage to send in a buy order @ MKT close or as close as possible 15:59:40 Seconds.
I have=
if time >= 1558 then begin
Buy 500 shares next bar at market;
end;
this only buys @ 3:59 , which is still 1 minute away from the close.
How do you second specify the orders?
buy order close to MKT 4:00 close as possible [SOLVED]
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: buy order close to MKT 4:00 close as possible [SOLVED]
Hello chancewebc,
You need to use time_s or currenttime_s.
You need to use time_s or currenttime_s.
Code: Select all
if currenttime_s>=155938 and currenttime_s<=155940 then Buy 500 shares next bar at market;