fxDreema

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

    how to repeat horizontal line or how to create loop for horizontal line

    Questions & Answers
    3
    3
    292
    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.
    • A
      akallai86 last edited by

      hello everyone, im trying to loop a horizontal line 10 times. for example every 10 pips draw a horizontal trendline . for example price goes above first trendline draw the second trendline 10 pips away and repeat this steps 10 times for example. is there an easier way as to copy condition 10 times?

      thank you

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

        @akallai86 Not sure if I fully understand. Do you mean 10 lines are drawn on the chart at the same time? Or just one only line at a time but no more than 10 times? I guess it's the second one but then I don't get what happens after 10 times. Could you please explain?

        (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
        • G
          GreXFarrier last edited by

          double price;
          for (int i = 0; i < v::MaxPositions; i++)
          {
          price = NormalizeDouble(SymbolInfoDouble(_Symbol,SYMBOL_BID),_Digits); // Obtener el precio actual del Bid
          price = price - v::distance;
          // Crear una línea horizontal en el precio "price" con grosor de 0.5 y color verde
          string lineName =ObjectCreate(0,"Position " + IntegerToString(i),OBJ_HLINE,0,0,price);
          ObjectSetInteger(0, "Position " + IntegerToString(i), OBJPROP_COLOR, Red);
          ObjectSetInteger(0, "Position " + IntegerToString(i), OBJPROP_WIDTH, 0.5);
          }

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

          Online Users

          T
          J
          B
          A
          T
          M
          E

          21
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors