NexusFi: Find Your Edge


Home Menu

 





From METASTOCK to Ninja Trader


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one dimitri with 10 posts (1 thanks)
    2. looks_two cory with 4 posts (7 thanks)
    3. looks_3 Big Mike with 2 posts (2 thanks)
    4. looks_4 sam028 with 2 posts (1 thanks)
      Best Posters
    1. looks_one bukkan with 2 thanks per post
    2. looks_two cory with 1.8 thanks per post
    3. looks_3 Big Mike with 1 thanks per post
    4. looks_4 dimitri with 0.1 thanks per post
    1. trending_up 15,771 views
    2. thumb_up 13 thanks given
    3. group 5 followers
    1. forum 20 posts
    2. attach_file 10 attachments




 
Search this Thread
  #1 (permalink)
 dimitri 
Athens - Greece
 
Experience: Intermediate
Platform: Metastock
Posts: 75 since Jul 2010
Thanks Given: 202
Thanks Received: 36

Indi from METASTOCK to Ninja 7.. Hi, to everyone.

I need Help (I Have No Experience) in "translating" following indicator to Ninja Trader, any body who can Help Programming it i would be very grateful. Thanks in advance.
Dimitri

The Indicator from METASTOCK:


(((CLOSE+OPEN+LOW+HIGH)/4) < Ref(CLOSE, -1) AND ((CLOSE+OPEN+LOW)/3) < Ref(CLOSE, 1)) OR
(HIGH+OPEN)/2 = Ref(CLOSE, -1) AND
((HIGH+LOW)/2) < Ref(CLOSE, -2) AND ((HIGH+LOW+CLOSE)/3) < Ref(CLOSE, 1)

***Note: Ref(CLOSE, -1) means Close price of one Bar Ago .... For any clarification do not hesitate to info me.
Waiting for a kind reply.


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
[WTS] ATAS Lifetime ULTRA license – EU buyers only – …
Platforms and Indicators
Building a free browser DOM/SMC simulator - need some ad …
Platforms and Indicators
What we know about Binances $6.3bn hack - BBC News
Cryptocurrency
My Rant with AMP Futures
Trading Reviews and Vendors
requesting .nrd replay files from 2026 spy and qqq
The Elite Circle
 
  #3 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 R.I.P. 1977-2026 
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,669 since Jun 2009
Thanks Given: 33,669
Thanks Received: 102,599


Hi,

You need to post a screen shot, the code you posted is not enough to know what you are wanting to do.

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 X Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #4 (permalink)
 dimitri 
Athens - Greece
 
Experience: Intermediate
Platform: Metastock
Posts: 75 since Jul 2010
Thanks Given: 202
Thanks Received: 36

Attached please find a PDF screenshot.
Thanks
Dimitri


Attached Thumbnails
From METASTOCK to Ninja Trader-dax_1m_dim_maxprof_6.pdf  
Started this thread Reply With Quote
Thanked by:
  #5 (permalink)
 
sam028's Avatar
 sam028 
Site Administrator
 
Posts: 3,779 since Jun 2009
Thanks Given: 3,840
Thanks Received: 4,709


dimitri View Post
Indi from METASTOCK to Ninja 7.. Hi, to everyone.

I need Help (I Have No Experience) in "translating" following indicator to Ninja Trader, any body who can Help Programming it i would be very grateful. Thanks in advance.
Dimitri

The Indicator from METASTOCK:


(((CLOSE+OPEN+LOW+HIGH)/4) < Ref(CLOSE, -1) AND ((CLOSE+OPEN+LOW)/3) < Ref(CLOSE, 1)) OR
(HIGH+OPEN)/2 = Ref(CLOSE, -1) AND
((HIGH+LOW)/2) < Ref(CLOSE, -2) AND ((HIGH+LOW+CLOSE)/3) < Ref(CLOSE, 1)

***Note: Ref(CLOSE, -1) means Close price of one Bar Ago .... For any clarification do not hesitate to info me.
Waiting for a kind reply.

Not tested at all, too many or not enough "(" or ")", but this is something like:

(((Close[0]+Open[0]+Low[0]+High[0])/4) < Close[1] && ((Close[0]+Open[0]+Low[0])/3) < Close[1])) || (((High[0]+Open[0])/2) == Close[1]) &&
((High[0]+Open[0])/2) < Close[2] && ((Close[0]+Open[0]+Low[0])/3) < Close[1]))))


Success requires no deodorant! (Sun Tzu)
Reply With Quote
Thanked by:
  #6 (permalink)
 dimitri 
Athens - Greece
 
Experience: Intermediate
Platform: Metastock
Posts: 75 since Jul 2010
Thanks Given: 202
Thanks Received: 36

Dear sam028,
Thank you very much for your kind reply.
I have adjusted the (((, as far as my poor knowledge and big effort allow me. But still compiling problem appears.
Is that possible to have a correction ?????
I include the "code" and a screenshot in pdf format.
Thanks in advance for any Help.
Dimitri
............................
protected override void OnBarUpdate()
{
// Use this method for calculating your indicator values. Assign a value to each
// plot below by replacing 'Close[0]' with your own formula.
Plot0.Set(((((Close[0]+Open[0]+Low[0]+High[0])/4) < Close[1] && ((Close[0]+Open[0]+Low[0])/3) < Close[1])) ||
((((High[0]+Open[0])/2) == Close[1]) &&
((High[0]+Open[0])/2) < Close[2] && ((Close[0]+Open[0]+Low[0])/3) < Close[1]));
}
........................................


Attached Thumbnails
From METASTOCK to Ninja Trader-20101113_prox_bm.pdf  
Started this thread Reply With Quote
  #7 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 R.I.P. 1977-2026 
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,669 since Jun 2009
Thanks Given: 33,669
Thanks Received: 102,599

Tip
Please do not use PDF for a screen shot, it is very "expensive" in terms of resources. Better to use JPG or PNG, you can find a free screen shot program called Jing here:



TechSmith | Jing, instant screenshots and screencasts, home

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 X Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #8 (permalink)
 dimitri 
Athens - Greece
 
Experience: Intermediate
Platform: Metastock
Posts: 75 since Jul 2010
Thanks Given: 202
Thanks Received: 36

Big Mike thank you for your suggestion.
In life life we have to learn - elaborate - decide - act ...!!!
Dimitri
Dear sam028,
Thank you very much for your kind reply.
I have adjusted the (((, as far as my poor knowledge and big effort allow me. But still compiling problem appears.
Is that possible to have a correction ?????
I include the "code" and a screenshot in pdf format.
Thanks in advance for any Help.
Dimitri
............................
protected override void OnBarUpdate()
{
// Use this method for calculating your indicator values. Assign a value to each
// plot below by replacing 'Close[0]' with your own formula.
Plot0.Set(((((Close[0]+Open[0]+Low[0]+High[0])/4) < Close[1] && ((Close[0]+Open[0]+Low[0])/3) < Close[1])) ||
((((High[0]+Open[0])/2) == Close[1]) &&
((High[0]+Open[0])/2) < Close[2] && ((Close[0]+Open[0]+Low[0])/3) < Close[1]));
}
........................................


Attached Thumbnails
Click image for larger version

Name:	2010-11-13_1328.png
Views:	265
Size:	58.9 KB
ID:	25633  
Started this thread Reply With Quote
  #9 (permalink)
 
sam028's Avatar
 sam028 
Site Administrator
 
Posts: 3,779 since Jun 2009
Thanks Given: 3,840
Thanks Received: 4,709

@dimitri, what you call an Indicator, the few MetaStock lines you show us, is not plotting something, it returns a value, which is true or false.
So the same thing with NT do the same: returning true or false.
And you can't plot true or false values, you can only plot numerical values.


Success requires no deodorant! (Sun Tzu)
Reply With Quote
  #10 (permalink)
 dimitri 
Athens - Greece
 
Experience: Intermediate
Platform: Metastock
Posts: 75 since Jul 2010
Thanks Given: 202
Thanks Received: 36


Dear Sam028,
Thank you for your kind reply, IS true the lines sent are producing TRUE or FALSE that means 1 or 0, so we can call oscillator better than indicator. Any way you can see into the previously attached chart, that is plotting 1 or 0. In Metastock language no need to specify any thing else, and is producing these signals.
In case that above could be corrected for Ninja Trader it is welcome and very much appreciated.
Thanks again.
Dimitri


Started this thread Reply With Quote




Last Updated on November 15, 2010


© 2026 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 - Downloads - Top
no new posts