thanks
ok, sorry, I edit the post

thanks
Please inform us of the error code given.
Also, I suggest that besides the Error, that you also Print both Bid and Ask, so as to see spread, as well as the Stops used (TakeProfit in this case) as well as the Minimum Stop allowed for the symbol in question.
Also, please note that you are using a slippage of 0, leaving no tolerance at all.
Only after you are able to supply us with the extra information will we be able to better understand the problem.
Please inform us of the error code given.
Also, I suggest that besides the Error, that you also Print both Bid and Ask, so as to see spread, as well as the Stops used (TakeProfit in this case) as well as the Minimum Stop allowed for the symbol in question.
Also, please note that you are using a slippage of 0, leaving no tolerance at all.
Only after you are able to supply us with the extra information will we be able to better understand the problem.
thanks for your interest,
as a solution I tried to insert the stop loss in
/ / ---- Input parameters
extern int stoploss = 50;
and change the functions
int ticket = OrderSend (Symbol (), OP_SELL, lotsize_gap, Bid, 0, current_openprice+stoploss,
previous_highprice + * spread_gap point_gap,"", 4, 0, Red);
and
Ticket OrderSend = (Symbol (), OP_BUY, lotsize_gap, Ask, 0, current_openprice-stoploss,
previous_lowprice - spread_gap * point_gap,"", 5, 0, Green);
but it is a bad solution because the stop loss is not adjustable, and also the EA works only on cross JPY
thanks for your interest,
as a solution I tried to insert the stop loss in ...
If you want to us help, you have to provides us with the information requested and follow our suggestions when possible, otherwise you we will just be going around in circles, with no solution to the problem.
So, please read my comments again and try to do as I suggested and provide us with the information requested in order to find a solution.
You've be asked before. Why didn't you?
Play videoPlease edit your post.
For large amounts of code, attach it.
- but it is a bad solution because the stop loss is not adjustable, and also the EA works only on cross JPYSo make your external parameter pips and adjust it for pair and 4/5 digit brokers
extern int stoploss = 50; int ticket = OrderSend (Symbol (), OP_SELL, lotsize_gap, Bid, 0, current_openprice+stoploss,

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
thanks