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: Buying and selling count for one currency only?

      @jstap Thank you very much, the issue has been resolvedI apologize, there seems to be a problem with the notifications. I did not see your reply, but you are always creative, and you deserve all thanks and appreciation.

      posted in Questions & Answers
      khalids222
      khalids222
    • RE: How do I get the number of the oldest open deal?

      @l-andorrà Thank you very much, the issue has been resolved

      posted in Questions & Answers
      khalids222
      khalids222
    • RE: How do I get the number of the oldest open deal?

      @l-andorrà This is what I tried to do and it did not work. Can you explain how, and what is the name?

      posted in Questions & Answers
      khalids222
      khalids222
    • RE: How do I get the number of the oldest open deal?

      @l-andorrà thank you i want candle id please

      posted in Questions & Answers
      khalids222
      khalids222
    • How do I get the number of the oldest open deal?

      How do I get the number of the oldest open position, even though I know its value?
      I have tried many times but to no avail

      https://fxdreema.com/shared/ulTXbvUCc

      posted in Questions & Answers
      khalids222
      khalids222
    • Buying and selling count for one currency only?

      Buying and selling count for one currency only?
      How can I determine it, because the EA calculates all the trades in MetaTrader. for any currency

      posted in Questions & Answers
      khalids222
      khalids222
    • RE: The best way to close buying and selling

      @l-andorrà
      I think that the method of calculating by incrementing a positive number over the sum is incorrect, and this is the cause of the problem, because the result may also be negative.
      I think this way is correct but I don't know if it works well
      FOR CLOSE BUY:
      profit buy - profit sell = R1>+1
      FOR CLOSE SELL : PROFITSELL - PROFIT BUY = R2> +1

      posted in Questions & Answers
      khalids222
      khalids222
    • RE: The best way to close buying and selling

      @l-andorrà said in The best way to close buying and selling:

      Ok. But if I understand what you mean correctly, you don't need to know how many open trades are in profit or in loss, right? You need to take all open trades in profit and then compare them to all those in loss. That is exactly what the block is doing. I don't understand why you say it doesn't work in your case

      Yes, what you understood is correct, I did not say that it does not work, but my problem is only when the two sides are negative. Here the value changes
      My only problem is math
      profitbuy(10) - profitsell(-15) = R1(-5)
      Here is a market that closes at a loss

      posted in Questions & Answers
      khalids222
      khalids222
    • RE: higher high long lower low short EA

      @jordanburch said in higher high long lower low short EA:

      thanks but this is giving me a compile error i need this in mt5 if you would be so kind!

      The same thing just re-used in mt5 not mt4

      posted in Questions & Answers
      khalids222
      khalids222
    • RE: The best way to close buying and selling

      @l-andorrà In the event that the trend is bullish, for example, the purchase will be closed more than once and the sale will not be closed, if we assume that the value of the sales transactions are large despite the closure of the purchase, the total will be a great loss.
      So this simple method you are talking about is inappropriate here.
      But the second option, if you calculate each time the total loss and profit for both parties, the buying deals will not be closed until their profit is higher than the selling trades, so that I guarantee that when the price rises, the purchase and selling will not be closed at a greater loss.
      I want to close when the total BUY is more than the total SELL value or vice versa
      to close buy : profitbuy(10) - profitsell(-15) = R1(-5)
      R1 > 1
      CLOSE BUY

      posted in Questions & Answers
      khalids222
      khalids222
    • RE: higher high long lower low short EA

      @jordanburch
      It may not be that required but I think it will be useful for you with some modification
      https://fxdreema.com/shared/HkMzMUW8d

      posted in Questions & Answers
      khalids222
      khalids222
    • The best way to close buying and selling

      I want to know if these equations are correct? My problem is in the negative value of buying and selling, I don't know if it is correct or not?
      Please help and thank you everyone
      https://fxdreema.com/shared/Z7ohBSl3

      posted in Questions & Answers
      khalids222
      khalids222
    • RE: There is an error in the lot.

      @tipsywisdom Ok thank you, problem is solved, I didn't notice - it was a mistake
      Now it's working fine

      posted in Questions & Answers
      khalids222
      khalids222
    • RE: There is an error in the lot.

      @tipsywisdom said in There is an error in the lot.:

      you have constants and variables that are named similar. this produces (un)anticipatable errors.

      Thank you for your response, but would you explain to me exactly where the problem is, as I understood the similarity of the names?

      posted in Questions & Answers
      khalids222
      khalids222
    • There is an error in the lot.

      I did not understand the current lot how it works?
      There is an error in the lot.
      I don't know where this error is
      https://fxdreema.com/shared/1GQuO2djd

      0_1644422006935_a84e7253-8f22-4098-94d2-25771f660e9c-image.png

      posted in Questions & Answers
      khalids222
      khalids222
    • RE: How do I draw a trade line from the oldest pips with the current price ?

      @l-andorrà said in How do I draw a trade line from the oldest pips with the current price ?:

      Do you mean the oldest candle on chart? The bet way to get it is via custom indicator. Otherwise you would ned a loop so huge that probably would hinder the whole EA.

      My problem is in drawing only, let me say from candle number 500 FOR (15M) to the current price only

      posted in Questions & Answers
      khalids222
      khalids222
    • How do I draw a trade line from the oldest pips with the current price ?

      How do I draw a trade line from the oldest pips with the current price ?
      If the price crosses the line up, I open a buy - and a sell down
      0_1641982392741_شارت  500.jpg

      posted in Questions & Answers
      khalids222
      khalids222
    • RE: How i can get fixed value to candle number

      @jstap Thank you again for your patience and I apologize for the delay in responding to my personal circumstances.
      I know the price is moving but what I mean:
      I will explain it with pictures and details

      posted in Questions & Answers
      khalids222
      khalids222
    • RE: How i can get fixed value to candle number

      @jstap
      Thank you very much, but I am trying to understand this method correctly so that I can put what I want, but it seems to me that there is something wrong.
      As you see when the price changes, you see that the price is moving and not fixed

      https://fxdreema.com/shared/SEIiX9D7c

      posted in Questions & Answers
      khalids222
      khalids222
    • RE: How i can get fixed value to candle number

      second question
      How can I calculate the number of candles from the first deal I opened buy or sell until the current price

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