I can't figure out what I'm missing here. I can't get this EA to open a sell position.
I've tried putting in a 'return' after each OrderSend, but that didn't work. It opens a buy position just fine when parameters are met.
Any help would be greatly appreciated.
Check that the parameters are actually met for a SELL condition to exist, PRINT them.
Then check if your OrderSend() is working or not: What are Function return values ? How do I use them ?
what value is val2
why do you have
OP_BUYLIMIT
and
OP_SELLLIMIT
placing trades
what is the value of stoplevel
I think we have to explain everything to you it looks like you have no clue what you are doing.....
So show us how will you know what the value is of val1 , val2, ......
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I can't figure out what I'm missing here. I can't get this EA to open a sell position.
I've tried putting in a 'return' after each OrderSend, but that didn't work. It opens a buy position just fine when parameters are met.
Any help would be greatly appreciated.
Tony