calculate Average entry price "Brakeven" #1245
esaesa
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As of today the library has no built in method to calculate average entry price. It is usually used in startegies like DCA and martiangle. use the followin code to calculate it
Then you can plot it with take profit to see a good overview how your startegy is going

Take care that that values are updated after next() cycle as simulating broker execusion. You can keep track manually but the above method is aligned with our library logic and accuracy
I am open for discussion
Beta Was this translation helpful? Give feedback.
All reactions