Can a script do this?
Results 1 to 6 of 6

Thread: Can a script do this?

  1. #1
    Hi All,

    I am pretty new to MQL, but I am getting there. I have coded an EA that basically goes long or short on both the EURUSD and also the USDCHF (ie. Both long or equally short). Considering these two currencies tend to mirror each other, this is somewhat like a hedge. I then get out when I have sufficient profit, and jump back in another way.

    I have 2 problems, the first is that I am not sure about the ideal take profit, and stop losses, and the second is that I am not sure that this system is profitable (though it is showing promising signs). The reason is that I can not backtest this EA. It is a restriction of MT4 that you can only play with 1 currency pair each EA when backtesting.

    What I want to know is, how will I have the ability to backtest this using a script? If not, does anybody have any other suggestions?

  2. #2
    I would suggest using something such as Amibroker or developer.

    I know it's a pain, because you'll need to learn a new scripting language, but it is worth the effort for a far more accurate back-test.

    Frankly, MetaTrader's backtesting is not worth the effort .

    Quote Originally Posted by ;
    Hi All,

    I'm quite new to MQL, but I am getting there. I have researched an EA that basically goes either long or short on both EURUSD and the USDCHF (ie. Either both long or both brief ). Since these two currencies tend to mirror each other, this is somewhat like a hedge. I get out once I have profit, and jump back in the other way.

    I have 2 issues, the first is that I'm not certain about the ideal take profit, and prevent losses, and the second is that I am not sure that this system is profitable (though it is showing promising signs). The reason is that this EA can't be backtested by me. Apparently it is a limitation of MT4 that you can play with 1 currency pair per EA when backtesting.

    What I need to know is, how will I have the ability to backtest this with a script? If not, does anybody have some other suggestions?

  3. #3
    MT4 backtest just 1 pare per time.
    No multapil pare evaluation, sorry.
    However TS can do it very excel many pare, yes.
    thank you.

  4. #4
    Your right mrmikal, it's a pain. The issue with this is I would need to cover these progr, then go to all the effort of learning the following script to test 1 system. I really do think it's a system that was fantastic, but if it turns out to not work, I have wasted a lot of money and time.

  5. #5
    Quote Originally Posted by ;
    I have 2 issues, the first is that I am not sure about the ideal take profit, and stop losses
    I enjoy trading these two pairs and move long on equally also. I utilize the EUR for term pips and disperse the trades out between 30 and 50 pips. I disperse the CHF about 80 to 120 pips and maintain those for the long haul, and insert these transactions both down and up the ladder. Its a nice and safe way. I exchange the longs on the EUR only on dips. Kind of boring and it requires patience, but its profitable.

    By the way, to not seem like I am making a joke or something, but the aforementioned question is asked daily by all traders and is the greatest question to trading. I really don't use stops because one pair goes contrary to you the other is rising. The difference is how you approach the trades along with the spacing. According to I space the CHF out considerably longer and maintain these for the long haul and rarely take profits or utilize stops. If the CHF goes higher, the EUR takes. This protects the profits you made on the CHF. You also gain interest on the CHF by keeping these for the long haul.

    I learned this method from a guy making big money in Forex. You are always hedging with the trades that are EUR although you need to trade little to outlast a move against you.

  6. #6

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.