I have some difficulties with setting up the alert of Donchian Long Entry. I use the strategy from www.thetatrend.com/donchian-channel-breakout-strategy-thinkscript/ and I need to setup the alert to pop up every time when Long Entry appears on the chart, but in TOS there is only: 1)Once, and then become disabled; 2)Repeatedly for each Tick; 3)Repeatedly for each Bar.
Donchian Channel Thinkscript Strategy Long Entry:
#Donchian Channel Long Entry Thinkscript Strategy #Written by ThetaTrend.com – Actionable Trend Following Trading with Options #Feel free to share the code, but please include a link back to ThetaTrend.com input length = 50; def upperBand = Highest(high, length); def lowerBand = Lowest(low, length); AddOrder(OrderType.BUY_AUTO, high > Highest(high, length), Highest(high, length));
Donchian Channel Long Exit Thinkscript Strategy:
<code>#Donchian Channel Long Exit Thinkscript Strategy
#Written by ThetaTrend.com – Actionable Trend Following Trading with Options
#Feel free to share the code, but please include a link back to ThetaTrend.com
input length = 25; #Number of days for Trailing Donchian Breakdown
input ATRlength = 20; #Number of days for ATR Calculation
input ATRMeasure = 3; #ATR stop value, 3 is for 3 times the daily ATR
def entryP = EntryPrice();
def stopValue = ATRMeasure * (AverageTrueRange(ATRlength));
def stopOut = entryP – stopValue;
#Determine if the stop was hit
def peaceout = if ((low <= stopOut) or (low < Lowest(low, length))) then 1 else 0;
#Determine the exit price
def chickendinner = if (low <= stopOut) then (stopOut) else (Lowest(low, length));
AddOrder(OrderType.SELL_TO_CLOSE, peaceout, chickendinner, tickcolor = GetColor(7), arrowcolor = GetColor(7));</code>
Marked as spam
Also I would like to know if it’s possible to use study MACDHistogramCrossover on the watchlist with the pop-up alert window?
Thanks in advance for everything you do for us.
Yes, we should be able to do these. But please post each of those ideas as separate questions in the Watch List topic: https://www.hahn-tech.com/ans/cat/watchlists/
Please log in to post questions.