fxDreema

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

    Average Price [BOTH SIDE]

    Questions & Answers
    2
    2
    248
    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
      duepips last edited by

      hi, I'm testing various formulas to get an exact opening price for all long and short positions, I tried the example shared here on the average price forum and I could see that it only works well in one direction. I want to create a one condition formula, example: lots size buy! = Lots size sell

      buy lots 0.02! sell lots 0.01 = data1

      open price buy! open price sell = data2

      data2 x data1 / data1 = result (open price both side)

      I still haven't been able to understand how the code calculates the values, if anyone can help me I'm grateful

      jstap 1 Reply Last reply Reply Quote 0
      • jstap
        jstap @duepips last edited by jstap

        @duepips Not too sure what but if you use bucket of trades one for each type and save in to separate variables then use a formula block to divide and put into a separate variable, put all into a comment block so you can check what's happening.

        Learn fxDreema Without the Wait!

        My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

        The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

        Don’t miss out

        Click here➡️ https://mybook.to/fxDreema to get your copy today!

        Enjoy! 😊

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

        Online Users

        H
        G

        6
        Online

        146.7k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors