Yes, it can be done. For example, to place a pending BUY order above the current market price, use an OP_BUYSTOP, first ensuring that the entry price you specify is at least MODE_STOPLEVEL from the current Ask price.
If the stoplevel is not tight enough, you may have to approach it manually by looping around issuing a RefreshRates() and checking if the price has moved 5 pips.
Be aware that although you'll certainly be able to order at a price which at least 5 pips away, it may be greater if the market gaps dramatically.
CB
Yes, it can be done. For example, to place a pending BUY order above the current market price, use an OP_BUYSTOP, first ensuring that the entry price you specify is at least MODE_STOPLEVEL from the current Ask price.
If the stoplevel is not tight enough, you may have to approach it manually by looping around issuing a RefreshRates() and checking if the price has moved 5 pips.
Be aware that although you'll certainly be able to order at a price which at least 5 pips away, it may be greater if the market gaps dramatically.
CB
Hi CB
it worked as you instructed, Thanks
but bad results because bad strategy!!
question
suppose results of backtesting of EA shows NetProfit 5000 and number of trades are 1000
and spread of the pair is 3
means spreads cost 1000X3=3000
and netprofit will drop to 5000-3000=2000?
or the spreads are already deducted by backtester? and netprofit stays 5000
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi
asking if can be done
when getting BUY signal, open order Buy Ticket only after the price goes up 5 pips ( if signal is SELL and the price goes up 5 pips, not to open Buy Ticket)
For Sell signal is in contrary.
Thanks