Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
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.
Can you help answer these questions from other members on NexusFi?
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]));
}
........................................
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:
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]));
}
........................................
@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.
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