Hi
This indicator shows arrow up and down when it crossed
How can I use iCustom to get crossed arrow value ?
I try
string sRSISignal;
double sRSICross = iCustom(NULL, 0, "Special RSI ARROW",2,1);
if(sRSICross == EMPTY_VALUE ) { sRSISignal = "Cross"; }
But it return nothing
Can anyone please suggest what I missed ?
The cross buffer should be 2 isn't it ?
Thanks in advance :)
No calculation buffer with result EMPTY_VALUE in your code.
Should you creat 2 iCustom for cross: sRSICross0 and sRSICross1.
If sRSICross1<0 and sRSICross0>0 = CrossUp, and vice versa
No calculation buffer with result EMPTY_VALUE in your code.
Should you creat 2 iCustom for cross: sRSICross0 and sRSICross1.
If sRSICross1<0 and sRSICross0>0 = CrossUp, and vice versa
Thanks for reply it does not work, Any other way to get the cross signal ?
:)
Thanks for reply it does not work, Any other way to get the cross signal ?
:)
I've changed to
if(sRSIG2 != EMPTY_VALUE ) { sRSIColor = "Green"; }
if(sRSIR2 != EMPTY_VALUE ) { sRSIColor = "Red"; }
I was wrong when putting != and ==
Crossed buffer not work but get value of arrow up and down works!
I've changed to
if(sRSIG2 != EMPTY_VALUE ) { sRSIColor = "Green"; }
if(sRSIR2 != EMPTY_VALUE ) { sRSIColor = "Red"; }
I was wrong when putting != and ==
Crossed buffer not work but get value of arrow up and down works!
To view the results string sRSIColor string, you must create a script to print sRSIColor "Green" or "Red".
Because the string variable might not be seen on the screen if it is not printed or "ObjectCreate"
Hi
This indicator shows arrow up and down when it crossed
How can I use iCustom to get crossed arrow value ?
I try
string sRSISignal;
double sRSICross = iCustom(NULL, 0, "Special RSI ARROW",2,1);
if(sRSICross == EMPTY_VALUE ) { sRSISignal = "Cross"; }
But it return nothing
Can anyone please suggest what I missed ?
The cross buffer should be 2 isn't it ?
Thanks in advance :)
The cross buffer is in buffer 3 and 4 which is UpArrow[] and DnArrow[] so the statements might be like this :
if(iCustom(NULL, 0, "Special RSI ARROW",3,1)!=EMPTY_VALUE || iCustom(NULL, 0, "Special RSI ARROW",4,1)!=EMPTY_VALUE) { sRSISignal = "Cross"; }
The cross buffer is in buffer 3 and 4 which is UpArrow[] and DnArrow[] so the statements might be like this :
Works fine, thanks a lot :)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi
This indicator shows arrow up and down when it crossed
How can I use iCustom to get crossed arrow value ?
I try
string sRSISignal;
double sRSICross = iCustom(NULL, 0, "Special RSI ARROW",2,1);
if(sRSICross == EMPTY_VALUE ) { sRSISignal = "Cross"; }
But it return nothing
Can anyone please suggest what I missed ?
The cross buffer should be 2 isn't it ?
Thanks in advance :)