Forum

zero devide

Hi, Im running into a problem i can't figure out. I try to make the Williams' percentage range indicator but the below part of the code gives a zero devide error all the time but when the /1 part is left out, the code works fine and the given values are according to the code . Alle the used arrays

function returns 0, pls help

Hi all, I am trying to make an indicator that draws the value of the opening price of the current bar divided by the opening price of the bar with a pre set time, in this example 00:00. When calculating the value of the current bar i, it should loop backwards starting from bar i to find the bar with

help needed with too many orders opened.

Hi all, Im quite new to programming and I am trying to make an EA that does the following: When the price gets above a certain level, any pending sell order for the same symbol is deleted and a pending buy is placed at an x number of pips above the current price . The same counts when the price

help needed

Hi, I'm trying to make an EA that only places one trade at the time. I loop through the open orders to see if there is any trade open from this EA. If one of the magic no's is found, trade should be set to true and ordersend should not be executed. Thing is; it doesn't work. While backtesting it

zero devide

Hi, I am new to mql4 and I am trying to set up an ea. The problem is that the error zero devide keeps coming up in my experts tab and when i run a test there is a huge list with this error while trades were also made. From what I have read here on this forum the reason must be a division by zero in