Login Page - Create Account

Support Board


Date/Time: Tue, 08 Oct 2024 18:13:17 +0000



Post From: Backtest positions does not correlate with trade result and sc.GetTradePosition

[2024-08-26 20:46:08]
PS - Posts: 37
I apologize for the lack of clarity. This strategy is only being used in a backtest. No live trading is occurring. In the backtest, I am using 3 methods to verify that orders are being placed correctly (again, in the backtest).

Those three methods are:
1) made my strategy draw arrows on the chart when buy and sell signals are generated
2) printed the trade result of every trade when it is placed
3) printed the current position using sc.GetTradePosition every 5 bars

These three methods above show that orders (in the backtest) are being entered correctly.

HOWEVER, my trade activity log, and the trades that show up on the chart when you enable the Trade/Show Order Fills setting are entirely incorrect.

Once again, sorry about the confusion. Is the problem clear now?