Hulp nodig bij het instellen van iMA
Results 1 to 4 of 4

Thread: Hulp nodig bij het instellen van iMA

  1. #1
    Ik probeer een EA te schrijven en wil dat het programma een beslissing neemt op basis van een MA. Ik wil dat de MA-gebruiker de huidige balk negeert (die bij het vormen) en alleen gegevens uit de volledig gevormde staven gebruikt.

    kijkend naar de syntaxis:

    lt; TABLE height = 100% cellSpacing = 0 cellPadding = 0 width = 100% gt; lt; TBODYgt; lt; TRgt; lt; TD vAlign = top height = 100% gt; lt; TABLE class = docvar cellSpacing = 0 cellPadding = 0 border = 0gt; lt; TBODYgt; lt; TR vAlign = topgt; lt; TDgt; lt; NOBRgt; double iMA (lt;NOBRgt; lt;TDgt; lt; TDgt; string symbol, int timeframe, int period, int ma_shift, int ma_method, int applied_price, int shift)





    lt;TDgt; lt;TRgt; lt;TBODYgt; lt;TABLEgt; is int shift het deel van deze functie waarin ik ge�nteresseerd zou moeten zijn? Als ik int shift instel op -1, negeert de indior nu de huidige vormgevende balk of ben ik zo ver hier vandaan?


    bedankt


    lt;Tgt, lt;TRGT, lt;TBODYgt, lt;tablet;

  2. #2
    Ik denk dat het instellen van de toegepaste prijs op PRICE_CLOSE en het instellen van shift op 1 het gewenste resultaat zou hebben. Ik ben ook half geretarteerd als het aankomt op MT4, dus misschien wil je ook wachten totdat iemand anders antwoordt.

  3. #3

  4. #4
    Hallo Matthew, Loki is op de goede weg, verschuiven naar 1 ziet er 1 balk terug ... 2 twee balken terug enz. Enz. (0 voor huidige balk) .. dus op zoek naar de 34 EMA-waarde van de laatste balk zou zijn: myMA = iMA (Symbol (), NULL, 34, 0, MODE_EMA, PRICE_CLOSE, 1);

Similar Threads

  1. Replies: 0
    Last Post: 04:34,

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.