How do you Buy mid bar?

Questions about MultiCharts and user contributed studies.
NW27
Posts: 177
Joined: 25 Dec 2010
Has thanked: 40 times
Been thanked: 85 times

How do you Buy mid bar?

Postby NW27 » 11 Dec 2011

Hi,

How do you create an order that does a Buy at Market on the current bar?
As an example, I have a 25tick chart, 13 ticks into the current bar, I want to do a Buy at Market or a Buy on stop.

ie Buy("Entry") 1 Contract this Bar at Market ;
OR Buy("Entry") 1 Contract this Bar at CurrentPrice+1 Stop ;

I need to generate the orders within the current bar.
Waiting for the bar to close could see half the profits gone.

Same applies to shorting.

Neil.

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: How do you Buy mid bar?

Postby TJ » 11 Dec 2011

Hi,

How do you create an order that does a Buy at Market on the current bar?
As an example, I have a 25tick chart, 13 ticks into the current bar, I want to do a Buy at Market or a Buy on stop.

ie Buy("Entry") 1 Contract this Bar at Market ;
OR Buy("Entry") 1 Contract this Bar at CurrentPrice+1 Stop ;

I need to generate the orders within the current bar.
Waiting for the bar to close could see half the profits gone.

Same applies to shorting.

Neil.

press [F1] and look up IntraBarOrderGeneration

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: How do you Buy mid bar?

Postby TJ » 11 Dec 2011

EasyLanguage Essentials Programmers Guide
Creating Trading Strategies
Intra-bar Order Generation.... pg. 82


Return to “MultiCharts”