Page 4 of 8 FirstFirst ... 23456 ... LastLast
Results 31 to 40 of 79
  16 16 Attachment(s)    

Thread: 2000pips daily EA

  1. #31
    Junior Member
    Join Date
    Apr 2010
    Posts
    17

    Default

    Hi guys !
    According to Funyoo's v1.02 coding ECN and STP brokers should work.
    General rule for ECN orders is:
    Make sure the sendorder function place positions WITHOUT SL or TP. Then in the next step add them with OrderModify() if they are non zero.
    Funyoo realized this by the following coding (example extract):
    ... if(BrokerMode!=2 && BrokerMode!=3)OrderSend(Symbol(),OP_SELL,SellLots, Bid,Slippage*mt,sl,tp,"",Magic,0,CLR_NONE);
    else {
    ticket=OrderSend(Symbol(),OP_SELL,SellLots,Bid,Sli ppage*mt,0,0,"",Magic,0,CLR_NONE);
    modification=OrderModify(ticket,OrderOpenPrice(),s l,tp,0,CLR_NONE); ...

  2. #32
    Junior Member
    Join Date
    Apr 2010
    Posts
    17

    Default

    Hi Funyoo,
    is this a Martingale EA ?

  3. #33
    Junior Member
    Join Date
    Apr 2010
    Posts
    17

    Default

    Hi Funyoo,
    what about adding the TimeOut() function you included in The Channel Scalper to limit losses ?

  4. #34
    Junior Member
    Join Date
    Jan 2010
    Posts
    26

    Default

    I quickly checked and indeed, besides two instances of the OrderSend, these follow such rules. furthermore, by default the broker mode is set to 1 ... If you have any other ideas why it may not work let me know ... I'll try to see on my side and let you know.

    X.

  5. #35
    Junior Member
    Join Date
    Mar 2010
    Location
    NSW, Australia
    Posts
    7

    Default

    V1.02 is not compatible with ECN brokers. It requires reprogramming (if anyone has successfully used it on ECN brokers pls let us know). Can anyone help reprogramming?

  6. #36
    Junior Member
    Join Date
    Jan 2010
    Posts
    26

    Default

    Up and running Live on FXCM micro ... the broker variable was not set as external and hardcoded as ECN (you can make the modification in your code as well).
    Now, I would be more than happy to help for ECN. Is it only a matter of Ordersend followed-up by OrderModifiy (which seems fine to me?)
    X.

  7. #37
    Junior Member
    Join Date
    Apr 2010
    Posts
    17

    Default

    Hi XmPh, according to my understanding yes. But tell me please what the Broker variable BrokerMode means .
    I found the following explanation in an FXProMaker EA manual:
    BrokerMode=1 (default)
    This feature makes EA flexible to different broker’s conditions. There 3 modes that can be used here:
    BrokerMode=1. For brokers who allow opening trades with set TP and SL. Most brokers do this.
    BrokerMode=2. For brokers who does not allow opening trades with set TP and SL. If for some reason
    EA does not open any trades after ticks, try manually opening any trade with already set TP and SL. If
    this will not be possible, it means your broker allow you open market trade and only then modify it with
    needed TP and SL. In this case you need to set BrokerMode to “2”.
    BrokerMode=3. For brokers who uses non-standard names for symbols like: USD\JPYFXF, USD\JPYM,
    etc. If your broker uses such symbols, switch BrokerMode to “3”. With this mode EA also will open first 2
    trades without set SL and TP and after 2nd tick will modify orders (BrokersMode=2)
    If this is valid for the 2000pips EA then Funyoo's code should be altered to
    ... if(BrokerMode==1)OrderSend(Symbol(),OP_SELL,SellLo ts, Bid,Slippage*mt,sl,tp,"",Magic,0,CLR_NONE);
    else { ...
    I tried it together with your hint to make BrokerMode an external variable on CollectiveFX (that is BrokerMode = 3) - and it works !
    Unfortunately Funyoo uses different ways to enable ECN in different EAs (e.g. The Channel Scalper is implemented completely different). I'll attach the EA later.
    Last edited by Profitser; 04-22-2010 at 13:00.

  8. #38
    Junior Member
    Join Date
    Apr 2010
    Posts
    17

    Default

    Here is the modified EA with working BrokerMode settings:

    This feature makes EA flexible to different broker’s conditions. There 3 modes that can be used here:

    BrokerMode=1 (default). For brokers who allow opening trades with set TP and SL. Most brokers do this.

    BrokerMode=2. For brokers who does not allow opening trades with set TP and SL. If for some reason EA does not open any trades after ticks, try manually opening any trade with already set TP and SL. If this will not be possible, it means your broker allow you open market trade and only then modify it with needed TP and SL. In this case you need to set BrokerMode to “2”.

    BrokerMode=3. For brokers who uses non-standard names for symbols like: USD\JPYFXF, USD\JPYM,
    etc. If your broker uses such symbols, switch BrokerMode to “3”. With this mode EA also will open first 2 trades without set SL and TP and after 2nd tick will modify orders (BrokersMode=2)
    Attached Files Attached Files

  9. #39
    Junior Member
    Join Date
    Apr 2010
    Posts
    17

    Default

    Quote Originally Posted by lina28 View Post
    Hi again funyoo
    I Can imagine how busy you are with all the request from all the threads but pls when u have the time can u look again in the code. i tried the ea in so many options but still the step multiplyer does not work correctly beyond step 2 with mm on and beyond step 3 withh mm on false. there is no comment in the journal and no margin problem.

    Thank you
    I checked the code here as well and I also see no reason why step 3 should not open. It is a standard switch function: when step 2 is opening the following steps must open as well. There is no coding bug.

  10. #40
    Junior Member
    Join Date
    Jan 2010
    Posts
    26

    Default

    I agree and I tested live that every loop was working (as well as no code bug).

    I found the strategy to be good if using MACD ... meaning trade with the trend basically and use the grid as any other technique to make profit. I'm trying to use "grid hedging" in order to prevent "trend crashing" by recoup open losing lots against a major steady trend (eventually slow trend) that I experienced, at least with my historical datasets, in 2008.

    Let me know if you think of other improvements. I think this strategy has potential. It reminds me of another "grid" strategy that I found interesting few months earlier. I will go and check if these are not "copycats" (disregarding who is what).

Similar Threads

  1. 2000pips daily
    By fxtester in forum Expert advisors live statements
    Replies: 19
    Last Post: 08-09-2010, 23:56
  2. 2000pips daily EA
    By funyoo in forum Expert advisors live statements
    Replies: 14
    Last Post: 01-25-2010, 18:30
  3. Bar Hi Lo Daily TF EU
    By druss in forum Expert advisors backtesting
    Replies: 0
    Last Post: 04-30-2009, 03:59

Tags for this Thread

100, advisor, alpari, automatic, backtest, backtesting, broker, brokers, change, channel, closing, coding, color, copy, correlation, demo, design, ea works, eas, ecn, elite, eur, eur/usd, eurusd, fibonacci, forex, forex4you, free, grid, grid ea, hedge, hedging, high, historical, home, how to, keep profit, live, live account, low, macd, magic, main, manual, martingale, mt4, news, nyse, pips, price action, profit, real, request, resistance, scalper, simple, slippage, spread, stop, stoploss, strategies, strategy, support, system, systems, test, thank you, time, trading, trend, usd

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •