Fratelli EA by Dragos and magft

Post Reply
User avatar
dynel14
Trader
Posts: 37
Joined: Wed Nov 16, 2011 1:38 am
Location: Cologne/Germany

Re: Fratelli EA by Dragos and magft

Post by dynel14 »

PETE wrote:Hi Dragos/Magft
Loaded Version 2.5 but trades are getting error(131) invalid trade volume ,any ideas?
maybe the risk is to high for your account balance, try to trade with fixed lots
magft
Trader
Posts: 195
Joined: Tue Nov 15, 2011 9:59 pm
Location: East Midlands, UK

Re: Fratelli EA by Dragos and magft

Post by magft »

PETE wrote:Hi Dragos/Magft
Loaded Version 2.5 but trades are getting error(131) invalid trade volume ,any ideas?
Could also be that your trying to set 0.01 and broker minimum is 0.1 maybe? Or maybe Lotstep is 0.1 and not 0.01. Fixed lot size should solve this.

Mike
magft
Trader
Posts: 195
Joined: Tue Nov 15, 2011 9:59 pm
Location: East Midlands, UK

Re: Fratelli EA by Dragos and magft

Post by magft »

Well, the wrong ej entry has turned into a winner fortunately. Still needs to be fixed though.

Just had a GU PO Buy and a EU Buy open whilst writing this.

Mike
You do not have the required permissions to view the files attached to this post.
garyfritz

Re: Fratelli EA by Dragos and magft

Post by garyfritz »

gaheitman wrote:
DragosDanescu wrote:Why not removing indicator from indicators folder and restart?
That's a much better solution. Obviously time for me to make some coffee!
I agree George, that was entirely too obvious!! :lol: But it wasn't at midnight last night. Thanks Dragos and George!
PETE
Posts: 4
Joined: Tue Nov 22, 2011 7:20 pm

Re: Fratelli EA by Dragos and magft

Post by PETE »

Thanks Dynel thats sorted it
PETE
Posts: 4
Joined: Tue Nov 22, 2011 7:20 pm

Re: Fratelli EA by Dragos and magft

Post by PETE »

And thanks Magft
garyfritz

Re: Fratelli EA by Dragos and magft

Post by garyfritz »

PETE, I have the same problem, but ONLY in EURJPY !? I tried setting UseMoneyMgmt to false and that does seem to have fixed it. But I don't understand why -- it was only using a lotsize of 1.93 on a $25k demo account. Furthermore I was getting those order errors in EURJPY when it was heading down with green candles & green MACD so it couldn't have been issuing an entry order. Maybe an exit??

Why am I getting this on EURJPY and not on the other 3?
magft
Trader
Posts: 195
Joined: Tue Nov 15, 2011 9:59 pm
Location: East Midlands, UK

Re: Fratelli EA by Dragos and magft

Post by magft »

garyfritz wrote:PETE, I have the same problem, but ONLY in EURJPY !? I tried setting UseMoneyMgmt to false and that does seem to have fixed it. But I don't understand why -- it was only using a lotsize of 1.93 on a $25k demo account. Furthermore I was getting those order errors in EURJPY when it was heading down with green candles & green MACD so it couldn't have been issuing an entry order. Maybe an exit??

Why am I getting this on EURJPY and not on the other 3?
There is still a bug that needs fixing, maybe to do with BE or TS. If you get a trade context busy it sends the trade, if using ECN, but doesn't set the SL/TP which i think is to do with what George described in earlier post. I'll try and look at this tonight once i have this work finished as the EA is performing well so far but i am keeping an eye on it. If left i'd have had 4 trades with no sl/tp!!!!
User avatar
gaheitman
Trader
Posts: 655
Joined: Tue Nov 15, 2011 10:55 pm
Location: Richmond, VA, US

Re: Fratelli EA by Dragos and magft

Post by gaheitman »

magft wrote: There is still a bug that needs fixing, maybe to do with BE or TS. If you get a trade context busy it sends the trade, if using ECN, but doesn't set the SL/TP which i think is to do with what George described in earlier post. I'll try and look at this tonight once i have this work finished as the EA is performing well so far but i am keeping an eye on it. If left i'd have had 4 trades with no sl/tp!!!!

I dropped the EA on the 1 minute, 5 minute and 15 minute EURJPY to make sure I generated some trades quickly. I had quite a few errors at initial startup, because the actual arrow candle happened so far from the current price. My BUY_STOP had the TP and SL entered correctly, but my BUY either failed with an error or had them in the wrong place. I modified the code to set the price equal to Ask when the code identifies that price is too close to our target (or past it) and then the TP and SL are calculated from there.

Code: Select all

      if(Ask > NormalizeDouble(price-stoplevel*Point,Digits)) { type = OP_BUY; price = Ask;}     

//and later

      if(Bid < NormalizeDouble(price+stoplevel*Point,Digits)) { type = OP_SELL; price = Bid;}     
Once I did that, no more errors.

I'm curious, though, should our target price be set from the high of the arrow bar, or should it be on the high of the first bar where all requirements are met? Wouldn't that always be the previous bar (except in the case of taking a trade the first bar of the day, the signal could have been valid for a while but we weren't trading yet)?

George
garyfritz

Re: Fratelli EA by Dragos and magft

Post by garyfritz »

My understanding is it's on the first bar where all conditions are met. So e.g. if you get a down arrow but the candle is green, you wait until the candle turns red -- then you calculate your PO off the low of the first red candle.
Post Reply

Return to “Automated trading systems”