Forum

What value does the HMA return when it changes color?

I am trying to code an HMA EA but I can't figure out what value it returns when it changes from one color to the other. Any assistance will be highly appreciated

"Not all control paths return a value" error

Hello, I am trying to code my system however after compiling it returns the "not all control paths return a value" and when I double click it shows its in the following block, could someone please point out the problem. Thank you in advance bool CalculateCurrentSellOrders( string symbol) { int

Deleting multiple pending orders

I am trying to delete several buylimits orders when the Stochastics are in the overbought area but the code seems not to work. Where is the problem? //------------------------------------------------------------------+ void CheckForDeleteBL() { double DValue; int Total,cmd; bool result;

Opening Multiple Trades

Please help me write the simplest code that when my signal is triggered it opens one market order and four other pending orders at an interval of 25 pips at the same time. The target for all the five orders is 50 pips from the entry price. No stop loss for all the orders