stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

Fratelli EA by Dragos and magft
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=77
Page 2 of 23
Author:  magft [ Thu Nov 24, 2011 9:55 am ]
Post subject:  Re: Fratelli EA by Dragos and magft

Panamamike wrote:
magft wrote:
Panamamike wrote:Can someone share their template for version 2?
This is the my current setup using latest indicators from the Fratelli thread. You don't need all the indicators per se but i find it easier to see what should be happening if trading manually. EA still uses SuperTrend not the SuperTrendmod version, this will be in next release.

Can you guys check it for trading the system correctly as i haven't time today to watch trades.

Mike

Now that I have the template, I will certainly monitor the trades. Of course, today being US thanksgiving I will have to do so via my iPad while eating turkey, ham, ribs, and drinking beer and vino. :)
Now that sounds like a plan :D I have a fun day of troubleshooting process simulations!

Happy Thanksgiving

Mike
Author:  Panamamike [ Thu Nov 24, 2011 10:11 am ]
Post subject:  Re: Fratelli EA by Dragos and magft

Quick question. Is this a London session only setup or London + NY?
Author:  magft [ Thu Nov 24, 2011 10:27 am ]
Post subject:  Re: Fratelli EA by Dragos and magft

Panamamike wrote:Quick question. Is this a London session only setup or London + NY?
Just checked and it is meant to be Frankfurt to London Close and times should be in GMT but i think i have Dragos settings as it is showing start time of 5am and it should be 6am GMT for Frankfurt. They talk about it in the Fratelli thread and time is a good filter for bad trades so i think there is room to adapt. Obviously today best not to trade after London close.

Mike
Author:  DragosDanescu [ Thu Nov 24, 2011 1:10 pm ]
Post subject:  Re: Fratelli EA by Dragos and magft

magft wrote:
Panamamike wrote:Quick question. Is this a London session only setup or London + NY?
Just checked and it is meant to be Frankfurt to London Close and times should be in GMT but i think i have Dragos settings as it is showing start time of 5am and it should be 6am GMT for Frankfurt. They talk about it in the Fratelli thread and time is a good filter for bad trades so i think there is room to adapt. Obviously today best not to trade after London close.

Mike
Mike, there's a copy/paste error into the EarlySL Adjust section. You can take all BE section from mine and paste it into this one, it works like a charm now.
Author:  chaveznqoos [ Thu Nov 24, 2011 1:28 pm ]
Post subject:  Re: Fratelli EA by Dragos and magft

DragosDanescu wrote:
magft wrote:
Panamamike wrote:Quick question. Is this a London session only setup or London + NY?
Just checked and it is meant to be Frankfurt to London Close and times should be in GMT but i think i have Dragos settings as it is showing start time of 5am and it should be 6am GMT for Frankfurt. They talk about it in the Fratelli thread and time is a good filter for bad trades so i think there is room to adapt. Obviously today best not to trade after London close.

Mike
Mike, there's a copy/paste error into the EarlySL Adjust section. You can take all BE section from mine and paste it into this one, it works like a charm now.
Hi;
Dragos/Magft;
Is it possible to add this module to calculate the number of lots, with % of risk?.
I think it can be very useful.
Thanks .
Author:  magft [ Thu Nov 24, 2011 1:38 pm ]
Post subject:  Re: Fratelli EA by Dragos and magft

DragosDanescu wrote:
magft wrote:
Panamamike wrote:Quick question. Is this a London session only setup or London + NY?
Just checked and it is meant to be Frankfurt to London Close and times should be in GMT but i think i have Dragos settings as it is showing start time of 5am and it should be 6am GMT for Frankfurt. They talk about it in the Fratelli thread and time is a good filter for bad trades so i think there is room to adapt. Obviously today best not to trade after London close.

Mike
Mike, there's a copy/paste error into the EarlySL Adjust section. You can take all BE section from mine and paste it into this one, it works like a charm now.
In yours:

Code: Select all

