Begonnen om MQL te programmeren, heb hulp nodig bij het wachten op de tweede voorwaarde
Results 1 to 2 of 2

Thread: Begonnen om MQL te programmeren, heb hulp nodig bij het wachten op de tweede voorwaarde

  1. #1
    1 Bijlage (s) Hallo.

    Im programmeren van een eenvoudige indior met behulp van stochastische level cross voor het leren van doel.

    dus het eerste argument is:

    Ingevoegde code if (iStochastic (NULL, PERIOD_CURRENT, _K_period, _D_period, Slowing, MODE_SMA, 0, MODE_MAIN, i) gt; 80 iStochastic (NULL, PERIOD_CURRENT, _K_period, _D_period, Slowing, MODE_SMA, 0, MODE_MAIN, i 1) lt ; 80/Stochastische oscillator kruist de vaste waarde
    dan wil ik wachten om het signaal te schilderen totdat de high sluit onder MA, zonder dat stochastics OB opnieuw moeten bereiken, welke lijn mijn geest gebruikte loops als volgt:

    Code ingevoegd terwijl hoog # 91; i # 93; gt; iMA (NULL, PERIOD_CURRENT, MAfilter, 0, MODE_EMA, PRICE_CLOSE, i 1)/Candlestick High lt; Voortschrijdend gemiddelde (1 1)
    Dus de lus zou lopen totdat de tweede voorwaarde onwaar is, dit veroorzaakte dat mt crashte.

    Schematisch ziet het er zo uit
    https://www.aforexa.com/bitcoin-cryp...tions-mt4.html

  2. #2

    Quote Originally Posted by ;
    Hoi. Im programmeren van een eenvoudige indior met behulp van stochastische level cross voor het leren van doel. dus het eerste argument is: if (iStochastic (NULL, PERIOD_CURRENT, _K_period, _D_period, Slowing, MODE_SMA, 0, MODE_MAIN, i) gt; 80 iStochastic (NULL, PERIOD_CURRENT, _K_period, _D_period, Slowing, MODE_SMA, 0, MODE_MAIN, i 1) lt; 80/Stochastische oscillator kruist de vaste waarde dan wil ik wachten om het signaal te schilderen totdat de high onder MA eindigt, zonder dat stochastics OB opnieuw moeten bereiken, welke lijn mijn geest gebruikte loops als volgt: while High gt; iMA (NULL, ...
    NWGstudent- Probeer zoiets als dit. Ingevoegde Code int cnt = 0; int crossed = 0;/hoofdlus voor (int i = 1; ilt; limit; i ) {double MA_0c = iMA (NULL, 0, Fast_MA_Period, 0, MODE_SMA, PRICE_MEDIAN, i); if (Close # 91; i # 93; lt; MA_0c) {for (int c = 0; clt; 5; c ) {cnt = i c; double Stoch_0c = iStochastic (NULL, PERIOD_CURRENT, _K_period, _D_period, Slowing, MODE_SMA, 0, MODE_MAIN, cnt); double Stoch_0p = iStochastic (NULL, PERIOD_CURRENT, _K_period, _D_period, Slowing, MODE_SMA, 0, MODE_MAIN, cnt 1); if (Stoch_0c lt; 80 Stoch_0p gt; 80) {crosseddown = 1; breken; }}}

Similar Threads

  1. hulp nodig bij het programmeren van 2 SMA's op een indior
    By caweke in forum Cryptocurrencies
    Replies: 3
    Last Post: 12:07,

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.