I am in simulation mode (live feed) and using 5min bar.
Say at beginning of bar, I have a bar signal and on the 3rd min, I am filled. Can I get MC to recalculate my code again once there is filled? There is a option in autotrading called onmarketpositionchage (recalculate on broker event) but this is for live mode
I thought of using indicator to monitor the market position and reloading the chart once the market position change but it brought a lot of problems
Anyway to get signal to run again on_filled in simulation?
-
- Posts: 83
- Joined: 18 Mar 2013
- Has thanked: 11 times
- Andrew MultiCharts
- Posts: 1587
- Joined: 11 Oct 2011
- Has thanked: 931 times
- Been thanked: 559 times
Re: Anyway to get signal to run again on_filled in simulatio
Hello maisatomai,
It is possible to reload the chart from code, however depending on how your chart and strategy is configured it may or may not be possible to get the same results after the chart is reloaded.
It is possible to reload the chart from code, however depending on how your chart and strategy is configured it may or may not be possible to get the same results after the chart is reloaded.