47803124 / Publications
Forum
I'm having an issue with the ArraySetAsSeries function in MQL5.
When I read indicator data, the data comes in reverse order (oldest first), but even after using ArraySetAsSeries , I still can't get the time-series order (newest first). Here's my function: int ReadRVI( double &data0[], double &data1[], int count, string symbol, ENUM_TIMEFRAMES
Can't read the indicator of Atr weekly value
double atr1= iATR ( Symbol (), PERIOD_W1 , 5 , 1 ); double atr2= iATR ( Symbol (), PERIOD_W1 , 5 , 2 ); retun the atr1 And atr2 Value is 0 ; why? int weekly period, i can read the K-line,so ,I Have data
can't read the value in EA
bool green= false ; bool red= false ; int openprice6= int ( iOpen ( Symbol (), 10080 , 6 )); int closeprice6= int ( iClose ( Symbol (), 10080 , 6 )); int pre7= int ( iClose ( Symbol (), 10080 , 7 ));
I Define variables to consider, how to package them at the end of the code
I have Define variables 250 pieces , how to package them at the end of the code
When i Historical backtesting this my expert,What's wrong with this function
bool openstat( string name, string ordertp, int magicx){ bool stat= false ; bool haveopen= false ; if ( OrdersTotal ()> 0 ){ for ( int d52= 0 ;d52< OrdersTotal ();d52++){ if ( OrderSelect (d52,SELECT_BY_POS,MODE_TRADES)== true ) {
I read the value in script is corcoet,but his back's read the value is wrong ,why
double xiaoosma1= iOsMA ( Symbol (), PERIOD_H1 , 6 , 10 , 4 , 5 , 1 ); double xiaoosma2= iOsMA ( Symbol (), PERIOD_H1 , 6 , 10 , 4 , 5 , 2 ); bool xiaoosmax=((xiaoosma1>xiaoosma2)&&((xiaoosma1< 0 )||(xiaoosma2< 0 ))); bool xiaoosmay=((xiaoosma1<xiaoosma2)&&((xiaoosma1> 0 )||(xiaoosma2> 0
Diffent Period OpenTicket Problem
I read the RSI indicator parameters of the 1-hour period on the 15 minute period, I read the parameter was correct. However, when I run the EA open order, I found that the parameters of the indicators read were not accurate,Causing incorrect Openorder locatio
about the read differen period parameters problem
I read the indicator parameters of the 1-hour period on the 15 minute period, I read the parameter was correct. However, when I run the EA open order, I found that the parameters of the indicators read were not accurate,Causing incorrect Openorder location
string compare problom ,help me
string a; if (a== "" ) Alert ( "ok" ); if a equel empty, How do I write
What my easy code 's error,two value compare
Look last Code ,why the run ruzult is ok2 not ok3? double a= 4.0 ; double b= 4.5 ; if (a>b) Alert ( "ok1" ); if (a<b) Alert ( "ok2" ); if (a==b) Alert ( "ok3" ); double a= 4.0 ; int b= 4 ; if (a>b) Alert ( "ok1" ); if (a<b) Alert ( "ok2" );