Forum

what's wrong with my EA?

Dear Gurus I need some help here. I was trying to write an EA where it requires the recording of the Signal value (or in general any data, for example the bid and offer prices) at the moment of MACD crossover. The recorded reading will be used for comparison as the condition to trigger trades (I

how to get 10mins chart in MT4?

Hi,guys. i'd like to know how to get 10mins chart in MT4? Why MT5 contains 10mins chart,but MT4 doesn't have

how to obtain time values ...

Let say, now there is an MACD crossover, how to record its time (the closing time of that particular bar), and later when i want to open a position, i want to know how far the current time is from that MACD crossover time? I want to open a trade only if the current time is less than 10 bars away

two ea can't work in two different currencies?

help!!! I am trying to test my program that will run two ea on two different pairs at one time. For example, ea1 run in eur/usd,another run in gbp/usd. i attach two ea to different chart,it's succesful,but there is another problem appeared. one ea continue open two orders,another ea doesn't work

can anybody help me?regarding MT5 program..

class CAccountInfo { public: //--- fast access methods to the integer account propertyes long Login(); ENUM_ACCOUNT_TRADE_MODE TradeMode(); string TradeModeString(); int Liverage(); ENUM_ACCOUNT_STOPOUT_MODE MarginMode(); string MarginModeString(); bool TradeAllowed(); bool TradeExpert(); //---

stupid program,i hate error 130,help!

can anybody tell me what's going on with my stupid program? if((MacdPPrevious-SignalPPrevious)*(MacdPrevious-SignalPrevious)<0 ) ticket=OrderSend(Symbol(),OP_BUY,Lots,ask,3,NormalizeDouble(ask-StopLoss*point,digits), NormalizeDouble(ask+TakeProfit*point,digits),"try2 sample",10009,0,Green);

how to manage two pending order?

if(ticket>0) { if(OrderSelect(ticket,SELECT_BY_TICKET,MODE_TRADES)) Print("BUY order opened : ",OrderOpenPrice()); { sellstop=OrderSend(Symbol(),OP_SELLSTOP,Lots,NormalizeDouble(OrderOpenPrice()-50*point,digits),3,0,0,"try2 sample",magic,0,Green);

what's the matter with my program?

ticket=OrderSend(Symbol(),OP_BUY,Lots,Ask,3,Ask-(StopLoss*Point),Ask+(TakeProfit*Point),"abc sample",16384,0,Green); if(ticket>0) { if(OrderSelect(ticket,SELECT_BY_TICKET,MODE_TRADES)) Print("BUY order opened : ",OrderOpenPrice(), "buy",OrderOpenTime()); } my program is very simple and easy,but when

Help !how to set OCO?

how to carry out an OCO(one cancel the other) command in MT4? for example: i sell eur vs usd at 1.39500,then i set a sell oco,limitprice(takeprofit) at 1.4050,stopprice(stoploss) at 1.39000,how can i make system hit stoploss(stopprice) level while it automatic cancel another takeprofit order. how to