PureBytes Links
Trading Reference Links
|
--- In amibroker@xxxx, tom_supera@xxxx wrote:
> Hi,
> I want to realize a candle-chart, that shows the Rate of Change to
> yesterdays values (c,o,h,l).
> I want instead c: roc(c,-1)
> instead o: roc(o,-1)
> instead H: roc(H,-1)
> instead L: roc(L,-1)
>
> Is it possible to realize this?
>
> Thanks to your help
>
> Tom Supera
Hi,
I have found the answer in the help of amibroker
/* save predefined arrays */
sclose = close;
shigh = high;
slow = low;
sopen = open;
/* redefine arrays */
close = roc(c,1);
high = roc(H,1);
low = roc(L,1);
open = roc(o,1);
/* plot graph0 with a new values of predefined arrays */
graph0 = close;
graph0style = 64; /* candlesticks - indirectly use O,H,L */
/* restore arrays */
close = sclose;
high = shigh;
low = slow;
open = sopen;
/* now you can continue with calculations and use built in functions
since built in arrays are restored */
|