Forum

OrderSend() Error 10013 - Invalid request

Hi All, I am having this error when calling OrderSend function . I hope someone can help me. This is error log : 2021.11 . 11 04 : 10 : 45.254 TEST (EURUSD,M5) Alert : Open market order: Error 10013 - Invalid request 2021.11 . 11 04 : 10 : 45.254 TEST (EURUSD,M5) MqlTradeRequest - action: 1

MQL5 : Writing a function to get Position Netting by Magic and Symbol

Hi all, I am writing a function to get the netting for a particular magic and symbol. But somehow I get a very minute amout (0.00000000000000004) at the end of the amount even though the answer should just be 0.3. Can anyone explain why's that happening? Here's the Position Data : Symbol Position

SymbolInfo class Standard Libaray.

Hi was using the Symbolinfo class libray ask and bid function. I puzzle about why it gives out different result compare to the symbolinfodouble function. Eg. CSymbolInfo sinfo; sinfo.Name("EURUSD"); bool isDataSynch = sinfo.IsSynchronized(); if (isDataSynch) { string sym = "EURUSD";

Custom Indicator not drawing when timeframe changed

Hi All, I've written a test custom indicator that uses 2 MA. It drew the indicator fine when I first attached it to a chart however when I changed the timeframe. It somehow only draw the last bar and continue from the latest bar. Please help. PS. There's no error in the expert tab. Here's the code

Strategy Module (Standard Library) Need More Documentation.

Hi All, I am interested in implementing EA through the Strategy Module CExpert Class and etc however reading through the documentation I think it's still lacking. Can anyone point me to any more detail documentation on these classes. Or better is there any examples/explaination (in code) for it

Coding semicolon ; shortcutkey

Hi All, Has anyone solved/has any idea on how to solve the "quality of life" shortcut-key to place semicolon at the end of line when coding on MetaEditor? :)