Help needed to convert my system to Nt7...! - NinjaTrader Programming | futures io social day trading
futures io futures trading


Help needed to convert my system to Nt7...!
Updated: Views / Replies:10,018 / 77
Created: by linkon7 Attachments:34

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
 34  
 
Thread Tools Search this Thread
 

Help needed to convert my system to Nt7...!

  #11 (permalink)
Urban Samurai
Chicago IL
 
Futures Experience: Intermediate
Platform: Ninja, MT4,TOS, SC, Matlab
Broker/Data: CQG, AMP, MB, DTN
Favorite Futures: E/U, G/U
 
forrestang's Avatar
 
Posts: 1,039 since Jun 2010
Thanks: 226 given, 688 received

Let me ask you.....

Can you replicate everything you need on the chart with everything in NT7? By that I mean, if you had to place all the indicators on the chart you need, would you have all of them?

One thing, working on the oscillator now, and it references an 'AMA', which is amibroker's 'AdaptiveMovingAverage.'

In NT7, there is a MAMA which is the Mesa-AdaptiveMovingAverage. It's probably not exactly the same as the one used in AmiBroker as part of the calculations for your oscillator. So I want to use something similar to what is being used for that calculation in Amibroker.

Can you add say the AMA from amibroker to a 5 minute TF chart, and post back here a picture of it so I can see what it looks like and see if we can use this MESA that comes with NT7. If not we'll have to find an alternative.

Reply With Quote
The following user says Thank You to forrestang for this post:
 
  #12 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,240 since Jun 2009
Thanks: 29,357 given, 83,238 received

Here is an Adaptive MA, originally for 6.5, may need minor changes for 7.

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Attached Files
Register to download File Type: cs AdaptiveMA.cs (6.1 KB, 13 views)
Reply With Quote
The following 3 users say Thank You to Big Mike for this post:
 
  #13 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,240 since Jun 2009
Thanks: 29,357 given, 83,238 received


Here is another one.

You'll need to get the source from the Amibroker one to compare.

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Attached Files
Register to download File Type: cs AdvancedAMA_v1.cs (13.7 KB, 17 views)
Reply With Quote
The following 2 users say Thank You to Big Mike for this post:
 
  #14 (permalink)
Urban Samurai
Chicago IL
 
Futures Experience: Intermediate
Platform: Ninja, MT4,TOS, SC, Matlab
Broker/Data: CQG, AMP, MB, DTN
Favorite Futures: E/U, G/U
 
forrestang's Avatar
 
Posts: 1,039 since Jun 2010
Thanks: 226 given, 688 received

Thanks @Big Mike.

I was looking into that yesterday, i.e. the SCRIPT from ami. I was contemplating just adding it to the script for Linkon7s oscillator since it was pretty simple, but figured I'd wait till he showed up again.

Reply With Quote
The following user says Thank You to forrestang for this post:
 
  #15 (permalink)
Trading for Fun
India
 
Futures Experience: Intermediate
Platform: Amibroker
 
linkon7's Avatar
 
Posts: 73 since Sep 2010
Thanks: 52 given, 60 received


forrestang View Post
Let me ask you.....

Can you replicate everything you need on the chart with everything in NT7? By that I mean, if you had to place all the indicators on the chart you need, would you have all of them?

One thing, working on the oscillator now, and it references an 'AMA', which is amibroker's 'AdaptiveMovingAverage.'

In NT7, there is a MAMA which is the Mesa-AdaptiveMovingAverage. It's probably not exactly the same as the one used in AmiBroker as part of the calculations for your oscillator. So I want to use something similar to what is being used for that calculation in Amibroker.

Can you add say the AMA from amibroker to a 5 minute TF chart, and post back here a picture of it so I can see what it looks like and see if we can use this MESA that comes with NT7. If not we'll have to find an alternative.

I am not a coder, so most of my work is just self taught coding that is mostly a cut-paste job. That oscilator is not all that important now, as i have seen adaptive CCI work very well on nt7 and that will serve the same purpose.

 
Code
Plot(C,"close",colorGrey40,styleBar);

fast = 2/(2+1);
slow = 2/(30+1);
dir=abs(Close-Ref(Close,-10));
vol=Sum(abs(Close-Ref(Close,-1)),10);
ER=dir/vol;
sc =( ER*(fast-slow)+slow)^2; 

Plot(AMA( Close, sc ),"AMA",colorRed,styleThick);


this code will plot a chart that looks like this...

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

hosting images


output = AMA( input, factor )

is equivalent to the following looping code:

