Hi I am pretty new at this so sorry if don't make much sense. I have noticed that after your entry position is placed it takes a few bars for you exit signals to get into the market(trailing stop, stop loss etc) the profit target gets entered right away however so I am wondering if there is away to do this? Is there something to do with intrabarordergeneration ? and if so do you just open the script and put = true instead of = false?
Thanks
Iceman
Intrabarordergeneration
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2223 times
Re: Intrabarordergeneration
a lot of different things can affect your execution.Hi I am pretty new at this so sorry if don't make much sense. I have noticed that after your entry position is placed it takes a few bars for you exit signals to get into the market(trailing stop, stop loss etc) the profit target gets entered right away however so I am wondering if there is away to do this? Is there something to do with intrabarordergeneration ? and if so do you just open the script and put = true instead of = false?
Thanks
Iceman
you have to post your code... and the log to show the problem.
sometimes the delay is in reporting from the broker, not the actual time of execution.
Re: Intrabarordergeneration
Hi,
I was looking for something else and came across the post.
I've noticed the same issue. Using the Intrabarordergeneration, it allows you to get into a trade a minute into a five bar but the creation of the orders for the exits (MC Setprofittarget or setbreakeven or setstoploss etc etc), do not appear until the 5min bar has completed.
So any price movement in the next 4min could kill you.
Not sure how you fix this?
Neil.
I was looking for something else and came across the post.
I've noticed the same issue. Using the Intrabarordergeneration, it allows you to get into a trade a minute into a five bar but the creation of the orders for the exits (MC Setprofittarget or setbreakeven or setstoploss etc etc), do not appear until the 5min bar has completed.
So any price movement in the next 4min could kill you.
Not sure how you fix this?
Neil.
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2223 times
Re: Intrabarordergeneration
Can't help you without the code.Hi,
I was looking for something else and came across the post.
I've noticed the same issue. Using the Intrabarordergeneration, it allows you to get into a trade a minute into a five bar but the creation of the orders for the exits (MC Setprofittarget or setbreakeven or setstoploss etc etc), do not appear until the 5min bar has completed.
So any price movement in the next 4min could kill you.
Not sure how you fix this?
Neil.
Re: Intrabarordergeneration
Hi I am pretty new at this so sorry if don't make much sense. I have noticed that after your entry position is placed it takes a few bars for you exit signals to get into the market(trailing stop, stop loss etc) the profit target gets entered right away however so I am wondering if there is away to do this? Is there something to do with intrabarordergeneration ? and if so do you just open the script and put = true instead of = false?
Thanks
Iceman
Try this code for stoploss, if it works use same idea to create your profitTarget , Trailing Stop etc orders.
Code: Select all
[IntrabarOrderGeneration = True]
Inputs: StopPoints(10);
Vars: Intrabarpersist Mp(0);
Mp= MarketPosition;
If Mp=1 then Sell("LStopLoss")Next Bar at (EntryPrice - StopPoints) Stop;
If Mp=-1 then Buy to Cover("SStopLoss") Next Bar at (EntryPrice + StopPoints) Stop;
- Roman MultiCharts
- Posts: 50
- Joined: 28 Nov 2011
- Has thanked: 21 times
- Been thanked: 67 times
Re: Intrabarordergeneration
Hi I am pretty new at this so sorry if don't make much sense. I have noticed that after your entry position is placed it takes a few bars for you exit signals to get into the market(trailing stop, stop loss etc) the profit target gets entered right away however so I am wondering if there is away to do this? Is there something to do with intrabarordergeneration ? and if so do you just open the script and put = true instead of = false?
Thanks
Iceman
Hi iceman and NW27Hi,
I was looking for something else and came across the post.
I've noticed the same issue. Using the Intrabarordergeneration, it allows you to get into a trade a minute into a five bar but the creation of the orders for the exits (MC Setprofittarget or setbreakeven or setstoploss etc etc), do not appear until the 5min bar has completed.
So any price movement in the next 4min could kill you.
Not sure how you fix this?
Neil.
In this case it is necessary to allow unlimited entries and exits per bar. To do that please open format signals menu --> select your signal and click the format button --> go to the properties tab. Check Enable Intra-Bar Order Generation feature and select "allow unlimited entries and exits per bar". This feature is the additional one and cannot be enabled from the script.