leonardodv / Publications
Forum
OrderModification Error 1 and 130
i keep getting OrderModification Error 1 and 130, but the ordermodification works perfectly, can some one help me find out why. my code: double SL_BUY = Low[iLowest(NULL, 0, MODE_LOW, 3, 1)]; //trailing stoploss SL_Min = MarketInfo(Symbol(),Mode_StopLevel)*Point; // minimum stoploss distance if( Bid
How to check the total number of open orders?
How to check the total number of open orders? Is there any function can do that? I still don't get the meaning of OrdersTotal(), does it include all current open orders and stop loss/take profit orders? or it only include open orders, if so my problem is solved. hope someone can answer this, sorry
How to open orders at new bar present?
I would like to make an program that can open orders when every new bar presents conditions are 1. new bar present 2. current price higher or lower than the previous bar's high or low 3. does not exceed order limit // how many times it can open order in one direction. e.x. for uptrend, int