fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    How to code a streak of the same indicator?

    Questions & Answers
    2
    2
    515
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      chandlerglover last edited by

      What blocks would you use in MQL5 to get this function [RSI(Close,3) + RSI(Streak,2) + ROC(100)] 3

      1 Reply Last reply Reply Quote 0
      • fxDreema
        fxDreema last edited by

        With blocks - Condition and Formula blocks. Or Conditions and Variables. This can be also written as source code if you create custom block. Something like this...

        
        calculations, calculations, calculations...
        
        if (certain condition) {~next~} else {~inext~}
        

        Here ~next~ and ~inext~ keywords are filled with data in the project, depending on what blocks are to be executed next (inext is for the yellow output).

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post

        Online Users

        Y
        A
        F
        S
        D
        B
        Y

        22
        Online

        146.8k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors