fredofrompaca:
Hello Guys,
I need your help to modify a parameter of my strategy.
My strategy is composed in 3 indicators which don't match in the same time.
I would like to memorize the sense given by the arrow few candles ago :
//---Arrows
double MHLong = iCustom(NULL,0,"Arrows",1000,1,0);
double MHShort = iCustom(NULL,0,"Arrows",1000,0,0);
I am sure the problem comes from the last "0" -> shift
Your help will be appreciated
thanks
0 is for the current bar, it's always changing.
Maybe you have to use 1 as shift, it's the last closed candle.

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
Hello Guys,
I need your help to modify a parameter of my strategy.
My strategy is composed in 3 indicators which don't match in the same time.
I would like to memorize the sense given by the arrow few candles ago :
//---Arrows
double MHLong = iCustom(NULL,0,"Arrows",1000,1,0);
double MHShort = iCustom(NULL,0,"Arrows",1000,0,0);
I am sure the problem comes from the last "0" -> shift
Your help will be appreciated
thanks