Hiệp Lê / Publications
Forum
Hide line of orders and position
Is there any way that I can hide the line on the chart when put the SELL/BUY stop/limit and the the stop loss/take profit line when there is a position. What function of mql5 can I use, any hint, thanks
May be a mistake in Ctrade include?
I am using a Ctrade object for trade execution: trade_obj.Buy(trade_volume, _Symbol ,trade_price,stop_loss,take_profit); the volume, stop loss, take profit is OK, but the price execution , no matter how I set, it always trade at the current price. Is it a mistake in Ctrade library, anyone who meet
array out of range problem
double BodyStick[]; double AboveWick[]; double BelowWick[]; void OnTick () { Candle_update(); } void Candle_update() { int i; for (i= 0 ; i< 10 ; i++) { BodyStick[i] = 1 ; AboveWick[i] = 1 ; BelowWick[i] = 1 ; } } My code is something like above, no
Mt5 event process
Hello, I have written a code, it's something like this: void OnTick () { if (isNewBar()) { buy_signal= false ; sell_signal= false ; if (...) { buy_signal= true ; } else if (...) { sell_signal= true ; } }
Help expiration parameter
Some functions require datetime expiration parameter. I don't really understand what is it for, example I want to create condition to open a long position: bool CExpertSignal::CheckOpenLong(double &price,double &sl,double &tp,datetime &expiration) Is "expiration" the time that this long position
open-close-high-close
Hi I'm very new to EA. How to get the last open-close-high- close price of a candlestick on a specific timeframe