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:9,983 / 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...!

  #21 (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
@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]

CLOSE - ref(CLOSE, -10)

ref(close,-10) simply means the value of close 10 bars ago...!

Reply With Quote
 
  #22 (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

@linkon7

Part I:
Before this weekend gets here, can you open both your ami platform, and your NT7 platform. I would do it but I don't have amibroker. Open say a 5 min chart of any instrument on both of them.

On your amibroker, add the simple AMA to the chart.

On NT, try the MESA AMA that ships with NT7 on your chart. Make sure to apply the same settings on NT7s AMA as the one on your amibroker.

What you want to find is an AMA in NT7 that matches the one in Amibroker. You'll notice the ones in NT7 have two lines and not just one. If one of them matches the one in amibroker that is fine, just take note of which one matches. We'll use that one to create your ocillator panel.

Part II:
As for the things on the price panel. What would be helpful is if you could just draw a picture of what you want to see on there. I see you where using the boilinger bands, in concert with accl bands. And you mentioned how when the BBand moves outside of the accl band, you like to see the color change of that.

So.... what would work, is if you could just open up an empty chart in NT7, and add the indicators to the price panel that you would use. So you would add a Boilinger Band, an accl band, and some other things. Then just say in words, "Ok, when this moves beyond this, do this, etc..." And we should be able to write the script for that.

Let me know if any of that doesn't make sense. Or if you need clarification or something maybe I can catch you on skype.

Reply With Quote
The following user says Thank You to forrestang for this post:
 
  #23 (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 messing around with it. Haven't added in any rising vs. falling plot colors.

Also won't know if it is right until you install it and compare with yours, will probably need some adjustments. But here is the initial look.

Also, disregard the "Part I" of the post I made above this one for now. I am using the "MAMA" that is shipped with NT7. In there are two AMAs, one is 'Default' and the other is 'FAMA'. So for this study I am referencing the 'Default' AMA.

When you read this, do me a favor. Pick a chart, put the oscilator up as you had on your first post so I can have a point of reference, and post the screenshot of it. Also, I don't know about your timezone, so please label the chart with the EST time zone. Not every tick, but label a few of the vertical lines with what the corresponding EST time and date would be so I can tell where it is.

Also, post a screen shot of the different user inuts available for the standard ama on Amibroker, as well as the oscillator we are trying to replicate. If you open the MAMA in NT7, you can see there are two inputs, FastLimit and SlowLimit. I need to see what options are there in ami so that I can either put those values in the script, or create a user input for them. If in doubt, open up NT7, and put the MAMA on your chart, and you'll see what I mean.

Attached Thumbnails
Help needed to convert my system to Nt7...!-prime2011-09-01_062916.jpg  

Last edited by forrestang; September 1st, 2011 at 09:23 AM.
Reply With Quote
The following user says Thank You to forrestang for this post:
 
  #24 (permalink)
Trading for Fun
India
 
Futures Experience: Intermediate
Platform: Amibroker
 
linkon7's Avatar
 
Posts: 73 since Sep 2010
Thanks: 52 given, 60 received

@forrestang

I think its better if we construct the price chart first. First thing needed is to plot the 2 band

accl band defined as

upband = MA((High*(1+n * ((((High-Low) / ((High+Low) / n)) * 1000) * 0.001))), t);
dnband = MA((Low*(1- n * ((((High-Low) / ((High+Low) / n)) * 1000) * 0.001))), t);


Boilinger band defined as

upband2 = BBandTop(C,t,n);
dnband2 = BBandBot(C,t,n);

where
t = 20 ; //period of the moving average
n = 2; //standard deviation of close from the period of the moving average.

We should get something like this...

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

image uploading


then we plot exponential moving average of the HIGH of the last 2 bars and exponential moving average of the LOW last 2 bars.


upret = EMA(H,2);
dnret = EMA(L,2);


we now get something like...


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

free image hosting

If possible we'll try to remove the balloon from the chart as it normally distorts the chart.


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

upload pngpng

We get something like this...

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

upload pngpng

If u can post the equivalent code for nt7, then we can proceed further with isolating the trading conditions.

Reply With Quote
The following user says Thank You to linkon7 for this post:
 
  #25 (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

@linkon7

