Forum

Filter Hours of trading

This is currently working as expected. If is outside this time range the EA does not trade. if((Hour()<=StartTime || Hour()>EndTime))return(0); //Preferd Trading Hours From an older EA, which I believed tested successfully but is not working. if((Hour()<=7 || Hour()>=10) || (Hour()<=14 ||

Calculate Order open time

I was looking to add a time variable to a trailing stop EA, but its a bit over my head, any help is appreciated. if (Current Time – OrderOpenTime > 60 Seconds) { ..... } Thank you in advance

Level 2 DATA

Is there any Level 2 DATA available on Forex? Does anyone know why long BuysOrders= SymbolInfoInteger ( Symbol (),SYMBOL_SESSION_BUY_ORDERS); long SellOrders= SymbolInfoInteger ( Symbol (),SYMBOL_SESSION_SELL_ORDERS); double BuyOrderVolume = SymbolInfoDouble ( Symbol

MetaTrader 4 Build 604 its using MetaEditor 5.0 Build 883

Greetings, The new MetaTrader 4 Build 604 its using MetaEditor 5.0 Build 883. If one opens an mq4 files outside the Experts or Indicators folder the MetaEditor moves the file to the MetaTraders folder. How can this be stopped

Need help Coding EA with iCustom Indicator

Could anyone help me to figure out how to extract the parameters sets from a custom indicator ? The Data Window show Value, Value2, Value3. A buy signal returns a numeric Value3 greater than 0 and a sell signal returns a numeric Value/Value2. [CODE]double

Is there a way to extract the total pip sum of a pair from history?

Is there a way to extract the total pip sum of a pair from history? Greeting, Thought I would be able to come up with this code myself, but I am not a programmer and I am way over my head. I need allot of help. Objective: Within the same trading hour if the total amount of pips on closed trade for a

Need help with two (2) questions with close price .

Need help with two (2) questions with close price . Please help. 1st: Is there a difference on the followings: iClose(NULL,NULL,1) and Close[1] iOpen(NULL,NULL,1) and Open[1] also on high & low.... If there is no difference, when its best to use one over the other? 2nd: Open, Low, & High are easy to

Is there a way to calculate the highest & lowest point of an indicator in a set range

Greetings I am not a programmer (just know enough to be dangerous) and need some help programming the highest & lowest point of an indicator in the last 30 60 bars. I can do it with to the price range with no problem Example: double L_Range=(Low[iLowest(NULL,TI,1,30,1)]); double

Writing Trade information to CVS file

Need a little help. I was looking for an EA or Scrip which writes the statement trade information to a CVS file. I am not a programmer, but looking for a sample EA or Scrip I use as a template. Thank you

Closing BUYSTOP or SELLSTOP via EA

Is there a way to close a BUYSTOP or SELLSTOP via EA? If yes may someone please provide an example? Thank you