But in 2nd minute, a signal appear and I would want to trade on the signal immediately.
Now I am using this code
Code: Select all
buy next bar at inside limit
Code: Select all
buy this bar at inside limit?
Code: Select all
buy next bar at inside limit
Code: Select all
buy this bar at inside limit?
If you want a fill immediately, you have to use MARKET order.On a 5min bar chart, there is no signal in the first minute.
But in 2nd minute, a signal appear and I would want to trade on the signal immediately.
Now I am using this codeHowever, this code will only buy on next bar open. Is there a way toCode: Select all
buy next bar at inside limit
Code: Select all
buy this bar at inside limit?
Code: Select all
if (currentprice<=102) then
buy next bar at 100 limit
Code: Select all
buy immediately at 100 limit
Your thread subject says "IntrabarOrderGeneration=True",sorry for not being clear. I know what is a limit and what is a buy.
Let say I would like to place a 100 limit buy if the price touch 102.1st min: 107Code: Select all
if (currentprice<=102) then
buy next bar at 100 limit
2nd min: 102
3rd min:99.9
On the 2nd minute, MC will not place the 100 limit buy immediately. It will place only at the 5th minute. I want MC to place the 100 limit buy on the 2nd minute as the condition is met on the 2nd minute. My question is how do I do this? I want to do something likeThis example is not real as I have some proprietary code that do something like this and I cannot post on this forum.Code: Select all
buy immediately at 100 limit
Bear in mind that the order will be in effect so long as the "Condition" is met.Maybe I check it again tomorrow when the market is open. I understand what you mean and I thought MC will do what you have described. But I experienced otherwise. Thanks.