Breakout strategy indicator and alert


0
0

Hi Pete,

I need help with creating a script that shows a Candle closes above previous high level, indicated by an up arrow on the bottom of the candle. And i also want to be notify with an alert sound- ring.

You’re the best Thanks.

Attachments:
Marked as spam
Posted by (Questions: 2, Answers: 3)
Asked on June 22, 2020 10:54 am
257 views
0
Private answer

Pretty sure this has already been published here on this site:

https://www.hahn-tech.com/thinkorswim-alert-high-low-version-two/

Edit: The request does not fit the solution I provided in the link above because the that code merely tracks new intraday high whereas the request is for a close above the previous intraday high. So I am providing a section of code to plot arrows for each bar that closes above the previous intraday high. I have included an alert that will only trigger AFTER that bar has fully closed.

def newDay = GetDay() <> GetDay()[1];
rec trackHigh = if newDay then high else if high > trackHigh[1] then high else trackHigh[1];
plot signal = close > trackHigh[1];
signal.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
Alert(signal[1], "Close at New High", Alert.BAR, Sound.RING);

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on June 22, 2020 12:33 pm
0
Hi pete, I want a chart study with arrows and alert that tells me the candle actually close above previous intraday high, i couldnt tell when it closes above the previous intraday high by .01.
( at June 22, 2020 1:53 pm)
0
If you need something other than what was already published you can submit it as a custom project request. The modifications would take more time than I permit for free solutions in the Q&A forum.
( at June 22, 2020 2:27 pm)
0
Is there anything in the forum, that indicates candle close at high of day with arrow and alert? Thanks.
( at June 22, 2020 5:02 pm)
0
I have updated my answer to provide some code that accomplished what you have requested.
( at June 22, 2020 5:27 pm)
0
Pete, I have one more question, is it possible to exclude extended hours and just alert for market hours? Thanks.
( at June 29, 2020 10:23 pm)
0
Yes, the simplest method to do that is to uncheck the box for extended hours.
( at June 30, 2020 8:56 am)