Check the documentation of OrderSend(), the parameters are not good.
so it should be like this i have to have ,0,0, for stoploss and take profit if i dont want to use them
Ticket = OrderSend(Symbol(),OP_BUY,LotSize,Ask,Slippage,0,0,"Renko-Apfelsaft",MagicNumber,0,clrGreen);
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 got the code from ICoff at forexfactory i wanted to take out the stop loss settings in it and have it just close op on opposite candle
It will open buy orders but not sell orders on sell orders i get error 130 Invalid stops