fxDreema

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

    Array out of range error on grid

    Questions & Answers
    2
    2
    43
    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.
    • S
      spyderman last edited by

      Hello,
      I'm trying to make an EA that will basically open a position with every time the market moves "n" pips. Let's say 10. 10 pip stoploss. If market moves 10 pips the EA will move the previous order to BE and open a new position in that direction with a 10 pip s/l. So only one position will be open with a 10 pip risk at a time. All other positions would be at BE until market conditions take them out.

      My problems are probably many but the immediate one is I'm getting an out of array on the "open price" which I'm trying to call up to establish my 10 pip move.

      Here's the link: https://fxdreema.com/shared/Ea7prYTPb

      I appreciate any help with the error or changes to accomplish my goal.

      1 Reply Last reply Reply Quote 0
      • l'andorrà
        l'andorrà last edited by

        The problem is that you are combining two loops one after the other, the 'for each trade' and the BE block. That is why the error arises. You should substitute the BE block for another pink block (modify stops) to move the SL to BE instead.

        (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

        (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

        (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

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

        Online Users

        Y
        E
        G
        D

        18
        Online

        146.9k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors