Sir,
I used One Symbol but There is no more error in BreakEven.
If I used Multi Symbol but I am getting too many error "Falied Modify Invalid Stop" in BreakEven.
Sir,
I used One Symbol but There is no more error in BreakEven.
If I used Multi Symbol but I am getting too many error "Falied Modify Invalid Stop" in BreakEven.
i do not see any definition of "point". maybe you have not selected the different symbol for the point(s)?
i do not see any definition of "point". maybe you have not selected the different symbol for the point(s)
Sorry Sir,
I removed this code "Breakeven_SL" & I changed this code in "BreakevenGain_SL" but there is no more error in BreakEven.
double Breakeven_SL = MathMax(SymbolInfoInteger(Symbol_param,SYMBOL_TRADE_STOPS_LEVEL) * point,Input_Breakeven); // Removed this Source code double BreakevenGain_SL = MathMax((SymbolInfoInteger(Symbol_param,SYMBOL_TRADE_STOPS_LEVEL)+Spread) * point,Input_BreakevenGain); //Changed "Stoplevel + Spread"
It works very well..
Thanks
Sorry Sir,
I removed this code "Breakeven_SL" & I changed this code in "BreakevenGain_SL" but there is no more error in BreakEven.
It works very well..
Thanks
what i meant was:
What do "point" and Spread mean? what are their values?
If point is not changed for each symbol, then you will get errors, maybe not all the time, but a lot of the time.
show the lines that you have for "point". You have not posted all the lines that we need to see.
double Breakeven_SL = MathMax(SymbolInfoInteger(Symbol_param,SYMBOL_TRADE_STOPS_LEVEL) * point,Input_Breakeven); double BreakevenGain_SL = MathMax(SymbolInfoInteger(Symbol_param,SYMBOL_TRADE_STOPS_LEVEL) * point,Input_BreakevenGain);
see where you have * point, Input_Breakeven);
"point" is not defined or given a value til here. You must have it defined earlier in the code that you did not show.
what i meant was:
What do "point" and Spread mean? what are their values?
If point is not changed for each symbol, then you will get errors, maybe not all the time, but a lot of the time.
show the lines that you have for "point". You have not posted all the lines that we need to see.
see where you have * point, Input_Breakeven);
"point" is not defined or given a value til here. You must have it defined earlier in the code that you did not show.
Sir,I have "point" code because There are different 5 Digits or 4 Digits Broker
Please see this Code :-
// Point double point = 0 ; int OnInit() { //Digits int digits = 1; if(Digits() == 3 || Digits() == 5) { digits = 10; point = Point() * digits; } else if(Digits() <= 2 || Digits() == 4) { digits = 10; point = Point() * 1; } return(INIT_SUCCEEDED); }
No! A "point" is a "point" and should not be changed. Don't confuse "points" with "pips".
The Stops Level is expressed in "points", not "pips". Don't try to change the definition.
Use either the variable "_Point" or the function "Point()". Don't adjust it.
For multi-symbol EAs, you will need to obtain the point size for the symbol using the SymbolInfoDouble function and the "SYMBOL_POINT".
Sir,I have "point" code because There are different 5 Digits or 4 Digits Broker
Please see this Code :-
...and that is exactly what i thought I would see. Your point needs to be changed for each symbol. 1 point is different for every pair. See Master Fernandos' response. Especially the last line.
No! A "point" is a "point" and should not be changed. Don't confuse "points" with "pips".
The Stops Level is expressed in "points", not "pips". Don't try to change the definition.
Use either the variable "_Point" or the function "Point()". Don't adjust it.
For multi-symbol EAs, you will need to obtain the point size for the symbol using the SymbolInfoDouble function and the "SYMBOL_POINT".
any progress and success with this?
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Sir,
I have 20 StopLevel & 19 Spread in OctaFX Broker.
I am getting too many error "Invalid Stop".....(Please see this Attached Photo
What am I wrong this Source code ?
I am using System Function ..