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.
How do you Buy mid bar?
- TJ
- Posts: 7742
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: How do you Buy mid bar?
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
- TJ
- Posts: 7742
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: How do you Buy mid bar?
EasyLanguage Essentials Programmers Guide
Creating Trading Strategies
Intra-bar Order Generation.... pg. 82
Creating Trading Strategies
Intra-bar Order Generation.... pg. 82