Forum

identify range and trend market

is there any code to identify range and trend market? i used to identify support resistance for some bar...but not perfect all time input int x1 = 50 ; // bar count PHighest1 = Close[ iHighest ( Symbol (), 0 , MODE_HIGH ,x1, 0 )]; PLowest1 = Close[ iLowest ( Symbol (), 0 , MODE_LOW ,x1, 0 )];

code for EMA 14 in ATR 14 window

how, i m trying to code EMA 14 to show in ATR 14 chart window i can do it in terminal by selecting moving leverage "Previous indicator DATA" but how can i code it for my EA #define EMAperiodATR 14 int start(){ static datetime Time0; bool newBar = Time0 < Time[ 0 ]; if (newBar){

EA draw trendline from i highest to specific price but 10 candle advance

double popen = iOpen ( Symbol (), 0 , 1 ); double PHighest = High[ iHighest ( Symbol (), 0 , MODE_HIGH , 10 , 0 )]; double PLowest = Low[ iLowest ( Symbol (), 0 , MODE_LOW , 10 , 0 )]; ObjectCreate ( "line" , OBJ_TREND , 0 ,Time[PHighest],PHighest,Time[- 10 ],popen); Where the fault error

EA calling indi for mql5 market

hlw i want to attach my one EA free, with mql5.com market but it use an indicator which is connected to EA by icustom i cant attach the EA, how i connect indicator + EA together, so that if anybody want to download EA, he can also same auto download indicator in market folder please suggest

merge indicator and EA, and call indicator buffer value to EA withput i custom

Hlw i hv an indicator but i want to merge it with my EA code, how can i call buffer value as set double variable? i dont want to call indicator value with icustom my indicator here: //------------------------------------------------------------------

please help me about selecting and comapre orders

suppose i hv 5 opened order where 3 are GU and 2 EU like here: ticket sym type comments 2000 GU Buy A1 2005 GU sell 3005 EU Sell A1 4005 EU Sell 3005 5005 GU buy 2000 so i want select first order and compare it with others 4 orders, in others 4

EA placing same order copy of previous order

i m in trouble, suppose my signal provider open 5 orders in diff pair at a time or in 5 sec, my EA only select last opened order where others are missing which opened 4 sec before....and sometimes EA opening 2 order of same pair where i only want one order as signal provider opened order with

Orders comment checking by EA

i m facing problem in checking comment. if (d = "A1" ){ *** code here } this condition not working... if comment is blank or anything, order is opening...i want new order open only when last detected order comment is A1. extern double lots= 0.10 ; int start() { datetime a; datetime max= 0

last open order not showing as comment

i have 4/5 open order in terminal, i need to select last/latest opened order but it showing another order not last one opened. my code here for ( int i = ( OrdersTotal ()- 1 ); i >= 0 ; i --) { OrderSelect (i, SELECT_BY_POS , MODE_TRADES ); datetime a = OrderOpenTime (); int

how can i find the price of previous MA crossover (buy or sell) signal

hlw coders i m in little trouble in coding of EA, i made it according to MA crossover signal if signal buy its cancel previous sell signal and placed new buy order also same for sell signal.. i already made it.... but i m in trouble to find what was previous signal and at what price from the latest