I really don't understand your issue.
But it might be because you are not loading the indicator from the correct directory. When you place the indicator in the wrong directory or with the wrong name the iCustom returns zero and the logic wont be as you wish.
I really don't understand your issue.
But it might be because you are not loading the indicator from the correct directory. When you place the indicator in the wrong directory or with the wrong name the iCustom returns zero and the logic wont be as you wish.
- Adebayo Samson Adewuyi: Hello developers, I have a small issue with iCustom, I don't know what is wrong, e
bool k= OrderSend(NULL,OP_BUY,0.01,Ask,500,Bid-100*Point,Bid+100*Point,NULL,333,0,Blue);
Be careful with NULL.
- On MT4, you can use NULL in place of _Symbol only in those calls that the documentation specially says you can. iHigh does, iCustom does, MarketInfo does not, OrderSend does not.
- Don't use NULL (except for pointers where you explicitly check for it.) Use _Symbol and _Period, that is minimalist as possible and more efficient.
- Zero is the same as PERIOD_CURRENT which means _Period. Don't hard code numbers.
- MT4: No need for a function call with iHigh(NULL,0,s) just use the predefined arrays, i.e. High[].
MT5: create them. - Cloud Protector Bug? - MQL4 programming forum (2020)
- Adebayo Samson Adewuyi: each time I call on the buffer responsible for sell trades are picked on every interval
You say that but haven't provided any proof. Show us your indicator.
-
Be careful with NULL.
- On MT4, you can use NULL in place of _Symbol only in those calls that the documentation specially says you can. iHigh does, iCustom does, MarketInfo does not, OrderSend does not.
- Don't use NULL (except for pointers where you explicitly check for it.) Use _Symbol and _Period, that is minimalist as possible and more efficient.
- Zero is the same as PERIOD_CURRENT which means _Period. Don't hard code numbers.
- MT4: No need for a function call with iHigh(NULL,0,s) just use the predefined arrays, i.e. High[].
MT5: create them. - Cloud Protector Bug? - MQL4 programming forum (2020)
-
You say that but haven't provided any proof. Show us your indicator.
here is the attached indicator, if you can help test or anyone
Thanks
works fine with a buffer (Buy ) but bad with the other (Sell)

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
here is the snippet of the code below.
what could be the issue please >