sailor:
im litle stucked i want to use just opened candle and not previus i tryed to change things in the code but im getting many errors this is a peace of the code
im litle stucked i want to use just opened candle and not previus i tryed to change things in the code but im getting many errors this is a peace of the code
for (shift=CountDays-1;shift>=0;shift--)
{
time1=iTime(NULL,PERIOD_D1,shift);
i=shift-1;
if (i<0)
time2=Time[0];
else
time2=iTime(NULL,PERIOD_D1,i)-Period()*60;
high = iHigh(NULL,PERIOD_D1,shift+1);
low = iLow(NULL,PERIOD_D1,shift+1);
open = iOpen(NULL,PERIOD_D1,shift+1);
close = iClose(NULL,PERIOD_D1,shift+1);
please give a hint
sailor the bad code readersailor,
We have to see the complete code to help.
For example I don't know what's the CountDaysis (I have to see the declaration of it) and i varaible too.

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
im litle stucked i want to use just opened candle and not previus i tryed to change things in the code but im getting many errors this is a peace of the code
for (shift=CountDays-1;shift>=0;shift--)
{
time1=iTime(NULL,PERIOD_D1,shift);
i=shift-1;
if (i<0)
time2=Time[0];
else
time2=iTime(NULL,PERIOD_D1,i)-Period()*60;
high = iHigh(NULL,PERIOD_D1,shift+1);
low = iLow(NULL,PERIOD_D1,shift+1);
open = iOpen(NULL,PERIOD_D1,shift+1);
close = iClose(NULL,PERIOD_D1,shift+1);
please give a hint
sailor the bad code reader