- ago
Is it possible to have a "live" strategy run? I have noticed that the shortest interval is 1 minute so there is a chance that we may miss a signal that happens between 1 minute of the two strategy running times.

I am new to wealth-lab and I am still learning....
0
555
8 Replies

Reply

Bookmark

Sort
- ago
#1
Say you want the strategy to trigger on a SMA crossover within 1-minute bar. The price goes up at HH:mm:10 seconds, a signal gets triggered, then on HH:mm:30 the price declines sharply. The crossover falls through, there's no signal anymore by the end of the minute. But your strategy has purchased.

To run a strategy continuously you can press the Stream button on a chart. To "not miss" an intra-bar signal you can lower the bar scale of your choice.
0
Glitch8
 ( 11.81% )
- ago
#2
The best way to capture a trade mid-bar is to use a limit or stop order.
0
- ago
#3
I see it should not be an issue if we want to purchase a single stock. Limit order should work as long as our strategies have determined a good price to open a position. However, my strategy usually deals with a pair of stocks. I can't set limit orders for both of them. When the difference between the two stocks are good and meet my criteria, I will need to immediately short and long the two stocks at the same time using market orders ...
0
- ago
#4
Intra-bar market orders are impossible. It works like this:
1. A complete bar updates (can be 1-minute, 1-day, etc.).
2. Your strategy executes over all the bars in the chart and determines if it wants to trade on the next bar.
2.1. If it doesn't, you don't do anything.
2.2. If it does, you place orders for the next bar and they're worked by your broker. (Process complete).
0
Glitch8
 ( 11.81% )
- ago
#5
The only thing I’d add is that it’s *currently* impossible. I could envision a new method to override that responds to incoming streaming ticks. This would push WL beyond what’s it’s ever been capable of, but it’s not impossible.
0
- ago
#6
Normally day trader like me cannot wait a minute. It is exhausted to track the stocks every single second but it seems to be the way to make some profit for me. As an example, Tradingview has this feature with its indicators. Whenever the live streaming stock data move, the indicator lines move as well. And whenever the indicator lines meet the criteria, its trigger the alert (but oh no.. it does not have an auto trade feature to help me place an order at this time). There is no strategy run time definition that I found at tradingview. Just like it runs continuously all the time along with the live stock streaming data. I understand it is not fair at some point for WL in this comparison because tradingview normally deals with just couple of stocks in a single chart while WL may has to deal with a strategy that may have 100 of stocks. I can't imagine how it is feasible to mirror 100 of live streaming data stock into a possible sophisticated strategy continuously. My laptop CPU (i7-4 cores) fan already sounds loud when it does streaming for more than 10 stocks (Perhaps its time to consider an ADM 8 cores CPU)

I appreciate all of your information and you take your time to respond to my questions. Hopefully WL will have this ability in future.
0
- ago
#7
Re: my Post #2/ Do you have a plan for intra-bar signal already issued getting canceled after a tick update a few moments later?
0
- ago
#8
Not sure if I fully understand your question but I allow some variances in my strategy in term of signal. Let's say when it is determined the difference of $1 between ACB and CRON is good enough for my pair trading strategy to open positions, for instance, I would short ACB (the higher stock) and long CRON ( the lower stock) immediately using market orders. One of the challenges in my strategy is in this step of the process. I can't place limit orders based on a value difference condition between the two stocks because both of them are changing over the time. Back to your question, if somehow the criteria, which is the stock value difference, move to $1.10 and then back $0.9 , for instance, it is okay for my strategy to open the two potions at the time the stock value difference of $1.00. 10 cent is not too big for me to cut loss. Only the time that the difference between the two is $1.00 is very important in my strategy. The two potions need to be opened right away. If that moment happens between the 1 minute interval of the strategy run time, I will most likely miss the opportunity. However, it is not okay for me to place market orders at a point of time without knowing exactly the stock value difference between the two stocks. For instance, at bar = 3, my criteria is met. When I place market orders at bar =4, it is not sure if the criteria is still met. Lots of thing happen in 1 minute in the stock market. Especially if your entry is precisely determined correctly, it will quickly move to a direction that is unfavorable to open potions in 1 minute later.
0

Reply

Bookmark

Sort