Strategies are for backtesting only. There is no automated trading available on the ToS platformI have a fundamental question. Do these buy/sell trades automatically execute when the strategy is loaded on the chart?
what stop loss you use for thisLong time lurker, first time poster.
*I came across this "EZ Trend" indicator a couple months back that was put together by @BenTen * I've turned your indicator into a strategy and I'm very grateful for your work!
- Let me start off by saying that I consider this an aggressive scalping strategy. It suits me very well, but maybe not others. I'm using this strategy on a 5-tick range bar chart, and sometimes it's even too aggressive for me as the bars can form faster than you can react, so you may have to switch to a 7-tick or 10-tick range chart depending on price action.
- I have slightly modified the original indicator. The original indicator plotted the difference of I believe an 8-period EMA and a 13-period EMA. I've experimented with many different types of MA's for this strategy, but eventually ended up back at the EMA, but using the difference of 13-EMA and the 21-EMA.
- There is NO REPAINTING. The only time you will see what could be considered repainting is when the Data line of the indicator is hovering on the zero line, and even then, you'll only have one or two candles at most that could flicker back and forth between green and red.
- It has alerts.
- The code and chart I'm sharing is catered towards Gold Futures (/GC). It may or may not backtest well on other commodities or equities. Play around. Experiment.
- Lastly: Open up the strategy settings and turn off the plots for it to display properly.
Strategy:
Code:# EZ Trend & Momentum strategy # Assembled by BenTen at useThinkScript.com # Converted from https://www.tradingview.com/script/IzvxaVhB-ROMI2/ def s2 = MovAvgExponential(close, 13) - MovAvgExponential(close, 21); plot line = s2; plot ZeroLine = 0; line.AssignValueColor(if s2 <= 0 then Color.RED else Color.GREEN); AssignPriceColor(if s2 <= 0 then Color.RED else Color.GREEN); Alert(s2 crosses above ZeroLine, "Cross above 0", Alert.BAR, Sound.Ring); Alert(s2 crosses below ZeroLine, "Cross below 0", Alert.BAR, Sound.Bell); AddOrder(OrderType.BUY_AUTO, s2 crosses above ZeroLine, tickcolor = GetColor(1), arrowcolor = GetColor(1), name = "LE"); AddOrder(OrderType.SELL_AUTO, s2 crosses below ZeroLine, tickcolor = GetColor(2), arrowcolor = GetColor(2), name = "SE");
Lower indicator:
Code:# EZ Trend & Momentum # Assembled by BenTen at useThinkScript.com # Converted from https://www.tradingview.com/script/IzvxaVhB-ROMI2/ declare lower; def s2 = MovAvgExponential(close, 13) - MovAvgExponential(close, 21); plot line = s2; plot ZeroLine = 0; line.AssignValueColor(if s2 <= 0 then Color.RED else Color.GREEN); AssignPriceColor(if s2 <= 0 then Color.RED else Color.GREEN);
Chart link:
https://tos.mx/BxWTASl
Did you know that clicking on a member's name will allow you to see when a member was last seen on the uTS forum?what stop loss you use for this
i was just trying my luck as I trade only gold future and i see this strategy has potentialDid you know that clicking on a member's name will allow you to see when a member was last seen on the uTS forum?
@uawgmsmco has not been seen in a while.
His post makes no mention of a stop-loss.
I imported this into strategies, turned off plots and it is showing as a straight line. Any suggestions?View attachment 1683
@BenTen is the strategy buying and selling 500 contracts?
Code:AddOrder(OrderType.BUY_AUTO, s2 crosses above ZeroLine, tickcolor = GetColor(1), arrowcolor = GetColor(1), name = "LE"); AddOrder(OrderType.SELL_AUTO, s2 crosses below ZeroLine, tickcolor = GetColor(2), arrowcolor = GetColor(2), name = "SE");
I got the code here, so if i want to change the 500 contracts to lets say 1 what do I do? (i tried entering a ",1" but it ruined the entire thing)
Hi,Bro Do you have E2-Trend scalping for Gold version update 2024, Give me indicators or script please.@bcnhill Sorry it's taken so long to reply! As far as resources, you can find plenty of videos on YouTube that would explain exactly how Range bars are formed. They're my preferred type of candle because they omit time as a factor in the creation of the bars. Strictly price action baby! They're similar to Renko bars, yet have distinct and important differences.
No there are no new updates to this indicatorHi,Bro Do you have E2-Trend scalping for Gold version update 2024, Give me indicators or script please.
Join useThinkScript to post your question to a community of 21,000+ developers and traders.
Start a new thread and receive assistance from our community.
useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.
We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.
If you are new, or just looking for guidance, here are some helpful links to get you started.