-
Hi all,
I have the following implementation.
`` Have I implemented the above strategy as I have described it in words? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Instead of |
Beta Was this translation helpful? Give feedback.
-
Many thanks. That works better and is the answer I needed. |
Beta Was this translation helpful? Give feedback.
Instead of
self.data.signal==1
, you'd make the condition be:self.data.signal[-1] == 1 and not self.position
.Instead of
self.sell()
, you'd callself.position.close()
.