buy with stop parameter buys far under the current price #403
Hungryarie
started this conversation in
General
Replies: 1 comment 4 replies
-
This is |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, thanks for making this wonderfull programm!
I've made a strategy and I am playing with the parameters, but when I place a buy order with the stop parameter it will buy far below the actual price.
curent OHLC: O:9664.45, H;9728.13, L;9661.0, C:9717.73
self.buy(stop=8940.3, limit=9717.7, tp=11272.6)
the trade is done with EntryPrice: 8958.19 ExitPrice: 9877.31
You can see in the image that the trade lines are also off.
but when I use

self.buy(sl=8940.3, limit=9717.7, tp=11272.6)
the trade is down with EntryPrice: 9737,155 Exitprice: 9877.33, just as you would expect.
Am I using the stop parameter wrong?
thanks!
Beta Was this translation helpful? Give feedback.
All reactions