Expert Advisors: Pipser - page 2

 
Urain:
What a greedy bastard, the spread on the five-digit 35 pips, set the deviation equal to the spread (and it is best to programmatically request the spread, because it is different on different pairs).

2012.03.06 21:05:42 Trades '1037246' : failed instant sell 0.10 EURUSD at 1.31180 sl: 1.32690 [Invalid request].

I tried to run it on my computer at work - everything works fine, but here it doesn't want to - I don't understand what's wrong. I downloaded the terminal from one resource.


 
Aleshka546:

2012.03.06 21:05:42 Trades '1037246' : failed instant sell 0.10 EURUSD at 1.31180 sl: 1.32690 [Invalid request].

I tried to run it on my computer at work - everything works fine, but here it doesn't want to - I don't understand what's wrong.


At what distance do you set Stop Loss? In addition to deviation, the stop may be set too close. It should be no closer than theStop Levels. Right click on the instrument in the Market Watch window and select Specification.... All the necessary information on the symbol will be there.
 
tol64:
At what distance do you set Stop Loss? In addition to deviation, it can also be that the stop is set too close. It should be no closer than theStop Levels. Right click on the instrument in the Market Watch window and select Specification.... There will be all the necessary information on the symbol.
Stops are standard, everything is as it is written in the Expert Advisor. It works fine on another computer, but on my laptop it does not want to - the buttons work once and that's all.
 
Aleshka546:
Stops are standard, everything is as it is written in the Expert Advisor. On another computer it works fine, but on my laptop it doesn't want to - the buttons work once and that's it.
Something there is a mess in the code. Tweaked a little.
Files:
pipser.mq5  5 kb
 
tol64:
There's a bit of a mess in the code. I tweaked it a bit.

Thanks a lot, it works!
 

I tried to put on RTS futures. Orders are opened, but stops are not placed. I suspect that this is related to integers. What should I do? Thank you.

 

Hello.

Is it possible to add take profit, stop loss is a good thing that puts out at once, but it would be great to add more profit, because I have to go to the open order again and put a profit.... Thank you.

 

*****

5

STARS 

 
Andrey Sigitov:

Hello.

Is it possible to add take profit, stop loss is a good thing that puts out at once, but it would be great to add more profit, because I have to go to the open order again and put a profit.... Thank you.

I agree, adding a take profit would be a kind of script on the chart to quickly open a position!!!! Fix who can!!!
 
Ramy Ram #:

Would someone be kind enough to add (take profit and trailing stop ) to this EA.

And how do you get it to place the stoploss from the trade  price when you add trades?  The price moves but the ea places the stoploss at the ask or bid of the market price not the open trade price.

Thank you,

Ramy 

You can try this https://www.mql5.com/en/code/38003