Alerts based on Hull Moving Avg direction - ThinkOrSwim | futures io social day trading
futures io futures trading


Alerts based on Hull Moving Avg direction
Updated: Views / Replies:5,258 / 8
Created: by eddieo Attachments:0

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 100,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

Alerts based on Hull Moving Avg direction

  #1 (permalink)
New York, NY
 
 
Posts: 4 since Feb 2015
Thanks: 1 given, 0 received

Alerts based on Hull Moving Avg direction

Hi,
I'm interested in triggering an alert in T.O.S. when the Hull Moving Average direction switches from Up to Down or vice versa.

The standard tools within Alerts allow you to trigger based on values being met or crossed, but not on the direction of the average.

Is anyone aware of how to set this up using Thinkscript or any other means?

Thanks,

EddieO

Reply With Quote
 
  #2 (permalink)
New York, NY
 
 
Posts: 4 since Feb 2015
Thanks: 1 given, 0 received

Following up on this one?

If anyone has ideas, would be much appreciated!

Reply With Quote
 
  #3 (permalink)
Puerto Rico
 
Trading Experience: Intermediate
Platform: thinkorswim
Broker/Data: TD Ameritrade
Favorite Futures: ES
 
rmejia's Avatar
 
Posts: 377 since Oct 2010
Thanks: 3,599 given, 431 received



eddieo View Post
If anyone has ideas, would be much appreciated!

 
Code
    
    #Hull Moving Average

input price = close;
input length = 20;
input displace = 0;

plot HMA = MovingAverage(AverageType.HULL, price, length)[-displace];

HMA.DefineColor("Up", GetColor(1));
HMA.DefineColor("Down", GetColor(0));
HMA.AssignValueColor(if HMA > HMA[1] then HMA.color("Up") else HMA.color("Down"));


    #Alert
Alert(HMA > HMA[1] and HMA[1] < HMA[2], "Up", Alert.BAR, Sound.Bell);
Alert(HMA < HMA[1] and HMA[1] > HMA[2], "Down", Alert.BAR, Sound.Bell);

Reply With Quote
The following 4 users say Thank You to rmejia for this post:
 
  #4 (permalink)
New York, NY
 
 
Posts: 4 since Feb 2015
Thanks: 1 given, 0 received

Thank you!

Thank you rmejia! This is fantastic.

Reply With Quote
 
  #5 (permalink)
Sioux Falls
 
 
Posts: 1 since Jan 2016
Thanks: 0 given, 0 received

Hello, thanks for this, its exactly what I'm looking for as well (if I could just get it working haha). So I've created the study and added the thinkscript, however, it doesnt seem to be working....I purely copied and pasted the code....what should the "trigger if" condition be? I'm thinking that's where my problem may lie, but still not sure. Any help getting this working would be much appreciated. Thanks!

Reply With Quote
 
  #6 (permalink)
Puerto Rico
 
Trading Experience: Intermediate
Platform: thinkorswim
Broker/Data: TD Ameritrade
Favorite Futures: ES
 
rmejia's Avatar
 
Posts: 377 since Oct 2010
Thanks: 3,599 given, 431 received

The trigger is a change in direction for the hull line. When it changes from up to down (color change) a sound and notification should trigger in thinkorswim.

Reply With Quote
 
  #7 (permalink)
Tilburg
 
 
Posts: 2 since Oct 2017
Thanks: 0 given, 0 received

dot or arrow

Hi, this indicator is just what I needed!

Sorry for digging up an older post but I would like to ask for an addition.

Is it possible to add code so that there is a visual on change of direction?

Like an arrow or dot underneath or above the change of direction.

Thanks in advance!

Regards,

Patrick

Reply With Quote
 
  #8 (permalink)
Adrian
 
Trading Experience: Master
Platform: TOS and Ninjatrader
Favorite Futures: SPY
 
Posts: 14 since Aug 2015
Thanks: 0 given, 7 received

Hull moving average as a scan

How can I set up a scan to scan stocks that have just crossed over on a daily time period?

Reply With Quote
 
  #9 (permalink)
fort smith
 
 
Posts: 1 since Feb 2019
Thanks: 0 given, 0 received

trigger


rmejia View Post
The trigger is a change in direction for the hull line. When it changes from up to down (color change) a sound and notification should trigger in thinkorswim.


Thank you for this code. I have the same problem though on the trigger. I clicked on study alert and then copied the code in scripteditor but right beneath that is a section that says "trigger if:" and a drop down box for at, below, above, etc for a specific price. There is no way that I can see to eliminate this requirement so every time I set the alert it essentially becomes a price alert. What am I missing? thank you so much for your help.

Reply With Quote

Reply



futures io > > > > Alerts based on Hull Moving Avg direction

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)
 

futures io is celebrating 10-years w/ over $18,000 in prizes!

Right now
 

$250 Amazon Gift Cards with our "Thanks Contest" challenge!

Right now
 

Show us your trading desks and win over $5,000 in prizes w/Jigsaw Trading

September
 

Webinar: The Best Entries and Exits in trading & in life w/Agustin Lebron

Elite only
 

Webinar: NinjaTrader 8 Newest Features Release Sneak Peek

Sep 26
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trend Strength Indicator based on Moving Avg Exp mohi4u NinjaTrader 0 November 1st, 2012 05:37 PM
Hull Moving Average for Ninja, any help? Thanks hector24 NinjaTrader 6 October 26th, 2011 09:16 AM
Simple Hull Avg... Serger Elite EasyLanguage Automated Trading 3 September 2nd, 2011 09:39 AM
basic color coding according to direction of a moving average stephenszpak NinjaTrader Programming 7 May 29th, 2011 09:49 PM
Moving Avg of Indicator ceramictilepro NinjaTrader Programming 6 February 1st, 2011 09:09 PM


All times are GMT -4. The time now is 05:53 AM. (this page content is cached, log in for real-time version)

Copyright © 2019 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts