Kid68 / Publications
Forum
More order limit at same price when use For loop
I have a code. I want order Buy Limit. But when used For loop find entry buy limit. Have more order at same price. for(int i = 0; i < ArraySize(Dinh); i++) { if(CountLevel(Dinh[i])=0){ trade.BuyLimit( 0.01 ,Dinh[i], NULL ,DinhtoFVG[i],Dinh[i]+ 500 * _Point ); }} How to have only 1 order at a
How find Min SL of position Sell?
Hello, I want find minium SL of Positions sell. I have code: But return a value is SL of Last Position. Help me. double SLSell(string type, int magicNumber) { double MinSLSell = 0; for(int i= PositionsTotal() - 1; i >= 0 ; i--) { if(PositionSelectByTicket(PositionGetTicket(i))) { string _symbol =
How to count duplicate price at order limit?
Hello, i have problem with my ea. I have more order limit at level price. But EA creat many order with duplication price. I want count order price at level. And I will filter order duplication. How to fix? int OpenSellOrders( double Level) { int sellorders= 0 ; int selllimit= 0 ;