Login Page - Create Account

Support Board


Date/Time: Fri, 22 Nov 2024 03:46:37 +0000



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

[2024-08-26 20:46:08]
PS - Posts: 40
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?