Forum

HELP in - stop opening multiple order after takeprofit was hit.

i have more than 5 open trades in 1 bar and i want the ea to stop opening order after takeprofit was hit. bool NewBar() { /* Update with a new bar and reset BarTraded if it's new */ static datetime lastbar; datetime curbar = Time[ 0 ]; if (lastbar != curbar) { BarTraded = 0 ;

Alert of custom indicator as reference in opening trade.

hello guys, can sameone teach me how to use alert of custom indicator as reference in opening trade? example i want to set alert on custom indicator for opening trade, but i dont know how to use this alert on ea

increasing lot size of open order - impossible?

Is it really impossible to increase lot size of open order

need help for iRSI indicator

Can somebody explain to me how iRSI indicator really work. pls check attached photo & code. double sarMA1= iSAR (symb, 0 , 0.02 , 0.2 , 1 ); double sarMA2= iSAR (symb, 0 , 0.02 , 0.2 , 2 ); double rsiMA= iRSI (symb, 0 , 14 , PRICE_MEDIAN , 1 ); double marH= 60.0 ; double marL=

Close all orders when one order is close & Open order on the same price the first order was open..

hello guys. can anyone help me with this. im trying to add a code that will 1.) close all order when one order is close. 2.) open order on the price the first order was open

need help in counting bars

int i; int int() i=0; int start() if(i<Bars) i++; problem is when i use " every tick mode" on tester i++ is not synchronize to bar counting, but when i use "open price mode" it is synchronize. can anybody explain to me whats the problem

need help...

hello guys.. could you help me how to stop counting of ++ to a certain count... if(Bid<ma) SARup++; if(SARup>4) SARup=0; but after it become 0 it count again.. i want the rest of ++ to become zero. thanks guys appreciated your help

need help how to count events

can someone help me how to count event. for example: if(Delta >=100) cnt_b=1; i dont know whats next... how can i count event like this? i try like this.. for(cnt=0; cnt >=cnt_b; cnt++) but not work

newbie here need help

can anyone help me with this.. my ea just working only on tester but not on live trading, pls check attached ea is there something missing? i put init & deinit also but still not working on live trading