AmiBroker: How to draw in blank bars in the right margin? - Aussie Stock Forums

# Thread: AmiBroker: How to draw in blank bars in the right margin?

1. ## AmiBroker: How to draw in blank bars in the right margin?

Hello , I need your help for my project on Amibroker .

There is a interesting propertie in Amibroker .It 's in the menu Tools/Preférences/"Blanck bars in right margin"

I want to draw any lines or zig-zag properly in the blanck area ie in the future dates .

Is-it possible ? Thanks

2. ## Re: How to draw in blank bars in the right margin?

I think you will need to do a bit of tinkering. Something like the following:

Say you're using a 5% zig zag. Get AB to find the last peak or trough (using peak,trough - see help section), then get it to plot a 'ray' from there to the +5% point. Rays extend off the page into the blank space.

Or if you're happy to do it manually for each stock of interest, click on the ray icon and align it with the existing zig.

Or play around with this, which is getting close to what you want:

y0=LastValue(Trough(L,5,2));
y1=LastValue(Trough(L,5,1));
x0=BarCount - 1 - LastValue(TroughBars(L,5,2));
x1=BarCount - 1 - LastValue(TroughBars(L,5,1));
Line = LineArray( x0, y0, x1, y1, 100 );
Plot(C, "C", colorWhite, styleCandle);
Plot( Line, "Trend line", colorBlue );

3. ## Re: How to draw in blank bars in the right margin?

If your developing a system using Zig Zag then I hope you like destroying capital bases.

Might be what your looking for.
Formula there.

4. ## Re: AmiBroker: How to draw in blank bars in the right margin?

It seems that it is not possible for the instant .
I doubt that I can draw a whole zig-zag with Gringotts Banck's method .
Finally ,there might a solution by using VB.net langage .
I have found this plugin
http://www.dotnetforab.com/ but I am missing some time and any skills to do something like this .

Good Bye

5. ## Re: AmiBroker: How to draw in blank bars in the right margin?

Greetings --

ZigZag, along with Peak and Trough, look into the future.

This can be valuable when searching for issues that have characteristics you want, but none of these functions can be used for trading.

One of the consequences of looking into the future is that new data changes previous conditions. You can see this in action by plotting a price series with a ZigZag indicator applied to it, then using the Bar Replay feature to display the data. The high and low points change as new data arrives.

If you were trading, you would see Buy signals appear as the trough seems to have been established, then several bars later disappear as the conditions for the trough are no longer met. If you had entered a long position when the Buy first appeared, you would be holding stock. However AmiBroker now has no record of the purchase and will not issue the corresponding Sell.

Thanks,
Howard

6. ## Re: AmiBroker: How to draw in blank bars in the right margin?

howard, that's a stock standard answer that has nothing to do with what the OP asked.

atlas I gave you plenty of info to work with and you're obviously too stupid to understand it.

7. ## Re: AmiBroker: How to draw in blank bars in the right margin?

Originally Posted by Gringotts Bank
howard, that's a stock standard answer that has nothing to do with what the OP asked.

atlas I gave you plenty of info to work with and you're obviously too stupid to understand it.
Has everything to do with it.
Todays plot (Ray) may not be there tomorrow.

8. ## Re: AmiBroker: How to draw in blank bars in the right margin?

Even though a zig-zag looks ahead in time, once drawn, the start of it will always stay there and retain its original gradient, meaning that you can add a ray to it. What the OP wanted to do was take this line and extend it into the blank space, that's all. The 'live' part of the line will chop and change as new data is added, making it unsuitable for back-testing.

I can't imagine why the OP would want to do this, but he might have some reason.

9. ## Re: AmiBroker: How to draw in blank bars in the right margin?

Originally Posted by Gringotts Bank
Even though a zig-zag looks ahead in time, once drawn, the start of it will always stay there and retain its original gradient, meaning that you can add a ray to it.

No it wont---well not always.
Thats the whole point of Howards post and my warning.