Forum

returning multiple values from a method

Hello, I need to return multiple values from a method. Actually I'm already using a struct but it doesn't work properly (sometimes it returns true value but sometimes returns EMPTY_VALUE ). struct orderValue { double price; double tp; double vol;

Iteration in CheckGroup control

Hello everyone, I'm trying to iterate in a checkgroup control but I can't get the count of items in it. how can i do that? Thank you in advance

SymbolInfoDouble returns SYMBOL_LAST propert of a symbol just for one time

Hello everyone, I need help with SYMBOL_LAST property in SymbolInfoDouble() function string ls; matL.Resize( 8 , 8 ); mat.Resize( 8 , 8 ); double Arr[]; for ( int i= 0 ;i< 8 ;i++) { for ( int j= 0 ;j< 8 ;j++) { str=currency.Major[i];

How can I calculate Gain or Loss percent based on the closing price?

Hello, How can I calculate Gain or Loss percent based on the closing price? Thank you in advance

Access to "Trade" tab in toolbox window

Hello everyone, How can I have access to the orders in "Trade" window of toolbox window using MQL5 code

How to calculate Absolute Currency Strength

Hello Everyone, How I can calculate Absolute Currency Strength. Please look at this link for more details: http://www.articlesbase.com/currency-trading-articles/how-to-trade-with-relative-rcs-and-absolute-acs-currency-strength-3100840.html Thank you very much

Mouteki Indicator in MQL5

Hello everyone, I transfered mouteki indicator's code from MQL4 to MQL5. I want to put take profit and demand lines points in a buffer as an output of this indicator. how can I do that

Oasis indic

Hello Everyone, Do you know how does this indicator calculates every currency's strength? I tried the way used in the excel file but I didn't get the same result. http://www.forexfactory.com/attachment.php?attachmentid=1059901&d=1350469552

How to get last state of a position?

I've written this piece of code on OnTradeTransaction event handler to know whether it is finished or not, but I don't get suitable result. void OnTradeTransaction ( const MqlTradeTransaction &trans, const MqlTradeRequest &request, const MqlTradeResult &result) { ENUM_TRADE_TRANSACTION_TYPE