Henri9323:
After some search, i would like to open an order zith a RSI of 70 and a stop lost of 2 and TP of 2
what is stoploss at 2 and TP of 2??
result=OrderSend(Symbol(),OP_BUY,Lots,Ask,0,2,2,MagicNumber,0,Green);
this is obviously wrong.
please read the documentation
![OrderSend - Trade Functions - MQL4 Reference OrderSend - Trade Functions - MQL4 Reference](https://c.mql5.com/36/20/ordersend-trade-functions-mql4.png)
OrderSend - Trade Functions - MQL4 Reference
- docs.mql4.com
Returns number of the ticket assigned to the order by the trade server or -1 if it fails. To get additional error information, one has to call the GetLastError() function. At opening of a market order (OP_SELL or OP_BUY), only the latest prices of Bid (for selling) or Ask (for buying) can be used as open price. If operation is performed with a...
Mohamad Zulhairi Baba:
what is stoploss at 2 and TP of 2??
this is obviously wrong.
please read the documentation
thank you for tour reply muhamad.
i tried with 20 ( 20 for 2 pips) but is not working..
I don't understand?
is it due to ?
if(Digits==3 || Digits==5) MyPoint=Point*1;
Henri,
before you try to code search first as there is practically nothing that has not been programmed for MQ4/5 yet!
Just search for RSI EA (the lens top right) and you'll have your EA a lot faster!
Don't double post! I deleted your other post!
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
After some search, i would like to open an order zith a RSI of 70 and a stop lost of 2 and TP of 2
That's my code, but it's do not work .
can you help me
Regards,
Henri