1. Welcome back! Thank you for being a part of this Traders Community. Let's discuss and share :)
    Selamat datang kembali! Trimakasih telah menjadi bagian dari Komunitas Trader ini. Mari berdiskusi dan berbagi :)
    Dismiss Notice

Suggestion If anyone can help me

Discussion in 'Belajar MQL dari Nol' started by Gold Mastering, 01 Jan 2018.

  1. Gold Mastering

    Gold Mastering Active Member Credit Hunter

    Equity
    Credit
    Ref Point
    Hello,
    I'm new in this forum section, and I'm new in the code Mql4 and I have an EA that is based on the strategy of the martingale everything works only I want him to add the option average trailing stop for it 'active for all lots not every single one, and hide the TP, SL and TS so that the broker does not see them.
    So if anyone can help me I will be very grateful.
    Regards,
    NB: Attached the mql4 file.
     

    Attached Files:

    • EA.mq4
      File size:
      8.4 KB
      Views:
      30
  2. simonfix

    simonfix Member Credit Hunter

    Equity
    Credit
    Ref Point
    good ea
    waiting for coders to help
     
    • Like Like x 1
  3. Gold Mastering

    Gold Mastering Active Member Credit Hunter

    Equity
    Credit
    Ref Point
    Hello,
    thank you my brother all that I know but in code I sulfur I tried so much average TS I did not succeed ... !! if you know the coding does it for me even if it requires money I'm a taker.
    Regards,
     
  4. blackking

    blackking Well-Known Member Credit Hunter

    Equity
    Credit
    Ref Point
    This is smart ea if we can calculated desired loss and profit
    so still using risk management and risk management,
    manual trading on micro account firewoodfx I am still use stop loss manual not ea
     
    • Like Like x 1
  5. Gold Mastering

    Gold Mastering Active Member Credit Hunter

    Equity
    Credit
    Ref Point
    Hello,
    Thx i try it.
     
  6. Gold Mastering

    Gold Mastering Active Member Credit Hunter

    Equity
    Credit
    Ref Point
    Hi,
    Thank you for your help you gave me a very good idea, but you do not find it a conflict of orders close? especially when you put money_profit_to_activate at 5 and money distance at 3.
    Also if you have a money target and money guard I think it will remove the TP, SL, and also the TS at least it does not become necessary.
    If you can see that again.
    Thank you.
     
  7. Gold Mastering

    Gold Mastering Active Member Credit Hunter

    Equity
    Credit
    Ref Point
  8. Gold Mastering

    Gold Mastering Active Member Credit Hunter

    Equity
    Credit
    Ref Point
    Hi,
    I think there is an error in the code, a conflict of close orders, I shared the link so you can get an idea, If i can i will try to fix this error, and you if you have time try on your part ... !! thank you
     
  9. Gold Mastering

    Gold Mastering Active Member Credit Hunter

    Equity
    Credit
    Ref Point
    Hello,
    Ok, thank you very much for your help I am very grateful to you my friend...
    :clap::clap:
     
  10. Gold Mastering

    Gold Mastering Active Member Credit Hunter

    Equity
    Credit
    Ref Point
    Hello,
    I just changed Minute by Hour, and work on a TF M30 or H1, it works without problems...!!
    Code:
       minuto = Hour ();
       if (minuto !=newminuto)
       {
       CountOrder();
       if (nAll==0) Max_Profit =0;   
       if (Profit > Max_Profit) Max_Profit = Profit;
       if (Max_Profit > Money_Profit_to_activate*Lots*100 && Profit < Max_Profit-Money_Distance*Lots*100) CloseAll();
       if (Profit < - Max_Loss) CloseAll(); 
       newminuto = minuto;
       }
    Regards,
     
  11. james brown

    james brown Member

    Equity
    Credit
    Ref Point

Share This Page