How do I make it work in this case so that it avoids zero
Posts made by khalids222
-
RE: Why doesn't division work here?posted in Questions & Answers
-
Why doesn't division work here?posted in Questions & Answers
Part of my project depends on division. In this simple project, I tried to see what the problem is. When the expert advisor works, a message appears
Testing pass stopped due to a critical error in the EA
Why division does not work here, who knows please explain to me?https://fxdreema.com/shared/XfLbqKi8

-
RE: lot buy and sellposted in Questions & Answers
@jstap I think your understanding is correct.
Rule
If buy count = sell count
Buy count - sell Count +1Buycount > sell count or vise versa
Fixed lot 0.01
Suppose we have ten buy and ten open sell trades in the market, ،it uses the following ruleSuppose the sell profit and closed will remain ten buy in the market I want a fixed lot to buy. In the event of a sell , it covers all buy transactions
-
lot buy and sellposted in Questions & Answers
I try to create a lot every time it works to subtract the sell from the buy, the difference between them is collected by the other party +0.01
Example
sell= 0.01
buy= 0.01
buy=total buy -total sell + 0.01 = (0.01- 0.01)+ 0.01 = 0.01
Suppose all buy trades are closed and 10 sell trades remain in the market
sell= 0.01
buy = 1.20
sell = total sell - total buy + 0.01 =( 0.01 - 1.20) +0.01 = 1.10+0.01 = 1.20The problem is when the second party is zero, the lot will be doubled, if there are two buys behind some or more, for example
buy = 1.20
sell= 0.01
buy2= total sell - total buy + 0.01 =( 0.01 - 1.20) +0.01 = 1.10+0.01 = 1.20+1.20 = 2.40 -
RE: How do I get average? For open positions multiplied by lotsposted in Questions & Answers
@alphaomega
Oh, thank you again for the sportsmanship. And on the links, I will look at them -
RE: How do I get average? For open positions multiplied by lotsposted in Questions & Answers
@alphaomega The first thing is to thank you for the advice, and I am not upset, and I did not speak until I lowered my voice. It may be the writing or the way of reading that shows you this thing, but I am not upset, and I appreciate everyone who helps me, I consider that we are in this forum brothers, and I did not say that anyone obligated to help me
The first thing is to thank you for the advice, and I am not upset, and I did not speak until I lowered my voice. It may be the writing or the way of reading that shows you this thing, but I am not upset, and I appreciate everyone who helps me, I consider that we are in this forum brothers, and I did not say that anyone obligated to help me.
I don't know how you understood this or where you got it from??
I don't know why you wrote to me in this way? Do you really want to deliver a message to me? You could have delivered it by private message, and I don't know why it was sent to the @jstap ? There is something incomprehensible
In general, to be in the picture, I use Google Translate because I am not good at English.
And if there is something incomprehensible in my writing or an error in the expression or the request, I apologize to everyone and the first person to apologize to you and the creator always who answers me inquiries @jstap -
RE: How do I get average? For open positions multiplied by lotsposted in Questions & Answers
@jstap https://fxdreema.com/shared/HiJpM6TMb
Yes, it does not work. I do not want the value of the lot. I want the average of open trades by number of lots Example:
0.01* 1.12307 = open price here = 1.12307
0.021.12227= open price here = 1.12227 +1.12227
0.03 1.12237 = open price here = 1.12237 + 1.12237 + 1.12237
Average real here : all open price /6 not all open price / 3
It is three trades but the number of lots equals six -
RE: How do I get average? For open positions multiplied by lotsposted in Questions & Answers
@jstap This method did not work, is there another way?
Or how can I save the initial lot value by multiplying the opening price each time -
RE: How do I get average? For open positions multiplied by lotsposted in Questions & Answers
@jstap
I don't know if it will work, but I will try to implement it
Thank you very much, I appreciate your response -
RE: How do I get average? For open positions multiplied by lotsposted in Questions & Answers
@jstap Can you explain more about your method?
-
RE: How do I get average? For open positions multiplied by lotsposted in Questions & Answers
Look at this picture I opened several deals, each deal is a different lots
I want to average these deals -
RE: How do I get average? For open positions multiplied by lotsposted in Questions & Answers
@jstap 1-OPENED PRICE 10 (1LOT)=10
2- OPEEND PRICE 15(2LOT)=30
3- OPENED PRICE 20*(3LOT)=60
4- OPENED PRICE 25*(4LOT)=100
I WANT GET (10+30+60+100/10)=20 -
RE: How do I get average? For open positions multiplied by lotsposted in Questions & Answers
@jstap ok i wiil sent to you to see 2 mint please
-
RE: How do I get average? For open positions multiplied by lotsposted in Questions & Answers
@jstap How can I get the average here? I didn't understand your response or I couldn't find out how to apply it
-
RE: How do I get average? For open positions multiplied by lotsposted in Questions & Answers
@jstap Thank you for the reply, but I didn't understand how things would go. Is it possible to get more clarification in practice?
-
How do I get average? For open positions multiplied by lotsposted in Questions & Answers
How do I get average? For open positions multiplied by lots
Example
1-OPENED PRICE 10 (1LOT)=10
2- OPEEND PRICE 15(2LOT)=30
3- OPENED PRICE 20*(3LOT)=60
4- OPENED PRICE 25*(4LOT)=100
I WANT GET (10+30+60+100/10)=20 -
RE: want your opinion on this project in more than 14 yearsposted in Questions & Answers
Thank you all, your opinions are greatly appreciated. In general, I put it on a demo account for a while and I will see the result
-
want your opinion on this project in more than 14 yearsposted in Questions & Answers

I want your opinion on this project over 14 years ago, I tested it on TICK DATA SUITE
