OrderSend(Request,Result)

 

Hi,

In which broker can I test sending the position? I have tested several brokers, but they do not allow me.

 
kamalzadeh:

Hi,

In which broker can I test sending the position? I have tested several brokers, but they do not allow me.

just open a demo account either with a broker or metaquotes

discussion of brokers is not permitted in these forums

 
I opened a demo account in several places, but they don't give me access. For example, Blackbull, where can I open a demo account?
 
kamalzadeh #:
I opened a demo account in several places, but they don't give me access. For example, Blackbull, where can I open a trial account?

already answered.....

in your terminal click open account and choose METAQUOTES...

 

   i opened an account on metaquotes but i think my code isn't work.


void OnStart()
  {
//---
   double Ask=SymbolInfoDouble(_Symbol,SYMBOL_ASK);
   double Bid=SymbolInfoDouble(_Symbol,SYMBOL_BID);
   MqlTradeRequest Request;
   MqlTradeResult Result;
   Request.action=TRADE_ACTION_DEAL;
   Request.symbol=_Symbol;
   Request.volume=1;
   Request.sl=Ask-100*Point();
   Request.tp=Ask+200*Point();
   Request.price=SymbolInfoDouble(Symbol(),SYMBOL_LAST);
   Request.type=ORDER_TYPE_BUY;
 
      bool OrderConfirmation = OrderSend(Request,Result);
      Alert("symbol is: "+Request.symbol+"order confirmation is: "+OrderConfirmation+"order result is: "+Result.order);
  }

 

tnx

it worked.
 
orders won't always send if you don't set the  Request.type_filling. Right click any symbol on your broker in market watch, click Specification and see what they use for Filling