pmbf8
- ago
Hi WL Team,

I am running a strategy based on daily bars. Current portfolio initially has some holdings. I noted the following observations on this portfolio during the 3 Runs below.

Questions
1) Can you provide some details about what "Clear Saved Live Positions" under Preference -> Trading -> Portfolio Sync, does?

2) Why is WL unable to recognize that the portfolio has no holdings in Run 2?

3) Why is WL only able to recognize that the portfolio has no holdings in Run 3, after I click "Clear Saved Live Positions" under Preference -> Trading -> Portfolio Sync?



Run 1
Step 1: Don't Close All the Open Positions on 4th Jan 2024
Step 2: Load the Strategy into Strategy Monitor
Step 3: Run the Strategy Now on 4th Jan 2024
Observation: Sell Signals for Some of The Current Holdings Are Generated Based on 3rd Jan 2024 Signal Date

Run 2
Step 1: Manually Close All the Open Positions on 4th Jan 2024
Step 2: Load the Same Strategy into Strategy Monitor
Step 3: Run the Strategy Now on 4th Jan 2024
Observation: Sell Signals for Some of The Current Holdings Are Generated Based on 3rd Jan 2024 Signal Date

Run 3
Step 1: Manually Close All the Open Positions on 4th Jan 2024
Step 2: Click "Clear Saved Live Positions" under Preference -> Trading -> Portfolio Sync
Step 2: Load the Same Strategy into Strategy Monitor
Step 3: Run the Strategy Now on 4th Jan 2024
Observation: No Sell Signal is Generated

Regards,
pmbf
0
362
Solved
3 Replies

Reply

Bookmark

Sort
Cone8
 ( 5.88% )
- ago
#1
1) From the help doc -
The backtester remembers the bar on which the live positions were first queried and will retain a memory of the live trades as the intraday trading session progresses. On a Streaming Chart, trades that were the result of live broker positions are highlighted with a circle. You can clear WealthLab's memory of live positions using the Clear button next to this preference's check box.

Runs 1 and 2
The result will be the same with "Use Live Positions" because the signals are based on the Live Positions in the account you specified.

Run 3
Then we're missing the initial conditions. It sounds to me like your account is flat, but WealthLab had a history of Live Position trades, which it was using.

See IMPORTANT considerations: in the User Guide for "Use Live Positions". It sounds like you traded out of the Position manually.
0
Best Answer
pmbf8
- ago
#2
Hi Cone,

Thanks for sending over your reply.

To perhaps make my earlier scenarios a bit clearer, the account which ran on daily bars started off on 4th Jan 2024 with some open positions in it.

Run 1 was run first, then followed by Run 2, and then finally Run 3. Please refer to below text for more details on the various runs.

1) Run 2 and Run 3 had no open positions but the former run generated Sell signals whereas the latter run did not generate any sell signals. Why is that so?

2) Can you explain more on what this statement, "The backtester remembers the bar on which the live positions were first queried and will retain a memory of the live trades as the intraday trading session progresses", means in the context of a daily bar strategy?

============================================================
Run 1
Step 1: Load the Strategy into Strategy Monitor
Step 2: Run the Strategy Now on 4th Jan 2024

Observation: Sell Signals for Some of The Current Holdings Are Generated Based on 3rd Jan 2024 Signal Date

Run 2
Step 1: Manually Close All the Open Positions on 4th Jan 2024
Step 2: Load the Same Strategy into Strategy Monitor
Step 3: Run the Strategy Now on 4th Jan 2024

Observation: Sell Signals for Some of The Current Holdings Are Generated Based on 3rd Jan 2024 Signal Date

Run 3
Step 1: Manually Close All the Open Positions on 4th Jan 2024
Step 2: Click "Clear Saved Live Positions" under Preference -> Trading -> Portfolio Sync
Step 2: Load the Same Strategy into Strategy Monitor
Step 3: Run the Strategy Now on 4th Jan 2024

Observation: No Sell Signal is Generated
0
Cone8
 ( 5.88% )
- ago
#3
And it makes sense, right?

Run 1 was based on the Live Positions. WealthLab loaded these from the Account Positions on the first run.

Run 2 was still based on those Live Positions because you traded out of the positions manually.
Don't manually trade Positions that you're Auto-Trading.

Run 3 was reset to reality again.
0

Reply

Bookmark

Sort