Forum

Order execution problem

Hello, I am looking for the best way to execute a pyramiding strategy using pending orders as stops. Should I use Mqltraderequest or the Trade.mqh classes? Also, I have experimented with both and each have given me problems (even when using a set price as a Stop Loss, not a separate pending stop

Calculating SMA for strategies

hello the Moving Average file includes this function: double SimpleMA(const int position,const int period,const double &price[]) { //--- double result=0.0; //--- check position if(position>=period && period>0) { //--- calculate value for(int i=0;i<period;i++) result+=price[position-i];

Futures / stocks / Forex broker for MT5

Hello, according to the MT5 information, MT5 supports trading of futures as well as stocks. Does anyone know of a broker which plans to implement MT5 trading for futures and / or stocks, as well as forex

Multi-Currency EA for MT5

Hello, my EA can work well on multiple currencies so I would like to test it with the portfolio tester on more than one currency. Is there any recommendations or resources for designing a multi-currency EA for the portfolio tester in MT5? Is it necessary to modularize the EA code and test each

Pyramiding orders w/unique stops in MT5

Hello I am porting my EA from MT4 to MT5. One thing I am having trouble grasping is how to implement pyramiding of orders w/each order having a unique stop in MT5. I understand that I need to use one position and add to that position but am uncertain how to execute the dynamic stops. Does anyone