Forum

Code not repeating at a tick

void OnTick () { double Middle = iBands ( NULL , 0 , 18 , 2 , 0 , PRICE_CLOSE , MODE_MAIN , 0 ); Alert ( "Middle =" , Middle); Please help with this code. I want it to give me an alert of what the middle of the bollinger band is at each tick. I know it's not practical, but the alert is

EA won't place a trade

Ok Just starting out with coding here, and decided to make a very simple program just to play around with and test. All I want it to do is open a trade, yet, in forward testing, it doesn't open a trade when the criteria is met. Anyone can tell me why?? Here is the code for start int Start() { double

Problem with custom indicator

A friend of mine coded a custom indicator , and gave it to me. It works perfectly well on his PC and other peoples, but not mine. It doesn't give an error or anything, it just doesn't work the way it's supposed to. If anyone can give me advice or pointers on how to get them working properly, that