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,164 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...!

  #21 (permalink)
linkon7
India
 
Posts: 73 since Sep 2010
Thanks Given: 52
Thanks Received: 60


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

Can you help answer these questions
from other members on NexusFi?
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
Exit Strategy
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Better Renko Gaps
The Elite Circle
NexusFi Journal Challenge - April 2024
Feedback and Announcements
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
39 thanks
NexusFi site changelog and issues/problem reporting
26 thanks
GFIs1 1 DAX trade per day journal
18 thanks
The Program
18 thanks
  #22 (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

@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
Thanked by:
  #23 (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 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
Click image for larger version

Name:	Prime2011-09-01_062916.jpg
Views:	290
Size:	391.1 KB
ID:	48045  
Reply With Quote
Thanked by:
  #24 (permalink)
linkon7
India
 
Posts: 73 since Sep 2010
Thanks Given: 52
Thanks Received: 60

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

[IMG]http://s4.postimage.org/5qjjuafgt/image.png[/IMG]
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...


[IMG]http://s4.postimage.org/gdfaga8af/image.png[/IMG]
free image hosting

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


[IMG]http://s2.postimage.org/co5twplh6/image.png[/IMG]
upload pngpng

We get something like this...

[IMG]http://s1.postimage.org/udgf1bvgw/image.png[/IMG]
upload pngpng

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

Reply With Quote
Thanked by:
  #25 (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

@linkon7

Yes, that is exactly what I was looking for!

Reply With Quote
Thanked by:
  #26 (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

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
Click image for larger version

Name:	Step1.jpg
Views:	253
Size:	487.5 KB
ID:	48087  
Reply With Quote
  #27 (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


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
Click image for larger version

Name:	c1.jpg
Views:	255
Size:	227.0 KB
ID:	48090   Click image for larger version

Name:	c2.jpg
Views:	252
Size:	196.4 KB
ID:	48091  
Reply With Quote
  #28 (permalink)
linkon7
India
 
Posts: 73 since Sep 2010
Thanks Given: 52
Thanks Received: 60


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

[IMG]http://s1.postimage.org/5v7gf7fme/image.png[/IMG]
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.

[IMG]http://s4.postimage.org/gph3g4fib/image.png[/IMG]
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);

[IMG]http://s2.postimage.org/ydrf023pd/image.png[/IMG]
image upload

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

[IMG]http://s3.postimage.org/8n5nosc5x/image.png[/IMG]
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

[IMG]http://s4.postimage.org/gpmvtu5qm/image.png[/IMG]
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.

[IMG]http://s4.postimage.org/62v8eo8so/image.png[/IMG]
hosting images

we then make the band invisible

[IMG]http://s2.postimage.org/uuej34ea7/image.png[/IMG]
wordpress image hosting

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

Reply With Quote
Thanked by:
  #30 (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


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




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