I am using CTrade class and sending a buylimit request. but I get the result of 1006!
I am using this to get the result code:
Print(trade.ResultRetcode() );
what is the problem ? can anyone help me?
Do you know there is a lot of documentation accessible from MetaEditor or on this side. Have you checked it before posting ?
Error 10006 means your request was rejected, so you probably have an error in your code. You can post it if you need help.
Do you know there is a lot of documentation accessible from MetaEditor or on this side. Have you checked it before posting ?
Error 10006 means your request was rejected, so you probably have an error in your code. You can post it if you need help.
CTrade trade; trade.SetTypeFilling(ORDER_FILLING_RETURN); trade.BuyLimit(2563,3733,"symbolName",0,0,ORDER_TIME_DAY);
this is my code.
What is wrong with it?
I just dont want to mention my symbol name, that is the reason why I have used "symbolName". But I am sure there is no problem with that.
this is my code.
What is wrong with it?
I just dont want to mention my symbol name, that is the reason why I have used "symbolName". But I am sure there is no problem with that.
First parameter of BuyLimit() is volume, are you sure of 2563 ?
Are you sure that ORDER_FILLING_RETURN is available for this symbol and order type ? Are you sure that ORDER_TIME_DAY is available for this symbol ?
First parameter of BuyLimit() is volume, are you sure of 2563 ?
Are you sure that ORDER_FILLING_RETURN is available for this symbol and order type ? Are you sure that ORDER_TIME_DAY is available for this symbol ?
I am testing my code right now, and at this hour of the day, the market is closed.
Can that be the reason of the code : 10006?
when I use a demo account, my code works without any problem but when I use my real account my code does not work and gives error 10006.
what is wrong?!!!
Please help!
I am testing my code right now, and at this hour of the day, the market is closed.
Can that be the reason of the code : 10006?
I suppose that you can't place a buylimit if market is closed. Which kind of symbol is it ? stock, futures ?
stock
I had the same problem with using the trade functions, like ordersend(), when I used them with a demo account I had no problem but with the real accoun I had the same "rejected" problem.
I suppose that you can't place a buylimit if market is closed. Which kind of symbol is it ? stock, futures ?
I suppose that you can't place a buylimit if market is closed. Which kind of symbol is it ? stock, futures ?
hi angevoyageur:
i think sd2000sd talk about iranian stock . ( he dont reply to my pm until now)
i solve my problem like this, for similar condition .
i must add :
I suppose that you can't place a buylimit if market is closed. Which kind of symbol is it ? stock, futures ?
we can put manually , buy limit when market is closed or modify them
but expert can not send order or modify them ( i use void OnTick() )
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I am using CTrade class and sending a buylimit request. but I get the result of 1006!
I am using this to get the result code:
Print(trade.ResultRetcode() );
what is the problem ? can anyone help me?