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)
Can you share your idea on how to code the higher time frame macd average line cross over condition (say, T3R10O3) in the New strategy analyser template of the lower time frame (SAY, T1R3O3).
A screen shot of the parameters would really help.
Thanks,
Raj1
Can you help answer these questions from other members on NexusFi?
I'm afraid coding MTF strategies is a bit of a black art; I don't think I would be able to do it justice. Fat Tails has published a lot of very informative information on the topic, do a search. That's where I got a lot of really good information. Also, I'm not using the strategy analyser as it calculates everyone COBC=true. My strategy is based on COBC=false for the primary bar series and (FirstTickOfBar) for the secondary time series. The only way I am able to get accurate "back test" results is by running thousands of Market Replay simulations (which I have been doing and my eyes are ready to fall out).
Sorry I can't be of more help on the subject but it really is a big topic.
In order to use the "Strategy Analyzer" you already have to have a working strategy developed. This is just a tool you can use to test how well your strategy performs. Personally, I prefer to test my strategy by attaching it to a chart and forward-testing with market replay data.
The statement that you ask about is as follows, using multiple time frames
if (CrossAbove(MACD(BarsArray[UNIRENK1],12, 26, 9).Avg, MACD(BarsArray[UNIRENK2],12, 26, 9).Avg, 1))
{
// your logic here
}
Of course you have to have proper Add() statements for all the additional time frames such as
Add(PeriodType.Custom5, 001003003); // T1R3O3 to use your example
You also have to have the indeces ([UNIRENK1] and [UNIRENK2])defined to whatever values correctly correspond to the BarsArray order.
public int UNIRENK1 = 1; //BarsArray 1
public int UNIRENK2 = 2; //BarsArray 2
You can also use interger values instead as shown here
if (CrossAbove(MACD(BarsArray[1],12, 26, 9).Avg, MACD(BarsArray[2],12, 26, 9).Avg, 1))
{
}
Using variable simply makes it more flexible.
Oh, and you cannot put two non-time based time frames on one physical chart. That is because there is no 1:1 or 1:x correlation between the number of bars and the chart gets totally distorted.
Good luck in your development
“Everything is hard before it is easy”
~ Johann Wolfgang von Goethe
I thought of sending my strategy analyzer to you to add the above features, as I don't have sound c## software knowledge. That Is the reason, I am trying to develpe one thro' strategy analyzer template.
But, Your last para has put me on hold, as I understand that it is not possible to use two Uni-Renko time frames in one strategy. Is my understanding right.?
Thanks again for your efforts in replying my request.
No, you misunderstood. You can have multiple UniRenkos in your strategy, no problem. Otherwise, the statement I have sent you earlier would not be possible.
You just cannot show multiple UniRenkos on ONE chart since it gets distorted if you try. Your chart should have only one time frame but the strategy attached to it can have multiple time frames.
I believe the best thing for you to do, is to go through the Ninja user guide and familiarize yourself with its features. It is a very powerful language. Also, if you are a new programmer, I would advise you to get more familiar with C# which is what Ninja script is based on. When you start venturing into multiple-time frames, it starts to get a bit more complicated. When I was starting out, I grabbed a few books from the local library and learned from them. There is also a lot of free information on the web. Make use of it. By learning how to program in Ninja, it made me a better trader as well because it allows me to quickly mock up a method and see if it is viable or not.
“Everything is hard before it is easy”
~ Johann Wolfgang von Goethe
It seem that on occasion the first several UniRenko bars generated after midnight are changed significantly from the live version (CQG) vs the Market Replay version. I understand that some changes could be expected but it seems to happen only at this particular time.
I am new.
i downloaded the unirenko indicator.
and went to utilities / imported the indicator.
got the little box that says it got imported ok.
but when i r-click on the chart and look in indicators.
i dont find renko or unirenko.
did i not import the indicator correctly or does it show up differently in nt ?
Trade what you see, not what you think.
"The better the mechanic, the fewer the tools"
"Futures Trading is risky and can cause substantial financial gain"