Replies: 1 comment 1 reply
-
Yes.
No. Think of it simply as |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
Sorry for the Python OOP question, but hoping someone could give me a pointer?
So I've implemented a simple breakout strategy. To simplify it: say I want to enter a long if High[-1] > High[-2], would the next() function mean I'm entering my trade on the Open AFTER High[-1], ie. not on the Open of the same candle that produced the signal?
Or would it enter the trade on Open[-1], and hence I need to change my signal to High[-2] > High[-3]?
I thought the latter might be true from looking at the code... but then looking at e.g. the crossover function in lib, it compares [-1] and [-2] to create the signal, so I thought perhaps not?
Really appreciate the advice, I've racked my head trying to sift through the code, but I'm still getting to grips with OOP.
Thanks,
Noah
Beta Was this translation helpful? Give feedback.
All reactions