if (EarlySLAdjust)
         {
            if (Bid == NormalizeDouble(OrderOpenPrice () + (Point*EarlySLValue), Digits) && 
                (OrderStopLoss()<OrderOpenPrice()|| OrderStopLoss()==0) && (OrderOpenPrice() - OrderStopLoss() > NormalizeDouble(Point*1.1*EarlySLValue, Digits)))
In mine:

Code: Select all

if (EarlySLAdjust)
     {
         if (Bid >= NormalizeDouble(OrderOpenPrice () + (Point*EarlySLValue), Digits) && 
                   (OrderStopLoss()<OrderOpenPrice()|| OrderStopLoss()==0) && (OrderOpenPrice() - OrderStopLoss() > NormalizeDouble(Point*EarlySLValue, Digits)))
I changed the == to a >= to try and stop the TS issue you mentioned but i am probably wrong. What is the 10% difference used for?
Author:  DragosDanescu [ Thu Nov 24, 2011 1:55 pm ]
Post subject:  Re: Fratelli EA by Dragos and magft

No, that's not an error.
Still I like to use that value to be sure EA doesn't try to move the SL again. Logically, after the move, SL will never have a value bigger than Buffer+10%(can be 1% or whatever, but if I use

Code: Select all

OrderOpenPrice() - OrderStopLoss() > NormalizeDouble(Point*EarlySLValue, Digits)
,

then comes the error too). That's why I used Buffer+ a value, whatever is that, in my case 10%.

About the error is here:

Code: Select all

   if (OrderType()==OP_SELL)
   {
      if (Ask <= OrderOpenPrice() - (Point*BreakEvenPips) &&
              (OrderStopLoss()>OrderOpenPrice()|| OrderStopLoss()==0) && 
--->>>> HERE (OrderStopLoss() - OrderOpenPrice() > NormalizeDouble(Point*EarlySLValue, Digits)))

............ 
   
      if (EarlySLAdjust)
      { 
         if (Ask <= NormalizeDouble(OrderOpenPrice() - (Point*EarlySLValue), Digits) &&
                    (OrderStopLoss()>OrderOpenPrice()|| OrderStopLoss()==0)) 

Damn colors or bold stuff is not working here...
Author:  Xfinity [ Thu Nov 24, 2011 2:07 pm ]
Post subject:  Re: Fratelli EA by Dragos and magft

Anyway to remove the alerts when the EA modifies an order?

"Fratelli EA v2 EURUSD,M10: EURUSD order modify failed with error(1): no error"

I suggest adding something like the following:

if (stop == 0 && take == 0) return; //nothing to do

Thanks for an excellent job so far! Keep it up!
Author:  DragosDanescu [ Thu Nov 24, 2011 2:27 pm ]
Post subject:  Re: Fratelli EA by Dragos and magft

Xfinity wrote:Anyway to remove the alerts when the EA modifies an order?

"Fratelli EA v2 EURUSD,M10: EURUSD order modify failed with error(1): no error"

I suggest adding something like the following:

if (stop == 0 && take == 0) return; //nothing to do

Thanks for an excellent job so far! Keep it up!
There are no more alerts on this one, you still keep getting them? The only error can result from this last bloop that Mike is correcting atm.
Author:  magft [ Thu Nov 24, 2011 2:33 pm ]
Post subject:  Re: Fratelli EA by Dragos and magft

DragosDanescu wrote:
Xfinity wrote:Anyway to remove the alerts when the EA modifies an order?

"Fratelli EA v2 EURUSD,M10: EURUSD order modify failed with error(1): no error"

I suggest adding something like the following:

if (stop == 0 && take == 0) return; //nothing to do

Thanks for an excellent job so far! Keep it up!
There are no more alerts on this one, you still keep getting them? The only error can result from this last bloop that Mike is correcting atm.
:? Cant believe i missed that typo!!! I am just updating at the mo, work can wait :lol:

Do you think we need the == or >= in the EarlySLAdjust, i thought that the TS issue was related to this? Also i have changed the send order code to Steve's latest rev which is more reliable at sending orders. I have added risk based lot sizing and a news filter, they were next to each other in the Invictus EA :lol:

Mike
All times are UTC Page 2 of 23