Classical Momentum indicator variation - EL study question - EasyLanguage Programming | futures io social day trading
futures io futures trading


Classical Momentum indicator variation - EL study question
Updated: Views / Replies:2,295 / 3
Created: by Laurus12 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
 

Classical Momentum indicator variation - EL study question

  #1 (permalink)
Elite Member
Norway
 
Futures Experience: Advanced
Platform: MultiCharts, CQG, NinjaTrader
Broker/Data: CQG, DTN IQFeed
Favorite Futures: EURO
 
Laurus12's Avatar
 
Posts: 376 since Nov 2010
Thanks: 557 given, 349 received

Classical Momentum indicator variation - EL study question

I am wondering if someone could give me some help with this experimental "project". I am reading the "Getting Started with EasyLanguage for TradeStation", but even if it seems like that it has been written in a easy understandable way I do not get it as easy as I would like to.

What I am trying to do is to use the classical Momentum indicator as foundation to produce two different values from two different functions which I then would like to come out as one value on the charts. The goal is to make it have more sensitive and larger oscillations to see if it can be better in showing divergences than the classical one.

The first function is thought as a 8 period momentum study of the Momentum indicator, and the second as a short 5 period, 5 period smoothed Momentum. If these numbers will be any good I do not know, but they are set as a starter.

In the indicator this would be "Plot1(_MOMENTUMMom+_MOMENTUMSmo,"Momentum X") ;" where the "...Mom" is the momentum function study and the "...Smo" the short period smoothed function study.

The _MOMENTUMMom is basically set up as:
MOM = (Momentum(CLOSE,12)8 Bars Ago) ;

The _MOMENTUMSmo is basically set up as:
SMO = (Momentum(CLOSE,5)5 Bars Ago) ;

As you see the way it is now it will not plot. After what I have understood the momentum and smoothing studies "Bars Ago" parts of the functions are also wrong.

Thanks,
Laurus

“If you wish to see the truth, then hold no opinions for or against anything.” - Hsin Hsin Ming
Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Trading Apprentice
St. Petersburg, Russia
 
Futures Experience: Advanced
Platform: Multicharts
Favorite Futures: spot fx, currency futures, GC, ES
 
Posts: 30 since Nov 2010
Thanks: 6 given, 17 received


I think you misunderstand a bit how EL is operating with historical data. This misunderstanding comes from the hidden use of types in EL, without mandatory explicit declarations. In fact, EL has 3 types of variables: simple, series and reference. A simple variable can be declared only in the input for a function. A series variable is what is created with "var:" statement. It's an array without a fixed size and it does not require to always use [] to access its elements. Thus, standard variables as close, high, low, time, date, etc., are all series. And reference variables are also used in functions, they serve to return more than 1 value from a function.

Now closer to your issue. You try to get a value of a function N bars ago. It cannot be done with a function itself, as function is not variable. So, you may want to write something like this:

 
Code
var: mom;

value1 = momentum(close, 12);
mom = value1 8 bars ago;
The last line can be replaced with simply

 
Code
mom = value1[8];
Now, as you mentioned smoothing the momentum, I believe you mean some moving averages over it, so let's assume you want to use SMA:

 
Code
var: mom_smoothed;

value1 = momentum(close, 5);
mom_smoothed = average(value1, 5);
This will give you a 5-period momentum smoothed with a 5-period SMA.

Hope I got your issue right. If this is not the answer to your question, please feel free to ask.

Reply With Quote
The following 2 users say Thank You to Doctor Leo for this post:
 
  #4 (permalink)
Elite Member
Norway
 
Futures Experience: Advanced
Platform: MultiCharts, CQG, NinjaTrader
Broker/Data: CQG, DTN IQFeed
Favorite Futures: EURO
 
Laurus12's Avatar
 
Posts: 376 since Nov 2010
Thanks: 557 given, 349 received

Leo - Have sent you a PM

Just sent you a PM Leo.

Laurus

“If you wish to see the truth, then hold no opinions for or against anything.” - Hsin Hsin Ming
Reply With Quote

Reply



futures io > > > > > Classical Momentum indicator variation - EL study question

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
"Better Momentum Indicator" for NT7 crimmins NinjaTrader 20 January 28th, 2015 09:12 PM
Momentum Stop Indicator cory NinjaTrader 39 February 18th, 2013 09:05 AM
A Momentum Indicator Created By Price Range George The Elite Circle 5 January 12th, 2011 07:15 PM
help needed: volume momentum indicator using gomi's framework chipotlebop NinjaTrader Programming 4 October 18th, 2010 04:35 AM
is there better momentum indicator for ninjatrader 6.5 would love to find this one anniebee321 The Elite Circle 11 May 24th, 2010 02:11 AM


All times are GMT -4. The time now is 11:45 PM.

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-15 in 0.10 seconds with 19 queries on phoenix via your IP 54.163.210.170