NexusFi: Find Your Edge


Home Menu

 





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


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one forrestang with 41 posts (34 thanks)
    2. looks_two linkon7 with 31 posts (13 thanks)
    3. looks_3 Big Mike with 4 posts (7 thanks)
    4. looks_4 dar17 with 2 posts (1 thanks)
      Best Posters
    1. looks_one Big Mike with 1.8 thanks per post
    2. looks_two forrestang with 0.8 thanks per post
    3. looks_3 dar17 with 0.5 thanks per post
    4. looks_4 linkon7 with 0.4 thanks per post
    1. trending_up 45,582 views
    2. thumb_up 55 thanks given
    3. group 11 followers
    1. forum 77 posts
    2. attach_file 33 attachments




 
Search this Thread

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

  #11 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047

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
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Exit Strategy
NinjaTrader
REcommedations for programming help
Sierra Chart
NexusFi Journal Challenge - May 2024
Feedback and Announcements
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
48 thanks
Just another trading journal: PA, Wyckoff & Trends
31 thanks
Bigger Wins or Fewer Losses?
24 thanks
Tao te Trade: way of the WLD
24 thanks
GFIs1 1 DAX trade per day journal
22 thanks
  #12 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,446 since Jun 2009
Thanks Given: 33,217
Thanks Received: 101,610

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

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Attached Files
Elite Membership required to download: AdaptiveMA.cs
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #13 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,446 since Jun 2009
Thanks Given: 33,217
Thanks Received: 101,610


Here is another one.

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

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Attached Files
Elite Membership required to download: AdvancedAMA_v1.cs
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #14 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047

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
Thanked by:
  #15 (permalink)
linkon7
India
 
Posts: 73 since Sep 2010
Thanks Given: 52
Thanks Received: 60


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...

[IMG]http://s3.postimage.org/a2u0nh2l1/image.png[/IMG]
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)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047

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
Thanked by:
  #17 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,446 since Jun 2009
Thanks Given: 33,217
Thanks Received: 101,610

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

AmiBroker Formula Language Function Reference

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #18 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047

@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
Thanked by:
  #19 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,446 since Jun 2009
Thanks Given: 33,217
Thanks Received: 101,610

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

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #20 (permalink)
linkon7
India
 
Posts: 73 since Sep 2010
Thanks Given: 52
Thanks Received: 60



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




Last Updated on December 9, 2011


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts