I've attached the mq4 file to this post. Unfortunately the markets are closed for another day, but perhaps you guys can see some errors in the code beforehand?
Anyways, what happens is the system is SAR system and views trades in a series. So say my first trade is stopped out, then a new trade in the opposite direction is placed with similar (or different) TP/SL and lot size figures than the previous trade. It keeps doing this until one of the trades wins, at which point the system resets to the values back on the first trade.
The system has a default where the first trade is always a buy. If the trade that wins is a sell order then it will place a new trade as a sell. If the trade that won is a buy then it places a new buy order with the initial trade settings.
The problem I'm having seems to be that the system has very strict entry prices for the trades and sometimes price will move out of the price range faster than the system can compute the next trade and thus it won't place the trade.
Is there a way around this to just take a market order or buy/sell stop at the current price? I'd much rather have the system continue trading than just stop completely.
Thanks in advance,
Matt
Anyways, what happens is the system is SAR system and views trades in a series. So say my first trade is stopped out, then a new trade in the opposite direction is placed with similar (or different) TP/SL and lot size figures than the previous trade. It keeps doing this until one of the trades wins, at which point the system resets to the values back on the first trade.
The system has a default where the first trade is always a buy. If the trade that wins is a sell order then it will place a new trade as a sell. If the trade that won is a buy then it places a new buy order with the initial trade settings.
The problem I'm having seems to be that the system has very strict entry prices for the trades and sometimes price will move out of the price range faster than the system can compute the next trade and thus it won't place the trade.
Is there a way around this to just take a market order or buy/sell stop at the current price? I'd much rather have the system continue trading than just stop completely.
Thanks in advance,
Matt
Attached File(s)
Ariel_AdvancedSAR_v1_3.mq4
25 KB
|
294 downloads