- daily profit
- Help, enter position.
- Help ADX ea
Hi please press this button:
this is my code
if (AccountBalance()<AccountBalance()+4000)
As reset, AccauntBalanc (), every new day ?
this is my code
if (AccountBalance()<AccountBalance()+4000)
As reset, AccauntBalanc (), every new day ?
Can never work.
Please see:
Account Information
Functions that return parameters of the current account.
Function |
Action |
Returns a value of double type of the corresponding account property |
|
Returns a value of integer type (bool, int or long) of the corresponding account property |
|
Returns a value string type corresponding account property |
|
Returns balance value of the current account |
|
Returns credit value of the current account |
|
Returns the brokerage company name where the current account was registered |
|
Returns currency name of the current account |
|
Returns equity value of the current account |
|
Returns free margin value of the current account |
|
Returns free margin that remains after the specified position has been opened at the current price on the current account |
|
Calculation mode of free margin allowed to open orders on the current account |
|
Returns leverage of the current account |
|
Returns margin value of the current account |
|
Returns the current account name |
|
Returns the current account number |
|
Returns profit value of the current account |
|
Returns the connected server name |
|
Returns the value of the Stop Out level |
|
Returns the calculation mode for the Stop Out level |
- docs.mql4.com
I have corrected the code, the new code is
If (.... && AccountBalance () <10007) works, but remains the problem of daily profit. Es. I want you to earn $ 5 a day
So 10007$ stops working, but the next day must resumeI do not believe you.
If (.... && AccountBalance () <10007)
This does not work.
It does not even compile.
Replace the points with a proper statement
Es. Open [0]> Open [1]
Maybe you can actually post some code yourself .
Add the profit/loss of all trades that have been opened today.
If profit > n
Close all trades (if necessary)
Do not open any new trades until tomorrow.
datetime midnight=TimeCurrent()-(TimeCurrent() % 86400);
datetime midnight_tonight=midnight+86400;
Keith Watford:
datetime midnight=TimeCurrent()-(TimeCurrent() % 86400); datetime midnight_tonight=midnight+86400; |
|
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use