Forum

unable to create a limit buy stop order, I just get error 4756 any help

MqlTradeRequest trequest; MqlTradeResult tresult; trequest.action= TRADE_ACTION_PENDING ; trequest.type= ORDER_TYPE_BUY_STOP_LIMIT ; trequest.volume= 0.2 ; trequest.price=Ask+( 10 ); trequest.sl= 0 ; //

Strategy tester not working when I turn off visual mode testing

When I test my strategy using the visual mode the trades are executed at the precise and price and time but when i turn the visual mode off. No trades are executed. I have found the problem is in the multi-timeframe indicator am using. When visual mode is turned of it doesn't seem to calculate data

strategy optimizer not working when I use buy and sell stop orders / pending orders instead of market orders.

i have a strategy that can switch between using market orders and stop orders/ pending order . When i switch to pending orders and try to optimize. The optimizer starts with an arbitrary balance max and never changes until all steps are completed any assistance will be highly appreciated. Can share

strategy optimizer not working when i use sell or buy stops

when i switch my ea from trading market order to using sell stops when i try to optimizer the optimizer does nothing

optimizer not working when i use stops(buy and sell) orders

Here is the code snippet am using if (isSell()) // if it is a sell signal { if (trigger_strat) // if the trigger strategy has been selected //(for every signal to next there can only be a maximum of 7 trades) {