Forum

Help..drawing vertical lines in separate window indicator

Hello Im trying to draw lines when the RSI and the signal line cross on a TDI indicator. I added a loop to the code as shown to try to create vertical lines, complies but in strategy tester i get #4200 error "#define ERR_OBJECT_ALREADY_EXISTS" Im not sure where it exists. Maybe my loop incorrect

Line of code need explanation please

void RemoveEAafterSL() { int total = OrdersHistoryTotal(); for ( int i = total - 1 ; i >= 0 ; i--) { if ( OrderSelect (i, SELECT_BY_POS,MODE_HISTORY)) if (OrderSymbol() == Symbol ()) if (OrderMagicNumber()==magic) { if

no indicator window property is defined, for my EA?

Hello Please can someone explain why i get this warning when complying my EA. 1 Warning ... "no indicator window property is defined, indicator_chart_window is applied" (no line number) 0 (no column) 0 I have had it before then it disappeared and I cant figure out what i am doing to

Help needed for adding positions during retracement

Hello //+------------------------------------------------------------------+ //| OPEN INITIAL POSITIONS | //+------------------------------------------------------------------+ if (InitOrder==buy) { if

Help needed running the simple EA in tutorial book.

Hello, ive been studying the MQL4 tutorial and now at a level that i can start to experiement with changing code to learn on a active simple EA. Ive tried running the EA tradingexpert.mq4 on the book tutorial, on my demo with various currency pairs but i can not get the EA to execute orders. It