Hellow amibroker experts,
Please help me with the following -
in amibroker exploration by setting current date as lower and upper limit
for exploration limits, my objective is to get the closing price (C)
for time = (current time - 5 minutes)
How can I get this value?
I tried the following:
1)
TimeFrameGetPrice("C",0,0); ---- this gives current price correctly
Whatever value I give to the second parameter and third parameter
(and also the fourth parameter) it does not give correct value for
time=(current time - 5 minutes).
I am able to get value for (previous day last min closing price - 5 minutes)
2)
TimeFrameSet(in1Minute);
value =Ref(C,-5);
TimeFrameRestore();
addcolumn(value.............)
--------- this gives closing price for time=(previous day last minute - 5 minutes)
My objective is to get the closing price of
CURRENT TIME - 5 minutes
Interestingly, when I use plot function on the chart I get correct values
but when the same is run in exploration with addcolumn it takes the previous days
value measured from previous days last closing price.
Please help.
Please help me with the following -
in amibroker exploration by setting current date as lower and upper limit
for exploration limits, my objective is to get the closing price (C)
for time = (current time - 5 minutes)
How can I get this value?
I tried the following:
1)
TimeFrameGetPrice("C",0,0); ---- this gives current price correctly
Whatever value I give to the second parameter and third parameter
(and also the fourth parameter) it does not give correct value for
time=(current time - 5 minutes).
I am able to get value for (previous day last min closing price - 5 minutes)
2)
TimeFrameSet(in1Minute);
value =Ref(C,-5);
TimeFrameRestore();
addcolumn(value.............)
--------- this gives closing price for time=(previous day last minute - 5 minutes)
My objective is to get the closing price of
CURRENT TIME - 5 minutes
Interestingly, when I use plot function on the chart I get correct values
but when the same is run in exploration with addcolumn it takes the previous days
value measured from previous days last closing price.
Please help.