looks like Aval will be resetet to 0 every time you run in the method.
McBigMoney:
looks like Aval will be resetet to 0 every time you run in the method.
I want codelooks like Aval will be resetet to 0 every time you run in the method.
What you're asking for doesn't make sense.
Can you rephrase it?
As it is hard to determine if you are struggling with a logic error or syntactical error.
Can you rephrase it?
As it is hard to determine if you are struggling with a logic error or syntactical error.
double available; //zero is the default double difference; double sod; if (AccountEquity()!=0) { sod = AccountEquity()/Goal; } else { //deal with it... } if (sod >= available) { available = sod; } else { difference = available - sod; }
focusedbit:
What you're asking for doesn't make sense.
Can you rephrase it?
As it is hard to determine if you are struggling with a logic error or syntactical error.
thanks for comment my problem solved
What you're asking for doesn't make sense.
Can you rephrase it?
As it is hard to determine if you are struggling with a logic error or syntactical error.
double available; //zero is the defaultZero is not the default. There is no default.
- There is no default in MT5If a variable is not initialized explicitly, the value stored in this variable can be any. Implicit initialization is not used.
Language Basics / Variables / Initialization of Variables - Reference on algorithmic/automated trading language for MetaTrader 5 - There is no default in MT4 when you use strict (which you should always use.)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
i want when value of Aval chenge with value of Sod . else value of Aval don't back to first value.
please help
thanks