Chihming Tsao / Publications
Forum
ordermodify error 131 - take profit price error
Hello, I am going to use the highest price as take profit price, ans set stop loss price = 0 always. Sometimes the code runs well, sometimes it show error 130, would you please give me some hints to fix this error ? Thanks. for (i= 0 ;i<= OrdersTotal ();i++) { buy_tp= High [ iHighest (
grid trading lot
Hello, I am going to create a function of grid trading lot: if trading direction is long and market price goes down, then multiple the trading lot according to previous order. I think the rule is quite simple, but I always get error message of "invalid lots amount", would you please give me some
how to close chart in web mt4
Hello, I have used web mt4 few days, the functions is quite good but I could not find how to close chart in web mt4. anyone could help this ? Thanks a lot
newbie - place one order in one bar only
Hello, it is mql script in mt4. I have finished open 1 long or short position till it is closed, how could I open order per bar only? once I modified my codes of opening order part, it always creates endless orders in one bar. Thank you
mql loop for cent accout max trading lot
Hi Everyone, Due to my trading account is cent one, the max trading volume is 100lots. If my trading lot is over 100, then EA need to separate into few orders. I am trying to write a do-while statement, but it seems I could not get correct spare trading lots. Please refer my codes below, and kindly
Find Last 2 iHighest
Hi Guys, When the new candle generates, I would like to get the last one and last two iHighest. My code is double lasthi1=iHighest(Symbol(),0,MODE_HIGH,50,1); double lasthi2=iHighest(Symbol(),0,MODE_HIGH,50,2); if(Close[2]>lasthi2 && Close[1] > lasthi1) { return(true); } But it seems I can get last