Anyone got any code to capture the high or low of the bar trade was opened on?? Please note; not the entry price of the order.
Thank you
Dale
Thank you
Dale
"Bullish Engulfing Bar" and "Bearish Engulfing Bar" trade 88 replies
3 Bar Fractal with mid-bar and bar on each side 11 replies
want a code to calculate the zero point for opened positions 2 replies
Can u point me to code 2 show each bar with a higher high & higher low? 2 replies
Pin bar, pin bar, pin bar 0 replies
DislikedAnyone got any code to capture the high or low of the bar trade was opened on?? Please note; not the entry price of the order. Thank you DaleIgnored
DislikedThis looks correct to me, will test the code; int iOrders=OrdersTotal()-1, i; { for(i=iOrders; i>=0; i--) { if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES) ) if((OrderSymbol() == Symbol())) { if((OrderType()<=OP_BUY)&& GetMarketInfo()) { if (iLow(0,0,0) < Low[iBarShift(0,0,0,OrderOpenTime())] ) OrderClose(OrderTicket(),0.04,Ask,10,Red);//Lots? } } } } }Ignored
DislikedHi RaptorUK I have read your article from the link you posted, Can you help me find the appropriate way to find and view errors in the Log and how to view and find errors in the Experts Tab?Ignored