Quick defining of variable question HMA - ThinkOrSwim Programming | futures io social day trading
futures io futures trading


Quick defining of variable question HMA
Updated: Views / Replies:465 / 0
Created: by eclipsemf 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 90,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
 

Quick defining of variable question HMA

  #1 (permalink)
Elite Member
Manchester NH
 
Futures Experience: Intermediate
Platform: Thinkorswim
Broker/Data: TD Ameritrade
Favorite Futures: /ES
 
Posts: 87 since Feb 2014
Thanks: 29 given, 55 received

Quick defining of variable question HMA

I got it all figured out! The second I posted this I I figured it out, I had a brain fart, ill leave it up for other people to use if they wish, its is still not perfect and rings when ever its seems to want but it is getting closer ill keep it updated as I work on it

I'm setting up an indicator to work off of sounds alerts for easy use. My only problem I am having trouble defining a variable for it and not sure where to go with it. Here's what I have so far and I have made this work on other indicators but this is an upper indicator so I'm not sure if it will work the same. There area in red is what I need help with defining the change from when HMA > HMA[1] changes to HMA < HMA[1]. Thanks for the help

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"));

def SELL = HMA < HMA[1] ;
def BUY = HMA > HMA[1] ;

alert(SELL, "SELL", Alert.BAR, Sound.Ding);
alert(BUY, "BUY", Alert.BAR, Sound.Ring);


Last edited by eclipsemf; May 1st, 2014 at 01:22 PM.
Reply With Quote

Reply



futures io > > > > > Quick defining of variable question HMA

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Quick question - Daily Open damnpenguins EasyLanguage Programming 4 March 5th, 2014 05:39 PM
Quick Question From Non-NinjaTrader User furytrader NinjaTrader 3 October 8th, 2013 02:05 PM
Quick ninjascript error and question. jtradr NinjaTrader Programming 2 February 16th, 2011 09:25 PM
Quick COBC NinjaTrader Question Fat Tails NinjaTrader Programming 6 December 6th, 2010 01:29 PM
Quick ADXVMA question... BigDog Traders Hideout 6 December 3rd, 2009 10:07 AM


All times are GMT -4. The time now is 07:13 AM.

Copyright © 2017 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
Page generated 2017-12-18 in 0.07 seconds with 19 queries on phoenix via your IP 54.163.209.109