I have try many time and it not work...
It have some problem,
invalid ticket for OrderModify function
Check what is your initial deposit for testing and your risk size.
This is with initial deposit set to 10.000, stopl loss 20 pips and risk set to 5% (as you can see it is working OK). Also, you have to add some error checking code after each and every operation with an order
Thank you for your answers and helping.
Why deposit set to 10.000 ?
The account balance must need to set?
Don't to set thedeposit set to 10.000, need?
And let the deposit freedom, any deposit also can do.
Just like $500, $800, $1000 also can to working.
Is change or delete this ""MathPow(10,Digits%2)""?
Your lot size depends on : account size, stop loss and risk. If any of the values exceeds some limits you are going to get an invalid lot size and the order will not be opened (that is the error you got - invalid ticket means that the order was not opened at all.
Don't change that part of code. That part of code is checking if your broker is 4 or 5 digit broker. Also, here is a test using a $500 for initial deposit (risk 5% stop loss 20 pips, EURUSD used for test) and it works even with that initial deposit too
Thank again to Mladen.
You are so nice and had the patients to teach me.
I just start to learn coding.
you said to add some error checking code after each and every operation with an order...
I have not learn abouterror checking code, maybe need more time to learn.
Thank you so much, I have learn some coding. Thanks.
is it possible to create an ea that gives signal based on certain conditions like the signals of 3 or 4 indicators meeting predefined conditions.
i want the ea to signal a buy hwen:
ema 8 cross ema 21
qqe above 0
non lag ma is green
and candle is above the ichimoku cloud
any word on this request pls
You do not need EA for that
An indicator can do it (using iCustom() calls and combining the values into one single value). But, in my experience, compound indicators (or signals) tend to lag (they, more or less, give signals when the "slowest" indicator changes the state and gives a signal). The more indicators/conditions you have for a signal, the greater the lag will be
Re:Seek Coding help
could you kindly help me code this indicator from my simple idea, i do not know how to code actually, i want to use the equation of force index (can apply different mode of moving averages, but normalize the vertical scale exactly follow the ways or equations as in RSI or MFI equations. because force index use direct volume to calculate, if normalize is better. Please kindly help. Many thanks.
references Force Index - Oscillators - Technical Analysis;
Force Index, FRC - MQL4 Code Base
Money Flow Index, MFI - MQL4 Code Base
Money Flow Index - Volumes - Technical Analysis
Relative Strength Index, RSI - MQL4 Code Base
Relative Strength Index - Oscillators - Technical Analysis
Not sure if this is exactly what you had in mind, but here you go : this is a rsi of a force index (upper is "pure" force index, lower is the rsi of that force index)