Forum

Code for stop trading after target pips reached

Hi, This might have been asked before. If so please kindly point me to the particular thread as forum search did not turn up any relevant result. I would like to add a code to my ea so that the ea will stop trading after reaching a certain number of target pips (e.g. 50 pips) for one trading day;

EA cannot set TP when trading microlot

Hi, I have just tested my ea on both fxpro (on minilot of 0.1) and go trader (on microlot of 0.01), both with TP of 5 pips. On fxpro the ea ran just fine; however on go trader the ea won't open any trades as long as a TP e.g 5 pips was set. But when the tp is "0" it opened trades. Is this due to go

MACD main line minus signal line value

Hi, I'm trying to get the EA to trade only when the MACD main line minus signal line value exceed certain value. Would the following code be correct? Thanks! macd_main-macd_signal>0.0010

Code for EA to open a trade when three indicators give signals

Hi, Newbie question here. I'm trying to code an EA so that it opens a BUY trade when ma1 reverse direction, ma2 moving up and rsi moving up. The code I came up with is: ma1[2]>ma1[1]<ma[0] && ma2[1]<ma2[0] && rsi[1]<rsi[0] Would the code be correct? Thanks