- Messages
- 549
- Likes
- 2
Just a quick tip on something that I have found useful recently.
Many of the standard explorations jsut give buy and sell signals for today. That's fine as far as it goes but if you want to watch a stock for a couple of days after the signal occurs then hwo can you do this?
Well, there are several ways:
the alert() function takes a formula as as its first parameter and a number of days as its second.
eg. alert(hangingman(),5) gives a list of hanging man candles that occured in the last week.
Another way is to use the barssince() function. If you code this around a formula then you get a history with each stock showing the last time the formula was true:
eg. barssince(gapup() or gapdown()) tells you when the last gap took place.
Darth.
Many of the standard explorations jsut give buy and sell signals for today. That's fine as far as it goes but if you want to watch a stock for a couple of days after the signal occurs then hwo can you do this?
Well, there are several ways:
the alert() function takes a formula as as its first parameter and a number of days as its second.
eg. alert(hangingman(),5) gives a list of hanging man candles that occured in the last week.
Another way is to use the barssince() function. If you code this around a formula then you get a history with each stock showing the last time the formula was true:
eg. barssince(gapup() or gapdown()) tells you when the last gap took place.
Darth.