@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.
Posts made by khalids222
-
RE: Buying and selling count for one currency only?posted in Questions & Answers
-
RE: How do I get the number of the oldest open deal?posted in Questions & Answers
@l-andorrà Thank you very much, the issue has been resolved
-
RE: How do I get the number of the oldest open deal?posted in Questions & Answers
@l-andorrà This is what I tried to do and it did not work. Can you explain how, and what is the name?
-
RE: How do I get the number of the oldest open deal?posted in Questions & Answers
@l-andorrà thank you i want candle id please
-
How do I get the number of the oldest open deal?posted in Questions & Answers
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 -
Buying and selling count for one currency only?posted in Questions & Answers
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 -
RE: The best way to close buying and sellingposted in Questions & Answers
@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 -
RE: The best way to close buying and sellingposted in Questions & Answers
@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 -
RE: higher high long lower low short EAposted in Questions & Answers
@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
-
RE: The best way to close buying and sellingposted in Questions & Answers
@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 -
RE: higher high long lower low short EAposted in Questions & Answers
@jordanburch
It may not be that required but I think it will be useful for you with some modification
https://fxdreema.com/shared/HkMzMUW8d -
The best way to close buying and sellingposted in Questions & Answers
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 -
RE: There is an error in the lot.posted in Questions & Answers
@tipsywisdom Ok thank you, problem is solved, I didn't notice - it was a mistake
Now it's working fine -
RE: There is an error in the lot.posted in Questions & Answers
@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?
-
There is an error in the lot.posted in Questions & Answers
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
-
RE: How do I draw a trade line from the oldest pips with the current price ?posted in Questions & Answers
@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
-
How do I draw a trade line from the oldest pips with the current price ?posted in Questions & Answers
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

-
RE: How i can get fixed value to candle numberposted in Questions & Answers
@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 -
RE: How i can get fixed value to candle numberposted in Questions & Answers
@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 -
RE: How i can get fixed value to candle numberposted in Questions & Answers
second question
How can I calculate the number of candles from the first deal I opened buy or sell until the current price