what error u get?
I realize that the problem is: My indicator shows a entry value always when the bar close, but in the expert I'm asking for the bar[0] signal, so, for this reason it'll never get a enter trade signal.
So, I only have to change this:
Thanks for your interest.
Compra=iCustom(Symbol(),0,"test",1,0); Venda=iCustom(Symbol(),0,"test",0,0); //for Compra=iCustom(Symbol(),0,"test",1,1); Venda=iCustom(Symbol(),0,"test",0,1);
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
Hi, sorry to bother you again guys with my questions.
I've been building experts based on the below structure. It worked for one strategy, and so, I was trying to use the same framework to another expert. I always build an indicator to show -1 for the buy trigger and +1 for the sell trigger. Thus, the indicator which will be used to get the buy and sell signals has the same outputs ( -1;0;1).
The problem is: Although the indicator that I am trying to use shows value ( -1;0;1), when I try to use it on my expert, it does not work (doesn't buy or sell). Do you know why it is happening?
Thanks in advance.