fxDreema

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

    More on custom idicators

    Questions & Answers
    2
    2
    505
    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.
    • D
      dscoles last edited by

      Two questions:

      I am using the indicator tester to verify the buffers to use. There are five colors for the indicator RSI0MA_V2 (indicator is attached).

      Here is a picture showing the outcome that I get (always zero) by setting the value of Indicator Mode to 5: Buffer 5 which is where I expect to see the value show up. http://prntscr.com/6vt0r3

      I do not understand how to make this project shared. So, I am attaching a copy of my settings for the indicator tester here: http://prntscr.com/6vt2tm

      BTW, setting the value of Indicator Mode to 1: Buffer 1 does give me the value of the blue line from the RSIOMA_V2 indicator.

      If I put block 3, 4 & 5 on and then realize they should be under block 6, is that still valid? If not, how are blocks in the project renumbered?

      Thanks Very Much

      ......
      RSIOMA_v2.mq4

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

        Here is about block numbers: https://fxdreema.com/demo/blocks-execution-order Block numbers matter only when 2 or more connections comes out of the same output. The same as if you drive a car and the road turns into 2 roads.

        One parameter is missing from the indicator, because can't understand such definition: http://prntscr.com/6vtz28
        You can add some "extern int" to make it work

        Here is how to make it better:

        //---- input parameters
        extern int RSIOMA                      = 14;
        extern ENUM_MA_METHOD RSIOMA_MODE      = MODE_EMA;
        extern ENUM_APPLIED_PRICE RSIOMA_PRICE = PRICE_CLOSE;
        
        extern int Ma_RSIOMA                   = 21;
        extern ENUM_MA_METHOD Ma_RSIOMA_MODE   = MODE_EMA;
        
        extern int BuyTrigger      = 80;
        extern int SellTrigger     = 20;
        
        extern color BuyTriggerColor  = DodgerBlue;
        extern color SellTriggerColor = Magenta;
        
        extern int MainTrendLong   = 50;
        extern int MainTrendShort  = 50;
        
        extern color MainTrendLongColor  = Red;
        extern color MainTrendShortColor = Green;
        
        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post

        Online Users

        M
        R
        S
        C

        14
        Online

        146.7k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors