|
|||||||
| Register in Forex TSD! | |
|
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information |
|
|
|
LinkBack | Thread Tools |
|
|
|||
|
|||
|
Avoid MT4 Broker Stop hunting with market orders only
When an order is placed with a stop order and a take profit order we are placing a stop loss order as an order type of 'ON STOP', and the take profit order is a 'LIMIT' order.
As LIMIT and STOP orders can been seen by the broker, the broker can push price up to take out your orders for there own quick gain. This is called stop hunting. I do not wish to discuss stop hunting here on the thread. Its been fully discussed here : STOP HUNTING: Hardcore Proof that your broker may be cheating on you A way to beat the brokers is to place market orders only. So price is monitored within the EA and a market order is sent once desired price is hit. So market orders are used to enter market and exit market, and the EA monitors prices levels, not the MT4 open orders table. QUESTION: Has any one or are there any examples of MT4 code doing this anywhere ?? Please advise.... |
|
|
|||
|
|||
|
hi
Quote:
did u mean place limit and stop ...with set of TP and SL ? if yes, you can place your order using pending order built in MT4 =================== Forex Indicators Collection |
|
|
|||
|
|||
|
Quote:
Code:
if(TakeProfit != 0)
{
if(CountLongs() != 0)
{
if(Bid >= OrderOpenPrice()+TakeProfit*Point) CloseLongs();
}
if(CountShorts() != 0)
{
if(Ask <= OrderOpenPrice()-TakeProfit*Point) CloseShorts();
}
}
FerruFx |
|
|
|||
|
|||
|
Quote:
Robert |
|
|
|||
|
|||
|
Quote:
I missed something: you send to your broker a value, say 100, and your EA stop at, say 80. Like this the broker can't see your real stop and can't hunt it. Right? If your are disconnected, who send the order to close at 80? I don't understand your method. Thanks for your explanation. FerruFx |
|
|
|||
|
|||
|
Quote:
Robert |
|
|
|||
|
|||
|
Quote:
Thanks Robert. FerruFx |
| Thread Tools | |
|
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| mt4 broker closed my orders?? | jackjones | General Discussion | 2 | 05-23-2007 02:32 PM |
| Lot sum after EA test / Avoid "CLOSE AT STOP" | budhax | Expert Advisors - Metatrader 4 | 4 | 02-16-2007 03:16 AM |
| Two orders and trailing stop | Toccata | Metatrader 4 | 2 | 12-22-2006 01:54 PM |
| Trailing Stop EA for PENDING orders | rjay | Expert Advisors - Metatrader 4 | 1 | 12-05-2006 12:22 PM |
| Are stop orders necessary in EA? | GP2X | General Discussion | 6 | 09-12-2006 06:22 PM |