-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creating Market Bracket Orders with Pips instead of Price #145
Comments
Hi, Asuming you use the |
Any updates? I can use distance in stoplossOnFill and set stop loss relative to the opening price of the trade. Is there anything new on the take profit front? What is the workaround? |
it is a few lines of code to calculate things in a way that it can be handled in an order request. But I will leave that to the programmer |
How about this:
|
Feel free to program it the way you like. The examples in https://github.com/hootnot/oandapyV20-examples show a clear example in
|
I see. Can you use distance for stop loss? In the API doc it doesn't mention distance in TP, unfortunately. |
OANDA doesn't support the distance parameter in a TP, see #147 . But you can write your own class or subclass |
Hello,
Is there a way to make StopLoss and TakeProfit orders as a pip difference based on the Market order instead of a set price.
The current method only allows you to put in a price for the StopLoss and Take Profit. I would like to be able to use a constant SL and TP for my trades.
Thank you,
Artis Johnson
The text was updated successfully, but these errors were encountered: