Codering voorwaardelijkepersistente voorwaarden
Results 1 to 2 of 2

Thread: Codering voorwaardelijkepersistente voorwaarden

  1. #1
    Hallo team, mijn warmste en diepste waardering voor alle geweldige geesten hier, actief en op de loer.
    MQL4 coder newbie hier ..

    Ik wist niet zeker waar het juiste forum voor deze post zou moeten zijn, dus als dit niet het juiste forum is, verontschuldig je je dan van tevoren.

    Op zoek naar MQL4-code die ConditionA ((((dData1 dData2) gt; dData3 dData4)) controleert over een terugblikperiode van [X # van balken van periode ()], en als == Waar, als voorwaarde B == Waar, Periode () en vervolgens Kopen.

    Het zou ook moeten controleren of er geen nieuwe voorwaarden zijn, dat wil zeggen: ConditionC deed zich voor tijdens de lookback-periode. Als ConditionC optreedt tijdens dezelfde lookback-periode en ConditionC de meest recente voorwaarde is, annuleert u ConditionA en gebruikt u ConditionC.

    Om het even welke idee�n?
    Alvast bedankt voor uw tijd om dit verzoek te overwegen.

  2. #2
    U zult IF-statements nodig hebben De terugblikdata zouden in andere if-statements binnen indiors zijn, bijv .: voor een MA-cross waar i en i 1 de tijdbalken zijn bool IsMA1CrossMA2Up (int i, int tf = 0) {double p1_1 = iMA ( NULL, tf, MA1_Period, MA1_Shift, MA1_Method, MA1_AppliedPrice, i); dubbele p1_2 = iMA (NULL, tf, MA1_Period, MA1_Shift, MA1_Method, MA1_AppliedPrice, i 1); dubbele p2_1 = iMA (NULL, tf, MA2_Period, MA2_Shift, MA2_Method, MA2_AppliedPrice, i); double p2_2 = iMA (NULL, tf, MA2_Period, MA2_Shift, MA2_Method, MA2_AppliedPrice, i 1); return (p1_1 gt; p2_1! (p1_2 gt; p2_2));

Similar Threads

  1. EA-codering nodig
    By darcok in forum Cryptocurrencies
    Replies: 6
    Last Post: 14:02,
  2. Gratis codering: uw systemen
    By oxartarta in forum Cryptocurrencies
    Replies: 23
    Last Post: 14:38,
  3. Codering van een verticaal label
    By calvitalic in forum Cryptocurrencies
    Replies: 2
    Last Post: 15:50,

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.