HELP: the order open priceis not the open price of the candle ???? - page 2

 
sadik:

thanks for your time, but i am still confused, in the last chart

the candle open price is 1.27916 and the Buy price(Ask) is 1.28401

so there is delay 1.28401-1.27916=485 pips

and what you mean by turning on the Ask line???

and for the same chart, there is no way to open the order at price 1.27916 or close to it????.

thanks again.



why was your trade not opened at opening candle  ...... ????    

    I   TOLD YOU    are you stupid or do you playing stupid

and no  there is no way to open the order at price 1.27916 or close to it 

 
deVries:


read my explanation why it is not opened at beginning new candle

if you want it then the trade has to be opened at the next candle  


dear deVries i have read your explanationand you are right

but i wonder about one thing

when i observe the chart moving, i see the SAR point appear before begining of the new candle " that mean SAR value be calculated before or at the same time of opening the new candle"

and even if if Buy trades get open at Ask and candle prices are Bid prices " that mean we have shift by 3 pips between Bid and Ask"

what do you think?

and i really appreciate your time,,,, thanks

 
deVries:


why was your trade not opened at opening candle  ...... ????    

    I   TOLD YOU    are you stupid or do you playing stupid

and no  there is no way to open the order at price 1.27916 or close to it 


if you feel it is stuped question so you don't need to answer it...


and thanks for your polite..

 
sadik:

dear deVries i have read your explanationand you are right

but i wonder about one thing

when i observe the chart moving, i see the SAR point appear before begining of the new candle " that mean SAR value be calculated before or at the same time of opening the new candle"

and even if if Buy trades get open at Ask and candle prices are Bid prices " that mean we have shift by 3 pips between Bid and Ask"

what do you think?       I am sure you're wrong  make a template with EA and the indicators name the template as EA

and i really appreciate your time,,,, thanks

 Check the parameters   PRINT them.

   What are Function return values ? How do I use them ?

 

static datetime baropentime;
double sar1=iSAR(NULL,0,Step,Maximum,1);
double close1=iClose(NULL,0,1);
double sar0=iSAR(NULL,0,Step,Maximum,0);
double close0=iOpen(NULL,0,0);

                                                                                                                                              
if(Time[0] != baropentime)
  {
  Print("sar0  ",sar0,"  baropentime  = ",Time[0]);
  baropentime = Time[0];
  }


if((sar1>close1)&& (sar0<close0))

{
int openbuy=OrderSend(Symbol(),OP_BUY,lot,Ask,slippage,NormalizeDouble(Ask-StopLoss*Point,Digits),NormalizeDouble(Ask+TakeProfit*Point,Digits),"MY1 trader buy order",0,0,Green);
Print("tradeopentime  =  ",TimeCurrent(),"  sar0  ",sar0);
}
 
sadik:

if you feel it is stuped question so you don't need to answer it...


and thanks for your polite..

the question was not stupid it was stupid to ask again if you have already this question answered..

Sometimes it is needed to be that polite.. 

Might be you  will  take it more seriously the help you had been given 

Reason: