@l-andorrĂ
I found the error: the deposit variable was equal to zero when I started, so in the one formula it would have divided by 0. Without this formula it does work 
Posts made by floko125
-
RE: EA does not work with objects drawn on chartposted in Questions & Answers
-
RE: EA does not work with objects drawn on chartposted in Questions & Answers
@l-andorrĂ
The problem is that no comment section is draw and the EA seems to not check the ticks at all. It just rushes thru and is instanly finished with testing after I pressed the Start button. -
RE: EA does not work with objects drawn on chartposted in Questions & Answers
@l-andorrĂ
No it do not work. But why? All variables are mentioned and the blocks are connected correctly... -
EA does not work with objects drawn on chartposted in Questions & Answers
Hello, my EA does not work if I add the marked area. Without it, it does work normally. What did I do wrong?
https://fxdreema.com/shared/6Is8ZLmqc -
RE: How to use more decimal places for automatic volume calculation?posted in Questions & Answers
Look, as volume I set 0.29545184. Above the blue "Platzieren" button it says "0,30". Maybe it is a MT4 problem, bacause my broker also has a web platform where I can type in as much decimal places as I want...
-
How to use more decimal places for automatic volume calculation?posted in Questions & Answers
Hello,
When I use the Risk % of Equity to automatically calculate the volume of my position it seems to round the calculation to 2 decimal places. But often it is useful to use for example 0.015742 instead of 0.02, because so the SL volume is more accurate.
Is it possible to set more than 2 decimal places for automatic trading? -
RE: Use the Balace at 10 pm the day before as variableposted in Questions & Answers
@rahim-1
Made it.
Thank you for your help, Sir
-
RE: Use the Balace at 10 pm the day before as variableposted in Questions & Answers
@rahim-1
For EURUSD it works fine. Do you have any ideas why it doens´nt do for HongKong50? -
RE: Use the Balace at 10 pm the day before as variableposted in Questions & Answers
@rahim-1 When I use it, the EA creates no limits.
-
RE: Use the Balace at 10 pm the day before as variableposted in Questions & Answers
Look, the EA starts, but no trades are executed.
-
RE: Use the Balace at 10 pm the day before as variableposted in Questions & Answers
@rahim-1
Thanks, but unfortunately it does not generate trades
-
RE: Use the Balace at 10 pm the day before as variableposted in Questions & Answers
@rahim-1
It seems not to work in backtest. Maybe it is because I am using MT4?
Also I saw that there were the warning "implicit conversion from number to string" when I compiled it. -
RE: Use the Balace at 10 pm the day before as variableposted in Questions & Answers
@rahim-1
Wow, this is awesome
I will check if it works, thank you. -
RE: Use the Balace at 10 pm the day before as variableposted in Questions & Answers
@roar @l-andorrĂ
To specify my problem:
I want my EA to set daily limits for profit and loss. These limits should are a specified percentage of the balance at 22:00 the day before. When the profit or loss limit is reached, all positions shuold be closed and no new positions should be open. But the next day the EA should work normally again until one of the limits are reached, and so on... -
RE: Use the Balace at 10 pm the day before as variableposted in Questions & Answers
@roar Still not working...
-
RE: Use the Balace at 10 pm the day before as variableposted in Questions & Answers
@roar When I do so, it generates the output "constance expected". But even if I use constance instead of variable, the strategy does not generate trades at all when I put the "once per bar" into the EA.
-
RE: Use the Balace at 10 pm the day before as variableposted in Questions & Answers
@l-andorrĂ
But how can I make the EA automatically start again when the next day begins, Sir?
https://fxdreema.com/shared/G2y8sT1xc -
RE: Use the Balace at 10 pm the day before as variableposted in Questions & Answers
@roar At the moment I have to manually set the limits but I want to have this done automatically to have the ability to backtest it.
-
RE: DAILY TARGETposted in Questions & Answers
Look, if I set variable _1 as the balace in the night it only should allow trades in the range between - 7% loss and +7% profit and close all trades if it went out of the range. The problem is when I try to backtest it, no trades are executed. If I set conditions with a specified amount like 20000 and 18000 it does work, so there is a problem with the variable. Any ideas?


