Indeed, in the event that cost capture SL, EA once again should open up Pending Order. It may actually strike 100 occasions SL, however it should always open up Pending Order upon Delta cost (choosen price). We observe S/R degree. I simply occur EA cost that i wish to bust out.. EA starts Pending Order. In the event that cost retrace as well as strike SL, this starts once again Pending Order upon exact same cost. I’ve altered the actual ea (see hyperlink above) also it appears to function. The actual ea doesn’t deliver Orders therefore the very first Order you’ll have to deliver by hand or even what ever.
in the event that you will find absolutely no errors/bugs I believe which i won’t perform additional adjustments for that ea. You are able to operate the actual ea within the backtester, presently there this starts Orders and also you observe how this functions. You need to change the actual configurations additionally (e. grams. magicnumber, that is 0 with regard to guide trades).
May be the barrier (the pips in between Orderstoploss as well as Ordercloseprice), perform: Put Signal
bool IsSLhit(string image, int kind, dual Ordercloseprice, dual Orderstoploss) ( dual slcpdistance = MathAbs(Ordercloseprice-Orderstoploss)/pips2dbl; in the event that (slcpdistance>SLthresholdPips) return(FALSE); //assume which there is ABSOLUTELY NO sl strike return(true); An additional choice is always to observe in the event that (OrderProfit+Ordercommission+OrderS wap)<0, however which means you just may examine when the Order had been shut within reduction and never when the sl had been strike (when utilizing profittrailing with regard to example), and so i believed We attempt the way in which Used to do. I believe evaluating in the event that Orderstoploss is actually equivalent (==) Ordercloseprice won’t be secure (slippage), therefore we are able to permit a few barrier (default: 5 pips) with regard to thinking about a good Order had been shut within SL.
Others Looked For
- mt4 script open multiple pending orders