Jump to content

The box


yamantaka

Recommended Posts

Going back into theory concerning a renko bars (including RJ's renko bars). During the backtests (not in a replay mode) you have to assign a proper (realistic) slippage:

It's a simple formula:

slippage = (max range of renko bar)/2 + 1

+1 is an usual slippage (spread) for range of instruments.

so for example for RJ spectrum bars 4:1 -> slippage = 4/2+1 = 3

I think it's now clear.

Link to comment
Share on other sites

  • Replies 412
  • Created
  • Last Reply

Top Posters In This Topic

Yamantaka has obviously added something to his system in addition to the Box. We need to figure out what. A directional indicator would be my first guess.

Not true. No external indicators are been added to the ATS. I suggest you examine best time of day to trade, Long/Short, and whether to take secondary out-of-box trades in your analysis. In order to do this, you'll have to segue to source code due to wizard's limitations.

Edited by yamantaka
Link to comment
Share on other sites

The targets in PPTBox are calculated like fibonacci levels. The defaults values are as follows:

target1 = 162;

target2 = 233;

target3 = 377;

target4 = 512;

target5 = 618;

0-100% is a current box range. You can assign these levels into fibo tool in NT and check it by yourself.

It's possible to enable these levels as a parameters in the indicator.

Interesting. I didn't understand those lines and didn't care because I was all in, all out, but I wouldn't mind testing those levels for an edge. Admis, do you mind posting an image of a box overlaid with those fib calculations for those of us who are fib handicapped?

Edited by yamantaka
Link to comment
Share on other sites

Going back into theory concerning a renko bars (including RJ's renko bars). During the backtests (not in a replay mode) you have to assign a proper (realistic) slippage:

It's a simple formula:

slippage = (max range of renko bar)/2 + 1

+1 is an usual slippage (spread) for range of instruments.

so for example for RJ spectrum bars 4:1 -> slippage = 4/2+1 = 3

I think it's now clear.

 

Are you speaking of the new version or old?. RJ claims the new version is an accurate backtester.

Link to comment
Share on other sites

Interesting. I didn't understand those lines and didn't care because I was all in, all out, but I wouldn't mind testing those levels for an edge. Admis, do you mind posting an image of a box overlaid with those fib calculations for those of us who are fib handicapped?

Sure, let me do that in a few minutes...

Link to comment
Share on other sites

Are you speaking of the new version or old?. RJ claims the new version is an accurate backtester.

 

It's a general rule, but I didn't make a tests with a new (2nd) versions.

You should remember: this rule concerns only BACKTESTS made in the Strategy Analyzer!

Edited by admis
Link to comment
Share on other sites

Interesting. I didn't understand those lines and didn't care because I was all in, all out, but I wouldn't mind testing those levels for an edge. Admis, do you mind posting an image of a box overlaid with those fib calculations for those of us who are fib handicapped?

 

http://i.imgur.com/3DMrXRa.jpg

Link to comment
Share on other sites

I understand that the strategy analyser is never giving you good results to rely on. I was told that the Market Replay offers backtesting with Level 1 and Level 2 data tick based replay, thus ensuring much more reliable and realistic results. Please search the NinjaTrader forum for the several discussions on this topic and the explanation done by Ninja people.

The disadvantage of Market Replay is that backtesting takes time (even when you speed up to 500x speed).

Edited by westvleteren
Link to comment
Share on other sites

ok, it's done next step: exposed to use in a strategy all the levels (targets) for long and short orders.

http://www.sendspace.com/file/o9attt

 

pass=indo-investasi

 

So, all the available fields in a strategy are as follows: (the new fields are bolded)

LongTarget1

LongTarget2

LongTarget3

LongTarget4

LongTarget5

ShortTarget1

ShortTarget2

ShortTarget3

ShortTarget4

ShortTarget5

Box_Mid

------------

Box_High

Box_Low

Box_Signal

 

P.S. I don't know guys, how many of you are in a position to work directly in sources, without a strategy builder?

It's going to be more difficult to work with a strategy wizzard than in a sources (at least for me...)

 

 

this version has code issues?

Link to comment
Share on other sites

I can not import

I put it to manual error

I've just compiled the same source file with no issue.

I'm sorry enzofox I don't know italian to be able to recognize the compiler messages on your screenshot...

Try to overwrite once again the source file from the 7z archive...

Edited by admis
Link to comment
Share on other sites

I've just compiled the same source file with no issue.

I'm sorry enzofox I don't know italian to be able to recognize the compiler messages on your screenshot...

 

Enzofox i can help you in italian language , please ask me if you want ciao

 

@admis thank you again for your time for us,

 

can you only in the strategy (your PPTBoxSLsig.cs) turn off the message when the box is triggered??

thank you so much

 

here a partial statistic http://my.jetscreenshot.com/20438/20140412-octc-139kb

 

regards

 

ciao Enzo

Edited by thedriver
Link to comment
Share on other sites

Yamantaka,

 

I understand that the strategy analyser is never giving you good results to rely on. I was told that the Market Replay offers backtesting with Level 1 and Level 2 data tick based replay, thus ensuring much more reliable and realistic results. Please search the NinjaTrader forum for the several discussions on this topic and the explanation done by Ninja people.

The disadvantage of Market Replay is that backtesting takes time (even when you speed up to 500x speed).

 

First and second signal out of box.

Please could you explain more your findings on using only the first signal of the box vs using both the first and second signal of the box. I believe the Strategy Wizard can have the capability to distinguish between the first and second signal of the box (matter of checking at which bar the box started and checking if a trade already took place before a new box develops).

 

Overlapping boxes.

How have you handled overlapping boxes? Do you assign any value to overlapping boxes? You ignore them? I believe the Strategy Wizard can have the capability to recognize overlapping boxes (matter of checking at which bar the box started and checking at which bar a new box develops - typically all boxes are 10 bars width).

 

I have a parameter to determine whether to take the 1st box trade only or the 2nd one also, but it is buggy, For the time being, I recommend focusing on just the 1st trade. Overlapping boxes are treated as a single box--you'll notice this is usually a tighter consolidation.

 

The width of the box is dependent on the size of the bars.

 

Also, you need the option to take Limit or Market orders. With the former, you'll have less fills but zero slippage. Depends on how volatile the instrument is at that moment.

Link to comment
Share on other sites

@enzo:

As I guess, you would like to change the sources in the way that you could change these levels on demand as a parameters. Is it correct?:-?

 

You may want to have an input option to eliminate the fib levels altogether--of course you can color the lines transparent so you don't see them, too. They were installed by the original developer to exit contracts at multiple levels. If you want those levels to exit then that's another nice option to have in the strategy (mine doesn't).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...