Forum

Unable to place order because of invalid stops

Hey, In an EA, I place orders like this: MqlTradeRequest request; MqlTradeResult result; request.symbol = Symbol (); request.volume = 0.1 ; request.deviation = 1 ; request.type_filling= ORDER_FILLING_FOK ; request.action = TRADE_ACTION_DEAL ; double askPrice = SymbolInfoDouble ( Symbol

Trouble drawing horizontal lines in indicator

Hey, I am trying to draw horizontal lines in an indicator. Attached is a simple example program of how I am trying to do that. Basically, I am calling "ObjectCreate(chartId, "line", OBJ_HLINE, 0,0,price[n]) to create a horizontal line. But when testing the indicator, I do not see any lines. Any

Help on interpretating test of MAMA expert advisor

Hey, I am just getting comfortable with MT5. I ran on a test on the MAMA expert advisor, and I am confused by the result. See this screenshot: The expert advisor is making quite good choices, but I do not get I it is doing it. I though the MAMA advisor would make buy or sell signals, wenn the two