Hi,
I have a strategy that manually draws arrows and entry price on historical bars. Entry prices are showing fine when auto trading is turned off, once auto trading is turned on, all historical entry/exit prices becomes 0, i.e. EntryPrice becomes 0
Why would that be so?
Thank you for any advice!
Historical EntryPrice becomes 0, when Auto Trading turned on
-
- Posts: 224
- Joined: 16 Oct 2011
- Has thanked: 66 times
- Been thanked: 20 times
Re: Historical EntryPrice becomes 0, when Auto Trading turne
Similarly, a signal I generate looks at historical performance of the "netprofit" or "I_closedequity" to make trading decisions. However, when the strategy is automated, there is no historical performance - netprofit and I_closed equity remain at zero.
Is there a way to maintain the historical net profit of a strategy when the strategy is automated?
Thanks
Is there a way to maintain the historical net profit of a strategy when the strategy is automated?
Thanks
- Andrew MultiCharts
- Posts: 1587
- Joined: 11 Oct 2011
- Has thanked: 931 times
- Been thanked: 559 times
Re: Historical EntryPrice becomes 0, when Auto Trading turne
Hello Ivanyu,
What is the mode of auto trading?
What is the mode of auto trading?
- Andrew MultiCharts
- Posts: 1587
- Joined: 11 Oct 2011
- Has thanked: 931 times
- Been thanked: 559 times
Re: Historical EntryPrice becomes 0, when Auto Trading turne
You are correct. Please read more about the modes.
-
- Posts: 224
- Joined: 16 Oct 2011
- Has thanked: 66 times
- Been thanked: 20 times
Re: Historical EntryPrice becomes 0, when Auto Trading turne
Is there no way to trade with Sync and retrieve historical orders?
- Andrew MultiCharts
- Posts: 1587
- Joined: 11 Oct 2011
- Has thanked: 931 times
- Been thanked: 559 times
Re: Historical EntryPrice becomes 0, when Auto Trading turne
Unfortunately not. The only possible, but complex solution would be to write all the orders down to a file from the historical order calculation and access this data when script is automated. But it depends on what particular information from backtesting you need.
Re: Historical EntryPrice becomes 0, when Auto Trading turne
I am positive that I saw a "show historical order" option somewhere, but can't remember where.
What does that historical price option do?
I guess another alternative would be to manually draw the arrows and the "entryprice" using bar open/close when the real entryprice turns 0 in sync mode?
What does that historical price option do?
I guess another alternative would be to manually draw the arrows and the "entryprice" using bar open/close when the real entryprice turns 0 in sync mode?
- Andrew MultiCharts
- Posts: 1587
- Joined: 11 Oct 2011
- Has thanked: 931 times
- Been thanked: 559 times
Re: Historical EntryPrice becomes 0, when Auto Trading turne
Most likely you are talking about "Show Historical Orders" checkbox in chart trading settings.I am positive that I saw a "show historical order" option somewhere, but can't remember where.
If your goal is to see the historical entry price on chart, i means visually, then yes. if you want to access this information from a script, then this solution will not help.I guess another alternative would be to manually draw the arrows and the "entryprice" using bar open/close when the real entryprice turns 0 in sync mode?