fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. khalids222
    3. Posts
    • Profile
    • Following 3
    • Followers 6
    • Topics 108
    • Posts 567
    • Best 9
    • Controversial 2
    • Groups 0

    Posts made by khalids222

    • RE: How can I find the average opening price for the last two positions?

      @bk7
      What I wrote here is not different from what I wrote previously, but here I opened four deals? Assuming that the price did not rise until after opening four deals
      In this case, I want to close the last two deals
      This was clarified in determining the closure of deal No 3 & 4
      Meaning, I want to close the last two deals every time even if the number of deals is one hundred

      posted in Questions & Answers
      khalids222
      khalids222
    • RE: How can I find the average opening price for the last two positions?

      @bk7
      0_1628265764295_da365df9-a138-4798-927d-ff29dbad03f8-image.png

      Whenever the price drops ten points, a buy deal will be opened.
      When the price goes up, there will be only two options:
      Let me explain better

      1- buy = 1280 lot = 0.01
      2- buy = 1270 lot = 0.02
      3- buy= 1260 lot= 0.03
      4- buy = 1250 lot = 0.04 the price here now
      when price rise from 1250 to 1260 i want close number 3 &4 >
      Then there will be two options, the price continues to rise and deals are closed

      The second option is to continue going down, and there will be a certain limit, then it will enter the sell

      posted in Questions & Answers
      khalids222
      khalids222
    • RE: How can I find the average opening price for the last two positions?

      @bk7 https://fxdreema.com/shared/z7qGaVZE

      0_1628263884056_609e8258-b1a2-443d-be53-b911727f6ad0-image.png

      posted in Questions & Answers
      khalids222
      khalids222
    • RE: How can I find the average opening price for the last two positions?

      @bk7 okay so you will never ever have more thant 2open buy positions at the same time, correct?

      yes it is correct
      I will try it

      posted in Questions & Answers
      khalids222
      khalids222
    • RE: How can I find the average opening price for the last two positions?

      @bk7 said in How can I find the average opening price for the last two positions?:

      for me there are open questions:
      how many open buy positions you have max ?
      exceeds, means avg of 2 positions is below current price, if you have more positions you take any positions or is there a rule?
      ist just price a factor or volume as well?
      you take swaps/commissions into account or just price ?

      Suppose I have one buy transaction, and when it go down, I will increase it by one as well. When the price exceeds the value of the buy before the last, I want to close the last two deals.

      1- buy = 1250
      2- buy = 1235
      ave buy price now = 1242.50
      when price highest = 1244
      i want close 2 position this rule for all

      posted in Questions & Answers
      khalids222
      khalids222
    • RE: How can I find the average opening price for the last two positions?

      @bk7 If the price exceeds two buy deals, I want to close these two deals that are less than the price

      posted in Questions & Answers
      khalids222
      khalids222
    • RE: How can I find the average opening price for the last two positions?

      @bk7 Thank you and where will the closure be?

      posted in Questions & Answers
      khalids222
      khalids222
    • RE: How can I find the average opening price for the last two positions?

      @bk7 said in How can I find the average opening price for the last two positions?:

      so you still need the average price of the last 2 openend positions?
      do you need this for all orders no matter buy or sell, or 1 avg for buys and 1 for sells?

      First of all, I apologize for the delay in responding, due to the death of a dear friend of mine.
      Yes, I want it for each one individually
      1 avg for buys and 1 for sells

      posted in Questions & Answers
      khalids222
      khalids222
    • RE: How can I find the average opening price for the last two positions?

      @jstap I'm very sorry, I didn't mean anything, my goal was to open the topic only for participation. It was not my intention to blame or otherwise.
      I thank you for your time and effort

      posted in Questions & Answers
      khalids222
      khalids222
    • RE: How can I find the average opening price for the last two positions?

      @ladydolares
      It's not your fault
      The issue is not resolved

      posted in Questions & Answers
      khalids222
      khalids222
    • RE: How can I find the average opening price for the last two positions?

      @jstap
      The last two deals have not been closed
      0_1627563438709_6b8f14f8-dc66-42b0-9f7b-cbae65c5cf1c-image.png

      posted in Questions & Answers
      khalids222
      khalids222
    • RE: How can I find the average opening price for the last two positions?

      @jstap Overall, thank you very much, I will try

      posted in Questions & Answers
      khalids222
      khalids222
    • RE: How can I find the average opening price for the last two positions?

      @jstap
      In this case, all deals will be closed, not just the last two &This is not required
      0_1627516540952_a8a330f8-eea6-4c1f-8166-d1b351bd6598-image.png

      posted in Questions & Answers
      khalids222
      khalids222
    • RE: How can I find the average opening price for the last two positions?

      @jstap said in How can I find the average opening price for the last two positions?:

      Hello, I have had a look at your project I have taken a picture of a few changed bits, although I haven't tested I think should work.
      I have put the reset variable under on trade, as long as result is used before a new trade is closed it will work fine, as a general rule keeping pink blocks separate seems to work better.

      I appreciate your reply, thanks a lot but it didn't work
      Didn't close the last two deals only the last

      0_1627515171675_bb15388b-26c1-4fd2-ab67-01badbd35274-image.png

      posted in Questions & Answers
      khalids222
      khalids222
    • RE: How can I find the average opening price for the last two positions?

      @jstap @bk7
      First of all, I would like to thank you for your efforts and response, and I want to share part of the project with you to understand what is required more clearly. this link

      https://fxdreema.com/shared/HKa3gDAtd

      Every time the price goes back ten pips down, a buy position will be opened.
      And when the price goes up ten points, the last two deals will be closed, their sum is positive
      In this case, every time the price goes down 10 pips, how do I close the last trade and the one before it? In the event that the ten points variable moves? I need to know the average of the last two trades to close them together

      posted in Questions & Answers
      khalids222
      khalids222
    • RE: How can I find the average opening price for the last two positions?

      @l-andorrà thank you very much

      posted in Questions & Answers
      khalids222
      khalids222
    • RE: How can I find the average opening price for the last two positions?

      @l-andorrà yes i need to close . You can explain

      posted in Questions & Answers
      khalids222
      khalids222
    • How can I find the average opening price for the last two positions?

      How can I find the average opening price for the last two positions?
      If there are five positions .
      i used BUCKET FOR TRADES but it is give me average to all opening price buy or sell - i need average opening price for te last /newest two only

      posted in Questions & Answers
      khalids222
      khalids222
    • RE: I want to close one transaction alternating between buying and selling

      @l-andorrà thank you so much

      posted in Questions & Answers
      khalids222
      khalids222
    • RE: I want to close one transaction alternating between buying and selling

      @vonmunchy thank you so much

      posted in Questions & Answers
      khalids222
      khalids222
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 28
    • 29
    • 6 / 29