1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. 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

New EA TRIANGULAR PRICE CORRECTION

Discussion in 'Expert Advisor atau Robot Forex' started by baiter, 14 Dec 2017.

  1. uchimi

    uchimi Member Credit Hunter

    Equity
    Credit
    Ref Point
    NO, This is not Backtest.
    Today trade !
     
  2. uchimi

    uchimi Member Credit Hunter

    Equity
    Credit
    Ref Point
    IC Mark
    IC markets true ECN account ! Today trade !
     
  3. uchimi

    uchimi Member Credit Hunter

    Equity
    Credit
    Ref Point
    Your Triangular_Price_Correction_Hedge
    &
    Your Set file

    I attached a trade.
    Please look.

    Trede is almost lose the fee.

    Please improve.
     

    Attached Files:

  4. Leppozdrav

    Leppozdrav Member Credit Hunter

    Equity
    Credit
    Ref Point
    Hi,

    Ea is rewritten and you have the clean code, plus additional filters. I think i don't need to repair anything at this point...

    You should do more testing and finding the right settings for you. If that picture is your today's trades...then clearly your commisions on ICmarkets are eating the profits for you. They are too high.

    Here is what you can do;

    1. Forget my set file
    2. Set trailing stop to false
    3. Create your own set file
    4. Backtest it on demo before going live

    I hope this helps.
     
  5. uchimi

    uchimi Member Credit Hunter

    Equity
    Credit
    Ref Point
    ok, Thank you !
     
  6. 25blackogres

    25blackogres Member Credit Hunter

    Equity
    Credit
    Ref Point

    You are the person of the year !!! ))))

    Great job dude, thank you for shearing it with us.

    Have not been here for a while, March was busy by my regular job.
    Will test your new version from monday and be back with results.

    Thanks again.

    25
     
    • Like Like x 1
    • Agree Agree x 1
  7. 25blackogres

    25blackogres Member Credit Hunter

    Equity
    Credit
    Ref Point
    Hi All,

    have question regarding EA. I am testing it on pepperstone razor demo account for a day and have not gone in profit yet. Thing is that most of the time EA closes orders in too small profit or in loss. even if in profit, commission eats it all. Now I am getting message about not enough margin, however I still got 95% free equity .

    Now here is my trading report and screenshot of my setup. Could you please help me to figure out and solve the issue ?

    Sincerely,

    25
     

    Attached Files:

  8. WilliamH

    WilliamH New Member

    Equity
    Credit
    Ref Point
    Thanks a lot!
     
  9. Panzer4183

    Panzer4183 New Member Credit Hunter

    Equity
    Credit
    Ref Point
    Guys there is a bug in calulation of a tp in all versions placed here.
    1. I noticed that in SELL order ea places some times tp above the entry line instead of below entry line. I didnt notice the same issue on Buy orders, but that needs to be checked.
    2. I looked the code, it should take in consideration spread+comm+swap, but unfortunately it doesn't ...it only places 2 POINTS tp on first order which gets you in loss of 3-5 cents per 0.01 lots. So thats the reason why ea is loosing money steadily.
    I am not sure when ea makes average TP for lets say 50 orders, since sometimes average tp closes all trades with minus.


    Also placing a tp or a trailing parameters looks like dont have any influence on things i wrote about.
    Can someone who is programmer recheck ea code and confirm this, since this is a profitable machine if u know how to use it.

    I did the similar system almost 10 years ago and it was profitable, only issue was acc balance, with 50k this system is ATM. Eas presented here on forum are much better then what i used.
     
    • Like Like x 1
  10. Leppozdrav

    Leppozdrav Member Credit Hunter

    Equity
    Credit
    Ref Point

    Thanks for your inputs, I need to check it again.

    I will see, what can be done....maybe it is worth to take another look into it.
     
  11. 25blackogres

    25blackogres Member Credit Hunter

    Equity
    Credit
    Ref Point
    Yup,

    I am experiencing the same.. constant loss.. Does not cover the commissions as well.
     
  12. Leppozdrav

    Leppozdrav Member Credit Hunter

    Equity
    Credit
    Ref Point
    Hey guys,

    I will wait, untill market opens again and then check the code again.
    I need to see the behaviour of Ea in live environment...I will look into the problems, you guys have mentioned.
     
    • Like Like x 1
  13. Leppozdrav

    Leppozdrav Member Credit Hunter

    Equity
    Credit
    Ref Point
    So guys,

    You were write, I found a bug in order opening regarding spread/swap/commission/....Now it's sorted and Ea accounts for that.
    Regarding points and pips calculation; since the total profit was calculated wrongly then the pip calculation that depends on it was calculated wrongly too. This is also now sorted and Ea calculates everything in pips.

    Next point:
    buy TP below the line
    sell TP above the line
    • the expert sums up the total lots and profits. Then it adjusts the TP of the basket of orders to projected TP and the overall TP is calculated over all the orders. That is why sometimes the TP can be "on a wrong side".

    • Added an option to disable TP to be on a "wrong side" (in that case now it will set it to BE - order open price). When the "Disable setting of the take profit to "wrong side"" option is set to true, then in cases like that minimal (or maximal, depending on the order type) is the order open price (that way it can not go to the "wrong side). If that option is set to false, then the expert works as before regarding the TP

      in simple words...set the last parameter to TRUE and Ea will set orders at Break even (no more "wrong side")
      Set it to FALSE and it will work same as before.

      Another point: Regarding hidden trailing stop
    hiding the tp (or sl) for can be done in a normal way when not too much orders are taken into account and when there is no "basket" type of trading included. But when any type of "basket type" trading is in the game the issue is the following.

    Imagine this :
    • 100 orders
    • criteria is reached
    • expert needs to close all 100 orders (since the criteria - either to collect profit - ie : hidden tp, or to close in some loss - ie: hidden sl) and it starts to do that. And then broker returns an error at, let say, order 50.
    • now we have 50 orders opened and the criteria is not there any more and all of a sudden the expert does not "know" what to do
    That is the main problem with hidden sl and / or tp when a large number of orders need to be processed at the same time to fulfill the sl and / or tp criteria : almost sure that it will end in error, and that error can lead to a disaster. I think that it is much safer to use "hard" sl and / or tp.

    So here is the new corrected version, please feel free to test it and report back with your results.
    It should be good enough, to collect some pips.

    Lp
     

    Attached Files:

    • Like Like x 1
  14. Panzer4183

    Panzer4183 New Member Credit Hunter

    Equity
    Credit
    Ref Point
    Thanks LepPozdrav i will put ea to testing assap on m5
     
  15. Panzer4183

    Panzer4183 New Member Credit Hunter

    Equity
    Credit
    Ref Point
    Strange, new Ea doesnt open any orders, i tested it with default settings , everything is checked regarding mt4 default ea setting, smiley is on etc , but ea is not opening any new trades. I tried with putting ea filter option to false, but no new orders.
     
  16. Leppozdrav

    Leppozdrav Member Credit Hunter

    Equity
    Credit
    Ref Point
    Hmm....

    Is anybody else experiencing the same issue?

    One issue might be,
    If account is too small and you set money managment to true...there won't be enough margin for opening trades.

    I will check it again in the evening.
     
  17. Panzer4183

    Panzer4183 New Member Credit Hunter

    Equity
    Credit
    Ref Point
    In my case its demo 7k , MM false. I am out of guess in this case :(
     
  18. Leppozdrav

    Leppozdrav Member Credit Hunter

    Equity
    Credit
    Ref Point
    Hey,

    So, I have just tested EA on live Demo account, and it works as it should on my side.
    Here is my screenshot from couple of seconds ago. Trades were opened immediately, after I uploaded expert advisor.

    It should be traded on EURUSD pair only.
    Also check, allow live trading box.

    [​IMG]
     
  19. Panzer4183

    Panzer4183 New Member Credit Hunter

    Equity
    Credit
    Ref Point
    Damn it i found the issue, Timer was true....sorry for huslting you LepPozdrav. Nov it opened order. Once again sorry.
     
    • Like Like x 1
    • Funny Funny x 1
  20. Leppozdrav

    Leppozdrav Member Credit Hunter

    Equity
    Credit
    Ref Point
    haha...no problem.

    I am glad, that is working for you now....please keep us posted with tests, results, opinions and so on.
     

Share This Page