@mics Yes, it works! Thanks so much!
Posts made by kirahvi
-
RE: How to use tick data for stop loss in live trading?
-
RE: How to use tick data for stop loss in live trading?
@mics, This is exactly the scenario I'm working on. Thank you!! I'll give it a try and report back.
-
RE: How to use tick data for stop loss in live trading?
@mics Thanks! Looks good. I was just looking for intra-bar stoploss functionality which seems to be a built-in-method (as I've found out). Now the problem has become how to close a stoploss once the original position closes.
-
How to cancel ALL existing orders (without specifying order ids one-by-one)?
Hello, Every time my strategy makes a buy order, it also places a stop order (for stop loss purposes). What line of code can I write if I want the code to cancel ALL existing stop orders (or even all existing orders) without having to specify each order (via order id, etc.)?
-
RE: Stop orders on interactive brokers
@ard9000 Did you get this working?
-
How to use tick data for stop loss in live trading?
I can't seem to find a posting regarding this --
How does one use live tick data for stop loss where the strategy itself otherwise uses a different time frame (e.g. 10 second bars) for entries and exits?
This is for LIVE trading, so:
--adddata() has not worked (adddata seems to work only for backtesting when you have a defined data set)
--cerebro.resampledata does not seem to be able to process resampling to 1 tick (or any tick amounts, just for time intervals).(New to backtrader and python so anything stated above can be challenged freely.)
Thanks a lot,
-
Backtrader website search box not working
Hi,
I am aware that this is probably a Google Chrome security setting, but how do I get the backtrader search box on the top of the website working?
-- When i type something in, and try to click into one of the relevant results, nothing happens.
-- If i type in a search term and hit enter or press search, nothing happens either.I enabled popups from backtrader, which fixed this issue for the community.backtrader.com and searches there, but not for the backtrader.com general site.
Thanks in advance!
-
Cerebro not recognizing code changes
Two questions -
How does one user-interrupt a backtrader cerebro engine from running? Looked into Runstop() but the intention is to keep the engine always running except if there is an exceptional market or other event which needs manual user interference, so runstop does not work for this purpose.
Separately, right now I am restarting spyder every time I have made code changes because otherwise cerebro keeps running the earlier unchanged version - is there an easier way to get cerebro to take the changes?
Thanks a lot,