buy order close to MKT 4:00 close as possible  [SOLVED]

Questions about MultiCharts and user contributed studies.
chancewebc
Posts: 3
Joined: 13 Aug 2012

buy order close to MKT 4:00 close as possible

Postby chancewebc » 04 Sep 2012

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?

User avatar
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]

Postby Henry MultiСharts » 05 Sep 2012

Hello chancewebc,

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;


Return to “MultiCharts”