Forum

EA to open a order everytime the conditions are fulfilled

Hey there, I programmed an EA that is working all in all pretty good. But there is one problem, it only open one short and one long order and then wait until these are closed to open the next orders. But I want this EA to open an order every time my conditions are fulfilled. The broker allows that

Calculating Lotsize causes error 4051 invalid lots amount

Dear ladies and gents, I wrote a this code to calculate the Lotsize depending on where the price is in addiction to the StandardDeviation: //Calculating Lotsize double longTradeLotsunrond = (InitialLotSize + (( Ask - MAlong) * (( 2 * InitialLotSize) / ( 4 * StdDevlong)) *(- 1 ))); double

Not working BuySignal, please help a newbie

Dear Gents, I just started coding a little bit with mql4 and after studying some literature I wrote my first own EA. Compiling was without errors, but I cant get my EA to go into positions. My Idea was to open a Buy and a Sell Position at once, when the current Bar is crossing a shortterm Moving