yassin.mokni:
Hi Guys
I want to Get The previous Days values of a Pivot points indicator .
I Use The iCustom() To Do That
But , These lines give me a wrong Values
There is no problem. This value 2147483647 is EMPTY_VALUE, it means the indicator is not drawing anything for this bar.
Hi Guys
I want to Get The previous Days values of a Pivot points indicator .
I Use The iCustom() To Do That
But , These lines give me a wrong Values
I Think This Problem Is in The Shift Value
What Do you Think The problem is ?
Thanks For Your Help.
angevoyageur:
There is no problem. This value 2147483647 is EMPTY_VALUE, it means the indicator is not drawing anything for this bar.
There is no problem. This value 2147483647 is EMPTY_VALUE, it means the indicator is not drawing anything for this bar.
Ok , How Can I get these 3 days values , like in the picture :
yassin.mokni:
Ok , How Can I get these 3 days values , like in the picture :
It should be
DayBarNumber+23
angevoyageur:
Yes you right Mr.Alain , it's a stupid mistake It should be
I Change The DayBarNumber By this Function
uint getDayShift(const uint dayNumder) { uint currentDaysShift = 0; for(int i = 0; i < Bars(_Symbol, PERIOD_H1) - 1; i++) { if(TimeDay(Time[i]) != TimeDay(Time[i+1])) { currentDaysShift++; if(currentDaysShift == dayNumder+1) { return i; } } } return 0; }
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
I want to Get The previous Days values of a Pivot points indicator .
I Use The iCustom() To Do That
But , These lines give me a wrong Values
I Think This Problem Is in The Shift Value
What Do you Think The problem is ?
Thanks For Your Help.