Start trading fresh on Monday
Author: digitalsculpture
Creation Date: 8/7/2020 5:56 PM
profile picture

digitalsculpture

#1
On Friday afternoons I want to sell all of my positions so I can start with a blank slate on Monday. I thought that I could accomplish this on a Friday by opening my strategy file and adding a condition to buy only on Mondays. But when I add this condition I see that sell limit orders and stop losses are no longer generated. From our earlier correspondence I now understand that adding the "buy only on Monday" constraint breaks a logic loop.

Can you recommend another means of accomplishing the goal of changing the strategy code to only sell?

I'm using a simple rules based strategy, which is to: buy at limit channel low with a channel period of 18. Sell at channel high with a channel period of 18. Sell at stop loss of 25%. Running this on a 5 minute scale.
profile picture

Cone

#2
You can't only sell because the "engine" needs to have a [hypothetical] Position to exit. At the very least you'd have to Buy a dummy position just to sell it.

Buy only on Monday and sell everything on Friday shouldn't be a problem - just drag the Condition Date/Time > "Date is a day of week" to the Buy rule. Also add another Sell rule (Sell At Market or At Close) and drag another "Date is a day of week" rule on top of it.

Does that work for you?
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).