for( i = 1; i < BarCount; i++ )
{
output[ i ] = factor[ i ] * input[ i ] + ( 1 - factor[ i ] ) * output[ i - 1 ];
}

I hope this helps a bit. And again, thanks for ur effort...!

Reply With Quote
 
  #16 (permalink)
Urban Samurai
Chicago IL
 
Futures Experience: Intermediate
Platform: Ninja, MT4,TOS, SC, Matlab
Broker/Data: CQG, AMP, MB, DTN
Favorite Futures: E/U, G/U
 
forrestang's Avatar
 
Posts: 1,039 since Jun 2010
Thanks: 226 given, 688 received

Still haven't forgotten about this. Just haven't been around much on the weekedays.

@Big Mike....

In the following AmiBroker code:

Quoting 
fast = 2/(2+1);
slow = 2/(30+1);
dir=abs(Close-Ref(Close,-10));
vol=Sum(abs(Close-Ref(Close,-1)),10);
ER=dir/vol;
sc =( ER*(fast-slow)+slow)^2;

Plot(AMA( Close, sc ),"AMA",colorRed,styleThick);

In the 3rd and 4th line, there is a reference to the absolute value and the sum. And this question is just about the language, do you know what the 'Ref' in ami-broker is used for?

Like if you converted those 3rd and 4th lines into plain English, what is it saying?

Is the 3rd line saying, "Assign to 'dir', the absolute value of the Current Closing bar's price MINUS the closing price 10 bars ago?"

Reply With Quote
The following user says Thank You to forrestang for this post:
 
  #17 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,240 since Jun 2009
Thanks: 29,357 given, 83,238 received

Just used to reference an array, in this case the Closing price of x bars.

AmiBroker Formula Language Function Reference

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
The following user says Thank You to Big Mike for this post:
 
  #18 (permalink)
Urban Samurai
Chicago IL
 
Futures Experience: Intermediate
Platform: Ninja, MT4,TOS, SC, Matlab
Broker/Data: CQG, AMP, MB, DTN
Favorite Futures: E/U, G/U
 
forrestang's Avatar
 
Posts: 1,039 since Jun 2010
Thanks: 226 given, 688 received

@Big Mike
Just a point of clarity.....

So the ref function in ami, says that "ref(CLOSE, -10) returns the closing price 10 periods ago. In NT7 this would just be:
 
Code
Close[10]
Then they say that the 10-day rate-of-change is "CLOSE - ref(CLOSE, -10)" In NT7 this would be:
 
Code
Close[0] - Close[10]

Reply With Quote
The following user says Thank You to forrestang for this post:
 
  #19 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,240 since Jun 2009
Thanks: 29,357 given, 83,238 received

Sounds right. I don't use Amibroker, so not 100%.

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
The following user says Thank You to Big Mike for this post:
 
  #20 (permalink)
Trading for Fun
India
 
Futures Experience: Intermediate
Platform: Amibroker
 
linkon7's Avatar
 
Posts: 73 since Sep 2010
Thanks: 52 given, 60 received



forrestang View Post
Still haven't forgotten about this. Just haven't been around much on the weekedays.

@Big Mike....

In the following AmiBroker code:


In the 3rd and 4th line, there is a reference to the absolute value and the sum. And this question is just about the language, do you know what the 'Ref' in ami-broker is used for?

Like if you converted those 3rd and 4th lines into plain English, what is it saying?

Is the 3rd line saying, "Assign to 'dir', the absolute value of the Current Closing bar's price MINUS the closing price 10 bars ago?"

dir=abs(Close-Ref(Close,-10));

dir = absolute value of ( close - value of close 10 bars ago)



vol=Sum(abs(Close-Ref(Close,-1)),10);

vol = sum of last 10 bars of data of dir, means we add the last 10 value of dir


i hope it helps...!

Reply With Quote

Reply



futures io > > > > > Help needed to convert my system to Nt7...!

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
Convert PriceSwing Indicator to Strategy marcelo_s NinjaTrader Programming 28 September 12th, 2013 07:10 PM
Can anyone convert a code from TOS j8fire ThinkOrSwim 8 July 18th, 2012 09:24 PM
Anybody can convert this indicator from NT7 to SierraChart (MACDVOL) redpilot Sierra Chart Programming 3 February 25th, 2011 08:47 PM
NT7 Strategy/Strategies Needed Slipknot511 NinjaTrader Programming 8 August 22nd, 2010 02:39 AM


All times are GMT -4. The time now is 04:07 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-18 in 0.15 seconds with 20 queries on phoenix via your IP 54.221.136.62