Thare are two expert diagrams below. The logics are the same but results are different. and "C" output must be the same but they differ. Is there anyone to explain it? I have real examples about them . The results always differ. 1. EXAMPLE
//FIRST PROGRAM extern int K=80; extern int D=10; extern int S=15; extern double A,B,C; int start() { double stoccurrM=iStochastic(Symbol(),0,K,D,S,0,0,MODE_MAIN,0); double stocprevM=iStochastic(Symbol(),0,K,D,S,0,0,MODE_MAIN,1); double
Hi, Let us say in an indicator there are three buffers. Can we attend buf_0 (i) minus buf_1 (i-1) to buf_2 (i). Buf_2(i)=buf_0(i)-buf_(i-1). It says out of range error. Why? Notice time difference . (i), (i-1)
On real trade, And if you are using just ask and bid prices in ea for desicions. Does conclusion of ea differ on different timeframes? If you use demo account does it differ
int start() { //IF ORDER'S TOTAL NUMBER BELOW TWO OPEN PENDING ORDERS while ( OrdersTotal ()< 2 ) { int Emiral= OrderSend ( Symbol (),OP_BUYSTOP, 0.1 ,Ask+MarketInfo( Symbol (),MODE_STOPLEVEL)* Point , 3 ,Ask- 500 * Point
When i open a pending order it produces ticket number,ordertype etc.and can learn them with orderselect function . But after the pending order realizes and it becomes a market order,does its ticket number,ordertype change and becomes a new order?and
int start() { //PIYASADA EMIR YOK ISE İKİ ADET EMİR AÇ //MEVCUT BIDIN //20 PIPS ASAGISINDA SATIM EMRİ AÇ //20 PIPS YUKARISINDA ALIM EMRI AÇ //1000 PIPS TP //500 PIPS STOPLOSS RefreshRates(); double XAL=MarketInfo( Symbol (),MODE_ASK); double
int start() { //PIYASADA EMIR YOK ISE İKİ ADET EMİR AÇ //MEVCUT BIDIN //20 PIPS ASAGISINDA SATIM EMRİ AÇ //20 PIPS YUKARISINDA ALIM EMRI AÇ //1000 PIPS TP //500 PIPS STOPLOSS RefreshRates(); double XAL=MarketInfo( Symbol (),MODE_ASK); double
int start() { RefreshRates(); double XAL=Ask; int EMIR= OrderSend ( Symbol (),OP_BUY, 1 , 3 ,XAL+ 20 * Point ,XAL- 1000 * Point ,XAL+ 500 * Point , 0 ); return ; } iI am triying to open pending order 20 pips above the ask price. But always gives
at the below program. case zero does not work and Alert ( "ITERATION................0" ) does not realize. but case 1 occurs continuously. why does not case zero does not work ? //VELOCITY// ////////////////////////////////////////////
Below there is a program to draw vertical lines at the second bottom point which are higher than the previous bottom. (It is like dow theory . It will find bottoms and compare themselves and draw verticals to the second bottoms at the uppertrend )