As new quotations received, importance of the volume of the current bar increases
on unit. If changed importance Bid, changes importance Close[0].
Thereby, i - index of the bar, but Volume[i] - amount of the quotations, received
for time of the shaping the bar, which is a value of the current timeframe.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
int start()
{
......
for (i=Bars-1;i>0;i--)
{
if (Close[i]=a+b)
m=i;
}
......;
}
as new quotations received, new sticks appears,and the index 0,1,2.... are pointed to different sticks. for example, Close[5] of current time is equal to previous Close [4] after receiving a new quotation. now, i assign i to m, the Close[m] is different between before and after receiving new quotations. how can i point to the same sticks with a fixed index or a varible whenever i reveive new quotations? can you give me some suggestions? thanks!