I was very disappointed to load Beta 2 and find that automated strategies can still not be run accurrately because lasbaronchart had not been fixed as promised especially after all the assurances the fix would be in this Beta 2 build.
drwar
New Beta 2 does not fix LastbaronChart as Promised.
- Marina Pashkova
- Posts: 2758
- Joined: 27 Jul 2007
[quote]drwar,
There is no need to misinform people.
All you said is true if you use auto-trading with the "update on every tick" mode uncecked. However, I don’t think anybody else does so.
We will see why it still doesn’t work and try to fix it before the official release.[/quote]
Thats not true. It does not work correctly with update on tick checked either. When I say correctly I mean by TS definition. Because you do not publish one. Their definition is that it will be true for the last completed bar on the chart. This is not true for MC whether Update every tick is checked or unchecked. So don't claim I am misinforming people. I would never do that knowingly or recklessly, I spent all morning testing before coming to this conclusion.
J~
There is no need to misinform people.
All you said is true if you use auto-trading with the "update on every tick" mode uncecked. However, I don’t think anybody else does so.
We will see why it still doesn’t work and try to fix it before the official release.[/quote]
Thats not true. It does not work correctly with update on tick checked either. When I say correctly I mean by TS definition. Because you do not publish one. Their definition is that it will be true for the last completed bar on the chart. This is not true for MC whether Update every tick is checked or unchecked. So don't claim I am misinforming people. I would never do that knowingly or recklessly, I spent all morning testing before coming to this conclusion.
J~
If 5 minutes of that had been spent with a video screen capture program, your case could have been unambiguous. My suggestion is merely meant to help bypass "He said, she said". The best possible report may get the fastest possible verification and correction. If no merit is seen in this suggestion, by all means ignore it.I spent all morning testing before coming to this conclusion.
-
- Posts: 15
- Joined: 29 Feb 2008
It is true that LastBarOnChart does not work as defined
The LastCalcJDate and LastCalcTime and thus the LastBarOnChart function does not work as it is defined in the help file. LastBarOnChart should return true for the last COMPLETED bar on the chart, but instead it will only return true for the very last bar on the chart, which is usually an OPEN one, not a completed one. This does indeed lead to strategies not finishing correctly in many cases. I hope this is fixed in the beta released April 10, or at leat by the final version.
By the way, it may be helpful for some people to have a separate function that can determine last open bar on the chart, but that should be determinable from correctly functioning LastCalcJDate and LastCalcTime functions by saying date >= LastCalcJDate and time >= LastCalcTime and barstatus = unfinished.
Of course, if we had a function that could tell us the closing time and date of the next bar to form, that would be even more useful.
By the way, it may be helpful for some people to have a separate function that can determine last open bar on the chart, but that should be determinable from correctly functioning LastCalcJDate and LastCalcTime functions by saying date >= LastCalcJDate and time >= LastCalcTime and barstatus = unfinished.
Of course, if we had a function that could tell us the closing time and date of the next bar to form, that would be even more useful.