Forum

Help needed with the Custom Indocator

Hello again, Once again I’ve come to ask for your help. I’ve spent several hours on this indicator and still can’t get it to work. It counts only two bars back and … and nothing. Could any of more experienced coders (that would probably mean most of the readers;) ) tell me what I’ve done wrong

Newbie needs help determining bar shift since last closed order

Hi, I’m new to mql4 and new to programming. I was hopping, someone could help me with this little problem I encountered. I need an EA to determine bar shift since the last closed order. This is what I came up with … int BarsSinceLastOrder() { if ( OrdersHistoryTotal ()< 1 ) { int