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
The language rules do not allow parameters with default values to be swallowed. If you have to set the colour of the arrows, write all parameters to the left of the colour. B slippage 3 is not enough, if it is 5 digits, there will be requotes, I wrote 50. And SL and TP should not be set equal to zero,Aleksey Vakhrushev has already written about it.
It is an error:
Return value of 'OrderSend' should be checkedError:
Return value of 'OrderSend' should be checkedGood afternoon please help.EA only opens for sale.
This is just a warning. The file will compile.
Still not opening the deal.....
Well, I guess it wasn't meant to be... Although it might be worth a look in the magazine to see what it says... Well, that's an option.
Good afternoon please help. The advisor opens only to sell.
It's a strange code I haven't seen before.
The BuyTicket and SellTicket variables will be equal to zero or incomprehensible each time a new tick arrives because they are not initialized.
The construct if(fast_ma1>slow_ma1 && !(fast_ma2>slow_ma2)) is not clear at all when translated into human language this condition looks like this
if fast_ma1 is greater than slow_ma1 AND NOT fast_ma2 is greater than slow_ma2. The ! operator means negation this way: if(fast_ma1>slow_ma1 && (fast_ma2<slow_ma2))
Your condition holds when fast_ma1>slow_ma1 = true (true) and fast_ma2>slow_ma2 = false (false)
This is a strange code I haven't seen before.
The BuyTicket and SellTicket variables will be equal to zero or incomprehensible each time a new tick arrives because they are not initialized.
The construct if(fast_ma1>slow_ma1 && !(fast_ma2>slow_ma2)) is not clear at all when translated into human language this condition looks like this
if fast_ma1 is greater than slow_ma1 AND NOT fast_ma2 is greater than slow_ma2. The ! operator means negation this way: if(fast_ma1>slow_ma1 && (fast_ma2<slow_ma2))
Your condition holds when fast_ma1>slow_ma1 = true (true) and fast_ma2>slow_ma2 = false (false)
I put your code still doesn't open Sell position, just BUY.
ticet = OrderSend(Symbol(),OP_SELL,Lots,Bid,3,Bid+SL*Point,Bid-TP*Point,NULL,0,0,CLR_NONE);