Hey everyone. I am very new to Forex Trading and completely new to EAs. I have tried to make an EA for Metatrader4 using this online “Expert Advisor Builder for MetaTrader 4” (Can’t include link in forums until I have 5 posts. Sorry. :)) , which I have attached, that tries to do the following:

BUY if:

Last 2 H1 ticks close above 14 EMA.

RSI is > 50 but < 70 for H1 charts.

Stocastic is increasing for H1 charts.

Last 2 M15 ticks close above 14 EMA.

RSI is > 50 but < 70 for M15 charts.

Stocastic is increasing for M15 charts.

RSI passes through 50 for M1 charts.

Stoploss = 7 and take profit = 15.

SELL if: (inverse of the above).

Anyways, attached is the EA from the builder linked. It compiles just fine but keeps giving “OrderSend error 130”. I did some Google searches and they some claimed the stoploss was too small. But even when I change StopLoss to 70 and TakeProfit to 150 I still get the same error.

Does anyone have any ideas I can do to fix this? Would anyone mid taking a few minutes and looking at my EA and see if there is a straightforward way to get it to work? Thanks a lot in advance.