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
thank you,
if i change it the way u told me i get the following chart window for e.g.
but the yellow line isn´t changing to lowest low - what can i do?
thank u until yet very much and dont mind if i wont answer so fast again, cause i am now going to sleep and think in bed about my indicator :-)
hi guys,
all the thinking before sleeping didn´t help. i tried today for about three hours, but the result were not better.
Can u please help me?
The code shich is producing the chart above is:
void start()
{
int counted = IndicatorCounted();
//----
if(counted < 0)
return (-1);
//----
if(counted > 0)
counted--;
int limit = Bars - counted;
//----
for(int i = 0; i < limit; i++)
{
if(iClose(NULL, 0,0 ) > iHigh(NULL, 0, iHighest(NULL, 0, MODE_CLOSE, N, i)))
{
UpperBuf[i] = iLow(NULL, 0, iLowest(NULL, 0, MODE_CLOSE, N, i));
LowerBuf[i] = iHigh(NULL, 0, iHighest(NULL, 0, MODE_CLOSE, N1, i)) - N3*Point;
}
if(iClose(NULL, 0,0 ) < iHigh(NULL, 0, iHighest(NULL, 0, MODE_CLOSE, N, i)))
{
UpperBuf[i] = iHigh(NULL, 0, iHighest(NULL, 0, MODE_CLOSE, N, i));
LowerBuf[i] = iLow(NULL, 0, iLowest(NULL, 0, MODE_CLOSE, N1, i)) + N3*Point;
}
}
}