pascalboy / Publications
Forum
CLOSE ORDERS AT SPREAD LEVELS
extern bool macdzirve,macddip,RSIzirve,RSIdip,CCIzirve,CCIdip; int start() { double macd= iMACD ( Symbol (), 0 , 12 , 26 , 9 , 0 , 0 , 0 )* 10000 ; double RSI= iRSI ( Symbol (), 0 , 14 , 0 , 0 ); double CCI= iCCI ( Symbol (), 0 , 100 , 0 , 0 ); if (macd> 20 ) { macdzirve= 1 ; macddip= 0 ; } if
logical confusion
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 If (condition1) { Open Buy Order } If (condition2) { Close
VARIABLE DECLARATION
//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 stocprevprevM=iStochastic(Symbol(),0,K,D,S,0,0,MODE_MAIN,2);
difference between buffers
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)
TIME DIFFERENCES BETWEEN ORDER OPEN AND CLOSE TIMES
extern int K= 100 ; extern int D= 25 ; extern int S= 45 ; extern int P= 4 ; extern double Min= 1000 ; extern double Max; double MaxBalance; int Lots= 1 ; double k= 1 ; bool mevcutstr; bool yenistr; int start() { int ticket; double stoccurrM= iStochastic ( Symbol (), 0 ,K,D,S, 0 , 0 , MODE_MAIN , 0
metatrader opens mql5 language editor why?
metatrader opens mql5 language editor why
taking variables
Hi, Is it possible to take variables from scripts,indicator or expert files for using in an other program(ea)
difference between timeframes
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
Is there any difference between while and if operators.
If you use while in place of if or vice versa. Does it make difference
4051 ,1 errors,etc
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 ,Ask+ 1000 * Point , 0 ); int Emirsat= OrderSend ( Symbol (),OP_SELLSTOP