PureBytes Links
Trading Reference Links
|
hi,
breaking my head over this one grrr grrrrr. Within an intraday chart fBar * CUM(1) shows spikes in the chart where the hight of each spike corresponds exactly with the number of bars.
I want to fill the zeros preceding a bar with the value of the bar. So for instance the first bar has a value 32 and I want to fill the array until the 32-nd bar with the number 32. Then the zeros between the first and the second bar I want to fill with the value of the second bar etc. (without using loopings ofcourse)
What to use ??
thanks, Ed
TimeFrameSet( inDaily );
// create a stepLine function
stepLine = Cum(1);
TimeFrameRestore();
// expand array
stepLine = TimeFrameExpand( stepLine, inDaily,mode = expandFirst );
// define first bar of the day
fBar = stepLine - Ref(stepLine,-1) != 0;
// bar chart
Plot(fBar * Cum(1),"",colorWhite,1);
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|