Yes, that is exactly what I was looking for!

Reply With Quote
The following user says Thank You to forrestang for this post:
 
  #26 (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

Here we go!

First 3 steps in your description are complete.

About the 4th step...... the part about erasing the 'balloon' look of the Bollinger Bands from the chart. Will that be used in further calculations?

I ask because there is the option to make that value NULL or set it to the value of AcclBands for example.

OR..... we could just set it to 'transparent' when price does that so you won't see it.

I'm guessing the 2nd choice would make more sense?

At any rate..... go ahead and add the next thing to the thread that needs to be done for your indie. If we are going to set it to transparent, we can add that near the end anyway, as I have to look into changing plot colors.

Attached Thumbnails
Help needed to convert my system to Nt7...!-step1.jpg  
Reply With Quote
 
  #27 (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


forrestang View Post

About the 4th step...... the part about erasing the 'balloon' look of the Bollinger Bands from the chart. Will that be used in further calculations?

I ask because there is the option to make that value NULL or set it to the value of AcclBands for example.

OR..... we could just set it to 'transparent' when price does that so you won't see it.

I'm guessing the 2nd choice would make more sense?

I think I found a simpler way to erase that balloon.

See pics attached.

Post your next project definition.

Attached Thumbnails
Help needed to convert my system to Nt7...!-c1.jpg   Help needed to convert my system to Nt7...!-c2.jpg  
Reply With Quote
 
  #28 (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
Here we go!

First 3 steps in your description are complete.

About the 4th step...... the part about erasing the 'balloon' look of the Bollinger Bands from the chart. Will that be used in further calculations?

I ask because there is the option to make that value NULL or set it to the value of AcclBands for example.

OR..... we could just set it to 'transparent' when price does that so you won't see it.

I'm guessing the 2nd choice would make more sense?

At any rate..... go ahead and add the next thing to the thread that needs to be done for your indie. If we are going to set it to transparent, we can add that near the end anyway, as I have to look into changing plot colors.


We are only interested in when BB is inside ACCL band. That too only on our trading time frame. The timing time frame we wont need BB at all...

Main idea behind tracking the 2 bands is to identify congestion zones. Thats the phase when most indicators go out of whack and we need to know when not to trust them. After all, objective way of looking at a very subjective market will need some sacrifice and we need to let go of some good trade to avoid being whipped. Its also when we know that market is looking for direction and thats when we plan to lighten up some of our positions with the hope of adding when direction resumes our desired direction.

Our next objective is to track the health of the current wave. For that we'll look for continuation / divergence pattern on RSI. So first task is to identify pivots on price.

will get back to this...after trading hours....!

Thanks again for ur efforts...!

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

Stoploss identification....!

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

image host

Next challenge is to plot the stoploss on the chart.

We use 2-ema of the high and 2 ema of the low to form the worm that we have already used before.

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

free image hosting

we apply a new accl band with the following settings

n = 1 ;
t = 10 ;

upband3 = MA((High*(1+n * ((((High-Low) / ((High+Low) / n)) * 1000) * 0.001))), t);
dnband3 = MA((Low*(1- n * ((((High-Low) / ((High+Low) / n)) * 1000) * 0.001))), t);

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

image upload

Now we isolate the location where worm-low (EMA-2 of LOW) crosses the band from below.

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

image uploading

and then plot the lowest low of the last 5 bars from the point of cross over

Here i have plotted the lowest low of the last 5 bars from point of crossover in green dots

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

post image wordpress

likewise, we isolate the point of crossover of worm-high (EMA2 of HIGH) and the upper band. From the point of crossover, plot the highest high of the last 5 bars as pivot high. I have ploted them as red dots.

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

hosting images

we then make the band invisible

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

wordpress image hosting

We now have accomplished a very important task of our where our stop loss should be.

Reply With Quote
The following 2 users say Thank You to linkon7 for this post:
 
  #30 (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


@linkon7
Cool. I will look this over and post back if I need any further definition.

Let me commend you on posting such clear definitions of what you want and NOT being lazy about drawing it out.

Reply With Quote
The following user says Thank You to forrestang for this post:

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 03:23 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-14 in 0.19 seconds with 20 queries on phoenix via your IP 54.145.16.43