Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 42
  14 14 Attachment(s)    

Thread: Hma power vs Heiken Ashi

  1. #21
    Administrator funyoo's Avatar
    Join Date
    Sep 2008
    Posts
    7,003

    Default

    Quote Originally Posted by 823 View Post
    Hi Funyoo,

    ok, but in this last version (2.09) with ibfx i have "order send error 130" that in the v 2.08 haven't; are you able to resolve please?

    in this version can you also add multiple takeprofit?
    from position 1
    to position 10
    take profit 1
    position 11
    take profit 2
    position 13
    take profit 3
    position 14
    take profit 4
    from position 15 to others
    take profit 5

    ps also maintening speed backtests

    pss. sorry for my inistance but i've already open an ibfx micro account to test this ea in real account, but untill i haven't errors on backtest and forward test i will not place the ea in a real account.
    Hi 823,

    Here is a new version.
    Attached Files Attached Files

  2. #22

    Default

    Quote Originally Posted by funyoo View Post
    Hi 823,

    Here is a new version.
    Hi Funyoo,

    I've tested the ea, no more error on backtests,
    the EA now it's perfect, but i've made an error of typing the last my post:
    I wrote:
    from position 1
    to position 10
    take profit 1
    position 11
    take profit 2
    position 13
    take profit 3
    position 14
    take profit 4
    from position 15 to others
    take profit 5

    you have made the ea that follow perfect the rulez above; but this is the right set:

    from position 1
    to position 10
    take profit 1
    position 11
    take profit 2
    position 12
    take profit 3
    position 13
    take profit 4
    position 14
    take profit 5
    from position 15 to others
    take profit 6

    can you forgive me and modify the v.2.10 with the last take profits rulez?


    thank you

  3. #23
    Administrator funyoo's Avatar
    Join Date
    Sep 2008
    Posts
    7,003

    Default

    Quote Originally Posted by 823 View Post
    Hi Funyoo,

    I've tested the ea, no more error on backtests,
    the EA now it's perfect, but i've made an error of typing the last my post:
    I wrote:
    from position 1
    to position 10
    take profit 1
    position 11
    take profit 2
    position 13
    take profit 3
    position 14
    take profit 4
    from position 15 to others
    take profit 5

    you have made the ea that follow perfect the rulez above; but this is the right set:

    from position 1
    to position 10
    take profit 1
    position 11
    take profit 2
    position 12
    take profit 3
    position 13
    take profit 4
    position 14
    take profit 5
    from position 15 to others
    take profit 6

    can you forgive me and modify the v.2.10 with the last take profits rulez?


    thank you
    Hi 823,

    For sure, here it is.
    Attached Files Attached Files

  4. #24

    Default

    THANKS.

    To use this ea with 5 digit broker i have just to multiply by 10 "TakeProfit" and "Pips distance"; Is it correct?

  5. #25
    Administrator funyoo's Avatar
    Join Date
    Sep 2008
    Posts
    7,003

    Default

    Quote Originally Posted by 823 View Post
    THANKS.

    To use this ea with 5 digit broker i have just to multiply by 10 "TakeProfit" and "Pips distance"; Is it correct?
    Hi 823,

    There is nothing to do, it will automatically calculate the different parameters.

  6. #26

    Default

    Quote Originally Posted by funyoo View Post
    Hi 823,

    There is nothing to do, it will automatically calculate the different parameters.

    I'm going to choose forex 4 you broker;
    They have a limit not at 50 lots for each order but 100 (in their account 100 lots = 1 lots of ordinary account);
    So can you change in "hma_power2.11.mq4" the maximun lot to 80 lots and if the order need to be moor the ea will place an order for the difference please?

    ex1. for order of 1024 lots it will place:
    12 orders of 80 lots
    and 1 order of 64 lots

    ex2. for order of 307,2 lots it will place:
    3 orders of 80 lots
    and 1 order of 67,20 lots

    ex3 for order of 153,6 lots it will place:
    1 order of 8 lots
    and 1 order of 73,6 lots



    Thank you very much Funyoo!
    Last edited by 823; 12-27-2009 at 11:06.

  7. #27

    Default

    Quote Originally Posted by 823 View Post
    I'm going to choose forex 4 you broker;
    They have a limit not at 50 lots for each order but 100 (in their account 100 lots = 1 lots of ordinary account);
    So can you change in "hma_power2.11.mq4" the maximun lot to 80 lots and if the order need to be moor the ea will place an order for the difference please?

    ex1. for order of 1024 lots it will place:
    12 orders of 80 lots
    and 1 order of 64 lots

    ex2. for order of 307,2 lots it will place:
    3 orders of 80 lots
    and 1 order of 67,20 lots

    ex3 for order of 153,6 lots it will place:
    1 order of 8 lots
    and 1 order of 73,6 lots



    Thank you very much Funyoo!
    I've opened a cent account with forex4you broker;
    Can you modify the Ea with the changes above please?


    Thank you!

  8. #28
    Administrator funyoo's Avatar
    Join Date
    Sep 2008
    Posts
    7,003

    Default

    Quote Originally Posted by 823 View Post
    I've opened a cent account with forex4you broker;
    Can you modify the Ea with the changes above please?


    Thank you!
    Hi 823,

    Here is a new version.
    Attached Files Attached Files

  9. #29

    Default

    Quote Originally Posted by funyoo View Post
    Hi 823,

    Here is a new version.

    Hi,

    There's an error on the code; i tried to solve myself but I'm unable to do it:

    void OpenMarketOrders(){
    int cnt=0;
    if (myOrderType==1 && ContinueOpening) {
    if ((Bid-LastPrice)>=Pips*pt || OpenOrders<1) {
    SellPrice=Bid;
    LastPrice=0;
    if (iTakeProfit==0) { tp=0; }
    else { tp=SellPrice-iTakeProfit*pt; }
    if (StopLoss==0) { sl=0; }
    else { sl=SellPrice+StopLoss*pt; }
    if (OpenOrders!=0) {
    mylotsi=lotsi;
    for(cnt=0;cnt<OpenOrders;cnt++){
    if (MaxTrades>12) { mylotsi=NormalizeDouble(mylotsi*multiply,2); }
    else { mylotsi=NormalizeDouble(mylotsi*multiply,2); }
    }
    } else { mylotsi=lotsi; }
    if(mylotsi<=50)OrderSend(Symbol(),OP_SELL,mylotsi, NormalizeDouble(SellPrice,Digits),slippage*mt,sl,t p,"MyMEFx EA"+MagicNumber,MagicNumber,0,ArrowsColor);
    if(mylotsi>50 && mylotsi<=60){
    OrderSend(Symbol(),OP_SELL,30,NormalizeDouble(Sell Price,Digits),slippage*mt,sl,tp,"MyMEFx EA"+MagicNumber,MagicNumber,0,ArrowsColor);
    OrderSend(Symbol(),OP_SELL,NormalizeDouble(mylotsi-30,1),NormalizeDouble(SellPrice,Digits),slippage*m t,sl,tp,"MyMEFx EA"+MagicNumber,MagicNumber,0,ArrowsColor);
    }
    if(mylotsi>60 && mylotsi<=90){
    OrderSend(Symbol(),OP_SELL,30,NormalizeDouble(Sell Price,Digits),slippage*mt,sl,tp,"MyMEFx EA"+MagicNumber,MagicNumber,0,ArrowsColor);
    OrderSend(Symbol(),OP_SELL,30,NormalizeDouble(Sell Price,Digits),slippage*mt,sl,tp,"MyMEFx EA"+MagicNumber,MagicNumber,0,ArrowsColor);
    OrderSend(Symbol(),OP_SELL,NormalizeDouble(mylotsi-60,1),NormalizeDouble(SellPrice,Digits),slippage*m t,sl,tp,"MyMEFx EA"+MagicNumber,MagicNumber,0,ArrowsColor);
    }
    if(mylotsi>90 && mylotsi<=120){
    OrderSend(Symbol(),OP_SELL,30,NormalizeDouble(Sell Price,Digits),slippage*mt,sl,tp,"MyMEFx EA"+MagicNumber,MagicNumber,0,ArrowsColor);
    OrderSend(Symbol(),OP_SELL,30,NormalizeDouble(Sell Price,Digits),slippage*mt,sl,tp,"MyMEFx EA"+MagicNumber,MagicNumber,0,ArrowsColor);
    OrderSend(Symbol(),OP_SELL,30,NormalizeDouble(Sell Price,Digits),slippage*mt,sl,tp,"MyMEFx EA"+MagicNumber,MagicNumber,0,ArrowsColor);
    OrderSend(Symbol(),OP_SELL,NormalizeDouble(mylotsi-90,1),NormalizeDouble(SellPrice,Digits),slippage*m t,sl,tp,"MyMEFx EA"+MagicNumber,MagicNumber,0,ArrowsColor);
    }
    if(mylotsi>120 && mylotsi<153.6){
    OrderSend(Symbol(),OP_SELL,30,NormalizeDouble(Sell Price,Digits),slippage*mt,sl,tp,"MyMEFx EA"+MagicNumber,MagicNumber,0,ArrowsColor);
    OrderSend(Symbol(),OP_SELL,30,NormalizeDouble(Sell Price,Digits),slippage*mt,sl,tp,"MyMEFx EA"+MagicNumber,MagicNumber,0,ArrowsColor);
    OrderSend(Symbol(),OP_SELL,30,NormalizeDouble(Sell Price,Digits),slippage*mt,sl,tp,"MyMEFx EA"+MagicNumber,MagicNumber,0,ArrowsColor);
    OrderSend(Symbol(),OP_SELL,30,NormalizeDouble(Sell Price,Digits),slippage*mt,sl,tp,"MyMEFx EA"+MagicNumber,MagicNumber,0,ArrowsColor);
    OrderSend(Symbol(),OP_SELL,NormalizeDouble(mylotsi-120,1),NormalizeDouble(SellPrice,Digits),slippage* mt,sl,tp,"MyMEFx EA"+MagicNumber,MagicNumber,0,ArrowsColor);
    }
    if(mylotsi>=153.6 && mylotsi<307.2){
    OrderSend(Symbol(),OP_SELL,8,NormalizeDouble(SellP rice,Digits),slippage*mt,sl,tp,"MyMEFx EA"+MagicNumber,MagicNumber,0,ArrowsColor);
    OrderSend(Symbol(),OP_SELL,73.6,NormalizeDouble(Se llPrice,Digits),slippage*mt,sl,tp,"MyMEFx EA"+MagicNumber,MagicNumber,0,ArrowsColor);
    }
    if(mylotsi>=307.2 && mylotsi<1024){
    OrderSend(Symbol(),OP_SELL,80,NormalizeDouble(Sell Price,Digits),slippage*mt,sl,tp,"MyMEFx EA"+MagicNumber,MagicNumber,0,ArrowsColor);
    OrderSend(Symbol(),OP_SELL,80,NormalizeDouble(Sell Price,Digits),slippage*mt,sl,tp,"MyMEFx EA"+MagicNumber,MagicNumber,0,ArrowsColor);
    OrderSend(Symbol(),OP_SELL,80,NormalizeDouble(Sell Price,Digits),slippage*mt,sl,tp,"MyMEFx EA"+MagicNumber,MagicNumber,0,ArrowsColor);
    OrderSend(Symbol(),OP_SELL,67.2,NormalizeDouble(Se llPrice,Digits),slippage*mt,sl,tp,"MyMEFx EA"+MagicNumber,MagicNumber,0,ArrowsColor);
    }
    if(mylotsi>=1024){
    OrderSend(Symbol(),OP_SELL,80,NormalizeDouble(Sell Price,Digits),slippage*mt,sl,tp,"MyMEFx EA"+MagicNumber,MagicNumber,0,ArrowsColor);
    OrderSend(Symbol(),OP_SELL,80,NormalizeDouble(Sell Price,Digits),slippage*mt,sl,tp,"MyMEFx EA"+MagicNumber,MagicNumber,0,ArrowsColor);
    OrderSend(Symbol(),OP_SELL,80,NormalizeDouble(Sell Price,Digits),slippage*mt,sl,tp,"MyMEFx EA"+MagicNumber,MagicNumber,0,ArrowsColor);
    OrderSend(Symbol(),OP_SELL,80,NormalizeDouble(Sell Price,Digits),slippage*mt,sl,tp,"MyMEFx EA"+MagicNumber,MagicNumber,0,ArrowsColor);
    OrderSend(Symbol(),OP_SELL,80,NormalizeDouble(Sell Price,Digits),slippage*mt,sl,tp,"MyMEFx EA"+MagicNumber,MagicNumber,0,ArrowsColor);
    OrderSend(Symbol(),OP_SELL,80,NormalizeDouble(Sell Price,Digits),slippage*mt,sl,tp,"MyMEFx EA"+MagicNumber,MagicNumber,0,ArrowsColor);
    OrderSend(Symbol(),OP_SELL,80,NormalizeDouble(Sell Price,Digits),slippage*mt,sl,tp,"MyMEFx EA"+MagicNumber,MagicNumber,0,ArrowsColor);
    OrderSend(Symbol(),OP_SELL,80,NormalizeDouble(Sell Price,Digits),slippage*mt,sl,tp,"MyMEFx EA"+MagicNumber,MagicNumber,0,ArrowsColor);
    OrderSend(Symbol(),OP_SELL,80,NormalizeDouble(Sell Price,Digits),slippage*mt,sl,tp,"MyMEFx EA"+MagicNumber,MagicNumber,0,ArrowsColor);
    OrderSend(Symbol(),OP_SELL,80,NormalizeDouble(Sell Price,Digits),slippage*mt,sl,tp,"MyMEFx EA"+MagicNumber,MagicNumber,0,ArrowsColor);
    OrderSend(Symbol(),OP_SELL,80,NormalizeDouble(Sell Price,Digits),slippage*mt,sl,tp,"MyMEFx EA"+MagicNumber,MagicNumber,0,ArrowsColor);
    OrderSend(Symbol(),OP_SELL,80,NormalizeDouble(Sell Price,Digits),slippage*mt,sl,tp,"MyMEFx EA"+MagicNumber,MagicNumber,0,ArrowsColor);
    OrderSend(Symbol(),OP_SELL,64,NormalizeDouble(Sell Price,Digits),slippage*mt,sl,tp,"MyMEFx EA"+MagicNumber,MagicNumber,0,ArrowsColor);
    }
    return(0);
    }
    }


    Is it possible to have all size order correct?
    also if it will open an order of 614,40 lots it will open:

    7 orders of 80 lots
    1 order of 54,40 lots


    Sorry for my insistence Funyoo but I have only to put it on my real account.

    Thanks
    Last edited by 823; 12-29-2009 at 19:01.

  10. #30

    Default

    as you can see also from 0.03 lots it need some modify:




    thanks

Similar Threads

  1. Heiken Ashi 5m
    By Richard Dennis in forum Ideas for expert advisors
    Replies: 1
    Last Post: 09-15-2015, 18:51
  2. Heiken Ashi Indicator Explained What are Heiken Ashi?
    By painofhell in forum Trading discussion
    Replies: 0
    Last Post: 12-21-2014, 23:16
  3. Heiken Ashi EA v3
    By funyoo in forum Expert advisors backtesting
    Replies: 0
    Last Post: 09-20-2009, 19:05
  4. Heiken Ashi EA
    By aly2000 in forum Ideas for expert advisors
    Replies: 1
    Last Post: 06-22-2009, 18:13

Tags for this Thread

100, backtest, backtesting, broker, change, forex, forex broker, forex4you, free, funyoo, heiken ashi, magic, main, martingale, mq4, pips, power, profit, real, slippage, stoploss, system, test

Posting Permissions

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