Codes

Daily Chart Trader for MetaTrader 4

This is strictly for daily chart and any symbol with spread low enough for its operation

Forum

Blinking text in mt4

Please house, I need any help with a code snippet for blinking text in mt4 I have this graphical display board that shows so many signals for multiple currencies and timeframe. I want the arrow of new incoming signal to blink for 20 seconds using OnTimer() so I can recognize new arrow that is

Using closed order Comment for EA algorithm

Can i use closed order comment to work my EA trading decision or it is allowed in MT4? for(int i= OrderHistoryTotal()-1; i>=0; i--) { if(OrderSelect(i,SELECT_BY_POSITION,MODE_HISTORY)) if(OrderSymbol()==Symbol() && OrderMagicNumber()== Magicnumber) { if ( StringSubstr (OrderComment(), StringLen

Trade on VPS server only

Please Big brother, I need a code snippet to force my EA to only work on VPS servers only and not on my local computer. Any help would be appreciated.... Thanks in Advance

Code for getting consecutive up and down tick direction

int Cur_p = Ask, initi_p = 0 ,cnt= 0 ; if (Cur_p>initi_p){ cnt=cnt+ 1 ; initi_p =Cur_p; } if (Ask<initi_p) cnt= 0 ; Please any help on why this code is not working. i need a code to calculate consecutive up tick and down tick to get how fast price is moving in each direction

MarketInfo to get last tick type in mql4

void OnTick () { MqlTick last_tick; //--- if ( SymbolInfoTick ( Symbol (),last_tick_flag)) { Print (last_tick.flag, ": Bid = " ,last_tick.bid, " Ask = " ,last_tick.ask, " Volume = " ,last_tick.volume); } else Print ( "SymbolInfoTick() failed, error = "

WindowPriceMax for other symbols differet from the current chart

Please i need help getting windowpricemax for all symbols in multi currency EA. How to get Maximum price chart for each of the symbol and timeframe. double lower_range= WindowPriceMin( 0 )+ 0.09 *(WindowPriceMax()-WindowPriceMin()); double upper_range = WindowPriceMax( 0 )- 0.09

MultiSymbol Expert Advisor in MQL4 coding

In order to maximize trading opportunity, i entered into multi pair EA coding community. The problem in it so far is dealing with chart that are not opened in the chart window, refreshing the chart to get latest tick and most importantly getting the EA to read accurate tick data when OnTick() is

code for getting the smallest or highest indicator value for a given time

Please with respect to the great coders of this forum, i need a code that will output the least/highest value of a given line indicators like Moving Average for like 20 bars back in a given period. just like the case of High[iHighest(NULL,0,MODE_HIGH,20,1)];

One Alert per signal not once every bar

Please there is difference between one alert per signal and Alert once per bar. Please any help on the code snippet for indicator to alert once per signal and not once per bar if ( iTime ( Symbol (), 0 , 0 )!= 0 ){ Alert (); iTime ( Symbol (), 0 , 0 )= 0 ; } This is for alert once per bar. What of

I need urgent help......

I want a code to automatically set the zoom state of my chart to minimum. this is to be included in a EA that depends on this minimum zoom state to work