Welcome to NexusFi: the best trading community on the planet, with over 200,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- discounts are available after registering.
-- The NexusFi team
(If you already have an account, login at the top of the page)
I have a question about Intrabar Order Generation feature in Multicharts and reading the Wiki I couldn't find a clear answer.
If I enable IOG in a script running on a hourly chart when I use reserved words Open, High, Low, Close are they referring to the tick or to the hourly bar on chart?
i.e. if in the conditions statement to trigger an order I have:
in the case above I am confident I am referring to the next tick for the "buy next bar" statement but for the conditions before the order, am I referring to the hourly bars that I can also see on the chart or to the tick bars inside the actual hourly bar?
Thank you
auato
Can you help answer these questions from other members on NexusFi?
I would suggest to use print statements to check the values in case you are in doubt.
As your code is evaluated with every tick when intrabar order generation is enabled the reserved words, for example High, will return their value at the moment of the code execution. When you apply your code to a 1 hour bar, High will return the one hour bar's high at the moment of the code computation. High[1] will return the value of the high for the previous bar and so on.
Just trying to understand this point. Would initializing as intra bar persist or not make a difference. Could a data2 vs. data1 which is not IBP change the outcome or will IOG force everything to be on each incoming tick.
I am not sure if I understand what you are saying correctly, but it sounds like you are mixing reserved words and variables (where intrabarpersist might be used).