Forum

Logic behind Half Trend Indicator

I am trying to understand the logic behind the half-trend indicator so I can port it to python. But since I don't know much about MQL4 , it's a bit difficult to understand how this indicator works. Can somebody explain it to me please ? Thanks

Cannot read data from CCFp indicator using iCustom

I am trying to read the values of different Buffer from the CCFp indicator but it stay constant at 2147483647 ( Empty_value ) Here is the code I use to test it : Print (handle); if (NewBar()){ double USD = CCFp( 0 , 1 ); Comment (USD); }

Desperate Trying to get Indicator with Icustom

Hi guys, i have finish many EAs for learning purpose using iCustom, but this time i couldn't make it work ! i Have no idea why. The Indicator show correct value on Data Window but when i use iCustom i get EMPTY_VALUE , no changes at all.I even tried to read Bars[4,3,2,1] But it's the same , it's

Detect and Place Stop Orders when Price touch a level

So i have been thinking many days on this Problem and don't know how to fix it, maybe someone have Idee for algorithm, i will be very thankful Basically it's a Grid system, at Start it will open 2 level above with predefine Increment and 2 level under . Let say A for above and U for under , we have

Backtest Freeze , Orderdelet error 145

I wrote a small code to delete all order . At first it looks like this : void Close_Grid() { for ( int i = OrdersTotal ()- 1 ; i>= 0 ;i--) { if ( OrderSelect (i,SELECT_BY_POS) == True) { if ((OrderSymbol()==