Looking for MA cross EA with more features

To add comments, please log in or register
eduardo fiuza
261
eduardo fiuza  
The EA's available don't have SL, TS, TP, etc.

Where to find this simple EA with more features?

Thanks.
Brian Dee - Random Trader
1758
Brian Dee - Random Trader  

E

Make a copy of the MT4 'Moving Average' sample EA, add extern variables for SL & TP then add them to the OrderSend line, e.g.

ticket=OrderSend(strSymbol,OP_BUY,Lots,Ask,3,Ask-StopLoss*Point,Ask+TakeProfit*Point, strComment,iMagic,0,Green);

and

ticket=OrderSend(strSymbol,OP_SELL,Lots,Bid,3,Bid+StopLoss*Point,Bid-TakeProfit*Point, strComment,iMagic,0,Red);

IIRC, there is a Trailing Stop code example in the MACD Sample EA

Good luck :)

BB

Edi Dimitrovski
289
Edi Dimitrovski  
Simple EA with Variable Lots Volume, One buy and sell per Bar, Trailing Stop, Stop Loss, Take Profit .
It is just a simple template.
You need to add your code/indicators for your strategy.
In the code base there are many more samples.
Files:
talabitobi
20
talabitobi  
Brian Dee - Random Trader:

E

Make a copy of the MT4 'Moving Average' sample EA, add extern variables for SL & TP then add them to the OrderSend line, e.g.

ticket=OrderSend(strSymbol,OP_BUY,Lots,Ask,3,Ask-StopLoss*Point,Ask+TakeProfit*Point, strComment,iMagic,0,Green);

and

ticket=OrderSend(strSymbol,OP_SELL,Lots,Bid,3,Bid+StopLoss*Point,Bid-TakeProfit*Point, strComment,iMagic,0,Red);

IIRC, there is a Trailing Stop code example in the MACD Sample EA

Good luck :)

BB

Hi, i tried this with the MACD Sample but it did not work, guess i made a mistake so, do you have the EA for the MACD sample with stoploss?

To add comments, please log in or register