Forum

How to trigger StopLoss or TakeProfit in Mql4

void OnTradeTransaction ( const MqlTradeTransaction & trans, const MqlTradeRequest & request, const MqlTradeResult & result) { ENUM_TRADE_TRANSACTION_TYPE type=trans.type; if (type== TRADE_TRANSACTION_DEAL_ADD ) { if ( HistoryDealSelect (trans.deal)) {

Trigger Order Limit Excutive MQL4

Hi everyone, Ex: I have 2 order limit ( Buy Limit GOLD 1920 and Sell Limit 1925 ) When the price goes down to match the buy order, is there any way to check if it has matched the order to get information (opening direction) and delete the remaining sell limit order? Thank you

Indicator Supertrend on trading view with formular

Hi everyone. I am currently using Supertrend on TradingView and a similar indicator in MQL5 with the same formula, but the middle line between the two is different. Can someone help me verify which formula is correct to display the middle line similar to the indicator on TradingView? Thank you