I have a small problem with the operator "/" I have no compilation problems but this counters block me the strategy tester // Global scope int A= 0 ; int B= 0 ; int Total= 0 ; double Percent= 0 ; int start() { // my code Percent= (A* 100 ) /Total ; }
Hello to everyone, I have a small problem using this code: //--------NewBar------------ bool NewBar() { static datetime lastbar; datetime curbar= Time [ 0 ]; if (lastbar!=curbar)
Hi, I wrote a function with input parameters but I could not insert an operator as a string: void MyFunction( int Freccia , string Dir ){ //.......My code ObjectCreate ( "Freccia" +T, OBJ_ARROW , 0
Hi, I have a small problem with the ArrayMinum () function , because it can not read the lowest value of the matrices. Instead, if I use ArrayMaximun it works all over again. //Global Scope int m= 0 ; double CLOSE2[ 8 ]; //----------------// for (
Hi, I'm trying to write an arrow when I cross FiboLevel but I can not if ( iCustom ( Symbol (), PERIOD_CURRENT , "Heiken Ashi" , 2 , 1 ) > iCustom ( Symbol (), PERIOD_CURRENT , "Heiken Ashi" , 3 , 1 ) && iCustom ( Symbol (), PERIOD_CURRENT
Hi, I have a small problem with the correct placement of a text object . I would like to assign a number above the High of Green Heiken but the result is not optimal. In some assets it's okay and in others no but I do not understand where I'm wrong
Hi, I'm trying to figure out if what I've written is correct or not, could I have some help? The variable int O has [13] Array , so is it correct to skip it in the Y loop? Is it correct to insert Array O [Y] into Array Time [] ? Is also correct to
Hello, I have created the Fibonacci object without problems, but at each new Bar, the coordinates slip automatically forward of a Bar. I also inserted ObjectMove but it does not work. if (Count2== 48 ){ // coordinate
Hi, is it possible to draw the line of a buffer over the spark plug 0? I tried it like this but it does not work! for ( int I= - 10 ;I<N;I++){ if (Linee== true ){ExtMapBuffer1[I] = Up;ExtMapBuffer2[I] = Dw;}}
Hello, I'm using the #Resources command to import my logo and it works. The problem is in file ex4 because it is not embedded during compilation and if the logo is not in its folder it does not work.
Hello , I have a little problem with superimposed color rectangles . Only when these objects are overlapped area becomes black , how can I solve? // 1° Rectangle ObjectCreate ( "Zon1" , OBJ_RECTANGLE , 0 , Time [ 0 ],price1, iTime ( 0 ,TF,index1)
hello at all, it is possible to replace the i low () function or iCLose () with a string ? I tried so but does not work : extern string CloseHigh = "iLow" ; // Switch iLow or iClose CloseHigh( 0 , 0 , 1 )); //iLow(0,0,1)); or iClose(0,0,1));
I created a simple rectangle with 2 buffer and I would like to move the object along with the buffer , with each tick i delede and recreate the object , but I do not think is correct , there is a right way
Hello everyone , I created a small loop for , to try closures equal by using a counter. Unfortunately this Vieve count performed every tick , and I can not get an accurate count . if ( iCustom ( NULL
I read various discussions and I understand that you can load a png image only through this code , however, I get this error : Unknown resource type MQL4 \ Files \ dollar . png #resource "\\Files\\dollar.png" ; ObjectCreate
Hello everyone , I'm trying to normalize the decimal places of the moving average , this code is correct or not? Even if I do not receive errors , I am not entirely sure of what is written! for (L= 0 ; L< 50 ;
Hello, I do not know if the number of candles on the Limit variable is the number of candles on the chart or is there a different count. { int limit; int counted_bars=