سلام.
یه ربات درست کردم که با چک کردن سود ترید رو ببنده
روی بک تست به خوبی کار میکنه ولی روی دمو وقتی به اون مقدار سود میرسه ترید رو نمیبنده.
مشکل از کجا میتونه باشه

Posts made by ramin1768
-
RE: گروه روبومستر سلیمانی خواهposted in Questions & Answers
-
"check profit (unrealized)" doesn't work on demo accountposted in Questions & Answers
Hi. I seek guidance regarding an issue I've encountered with an EA I've developed. The EA is designed to close trades based on a predefined profit target (Money) and has demonstrated successful functionality during backtesting.
However, when I conducted tests on a demo account, I observed that the EA does not close trades. -
RE: گروه روبومستر سلیمانی خواهposted in Questions & Answers
@mehrdad-zaiemi said in گروه روبومستر سلیمانی خواه:
دوستان سلام . میدونم این سوال مربوط به اینجا نیست ولی گفتم شاید بتونید راهنمایی کنید . با این دیتاهایی که داریم همه استراتژی ها سود میدن ولی با دیتای تمیز همه شون ضررمیشن . اون سایتی هم که سولی تو وبینار گفت تیک دیتا سویت . اونم به ایرانیا دیتا نمیفروشه . دیتا تمیز از کجا پیدا کنیم ؟
سلام. مطلب شما رو دیدم و به شک افتادم که با ایرانیا واقعا کار میکنن یا نه. به خاطر همین بهشون تیکت زدم و گویا فقط فری تریال رو به ایرانیا بستن و بقیش مشکلی نیست و میشه خرید کرد

-
RE: Lot as per variableposted in Questions & Answers
@ramin1768 said in Lot as per variable:
@l-andorrà said in Lot as per variable:
That depends on the calculations involved. What do you exactly need?
I wanted to discuss how to increase the initial lot size in a martingale system based on equity. Let's say I have a balance of $1000. My plan is to use 2 percent of my balance as the initial lot volume. Could you please guide me on how to calculate 2 percent of my balance into the lot size on EA?
any suggestion?
-
RE: Lot as per variableposted in Questions & Answers
@l-andorrà said in Lot as per variable:
That depends on the calculations involved. What do you exactly need?
I wanted to discuss how to increase the initial lot size in a martingale system based on equity. Let's say I have a balance of $1000. My plan is to use 2 percent of my balance as the initial lot volume. Could you please guide me on how to calculate 2 percent of my balance into the lot size on EA?
-
RE: گروه روبومستر سلیمانی خواهposted in Questions & Answers
@ramin1768 said in گروه روبومستر سلیمانی خواه:
@Mostafataherzadeh10 said in گروه روبومستر سلیمانی خواه:
@ramin1768 باید یک متغیر تعریف کنی بعد بزاری جای لات مارتینگل در بلوک فرمول میتونی بگی بیاد مقدار اکویتی بگیره و مثلا 2 درصد حساب کنه بریزه داخل متغیری که تعریف کردی
ممنون بابت راهنمایی. الان مشکل دیگه اینه که چجوری حساب کنم مقدار 100 دلارم میشه انقدر لات.
مثلا 1000 دلار دارم که یک درصدش شده 10 دلار. حالا چجوری ده دلار رو به لات تبدیل کنم؟
چون بستگی به جفت ارزت یا اینکه طلاس یا ... فرق میکنه ضریبشدوستان یه کمکی در این رابطه میکنید لطفا
-
Lot as per variableposted in Questions & Answers
Hello,
I have a variable as per money that needs to be converted to a lot. Could you please guide me on how to achieve this conversion?
Thank you!
-
RE: گروه روبومستر سلیمانی خواهposted in Questions & Answers
@Mostafataherzadeh10 said in گروه روبومستر سلیمانی خواه:
@ramin1768 باید یک متغیر تعریف کنی بعد بزاری جای لات مارتینگل در بلوک فرمول میتونی بگی بیاد مقدار اکویتی بگیره و مثلا 2 درصد حساب کنه بریزه داخل متغیری که تعریف کردی
ممنون بابت راهنمایی. الان مشکل دیگه اینه که چجوری حساب کنم مقدار 100 دلارم میشه انقدر لات.
مثلا 1000 دلار دارم که یک درصدش شده 10 دلار. حالا چجوری ده دلار رو به لات تبدیل کنم؟
چون بستگی به جفت ارزت یا اینکه طلاس یا ... فرق میکنه ضریبش -
RE: گروه روبومستر سلیمانی خواهposted in Questions & Answers
سلام دوستان.
چطور مارتینگل رو بر اساس درصد اکوییتی یا بالانس استفاده کنیم؟
در قسمت مانی منیجمنت اگر مارتینگل انتخاب بشه فقط میشه لات استفاده کرد. -
RE: Round the number / Remainder divisionposted in Questions & Answers
Final results are:
1-For rounding a variable:
Use code : DoubleToString(variable,2);
2- For finding remainder division
Use code: MathMod(variable1,variable2);For using codes in block: Use "Value" & "Text(code input)"
Thanks everyone for helping me.
-
RE: Round the number / Remainder divisionposted in Questions & Answers
@Pheaktra-Capo Thank you. It solved my problem.
-
RE: Round the number / Remainder divisionposted in Questions & Answers
@jstap said in Round the number / Remainder division:
You just need to add the semi colon:

Thanks a lot. another problem is the result of variable "numbers" through the comment block is the same as before & not affected by custom mql code.
How can I replace the result of DoubleToString(numbers,2); to "numbers" variable? -
RE: Round the number / Remainder divisionposted in Questions & Answers
@jstap said in Round the number / Remainder division:
This code will cut the number of 0.000 from the decimel, DoubleToString(variable,2);
@Pheaktra-Capo said in Round the number / Remainder division:
@jstap add on brother jstap, i can share some example
DoubleToString(AccountEquity(),2)
This will round the result number into 2decimal. If you need 3 decimal, use DoubleToString(AccountEquity(),3)Also this code doesn't work when I add it to "custom mql code" block.
could you check below project & guide me what is the mistake:
https://fxdreema.com/shared/4AcP0ko3b -
RE: Round the number / Remainder divisionposted in Questions & Answers
@jstap said in Round the number / Remainder division:
Yes it's possible something like this will put the result in to the variable, if (First>Second) {result=First-Second}
else {result=Second-First;}This code will cut the number of 0.000 from the decimel, DoubleToString(variable,2);
Would you please check below project regarding remainder of division between 2 variables. I copied the code in "custom mql code" block but it didn't work.
Also I guess the code passes first minus second & vice versa but I need remainder of division between 2 variables. Example: remainder of division between 10 & 4 is 2.
https://fxdreema.com/shared/PwUgOSQlb -
Round the number / Remainder divisionposted in Questions & Answers
Hi everyone,
I've been trying to find information on two specific topics but couldn't locate any relevant blocks.
Rounding a variable:
I'm interested in rounding a number stored in a variable. Is it possible to achieve this using custom MQL code, or are there other ways to do it?Performing remainder division in custom MQL code:
I have three variables named "First," "Second," and "result." I'm trying to find a way to calculate the remainder of the division between "First" and "Second" and store the result in the "result" variable. Could someone please guide me on how to write "First % Second" in "result"?Thank you so much for your help in advance!
