Jerome Raymond Lafon / Publications
Forum
How to get data from a symbol
hello, does someone has a piece of code in order to retrieve some data like bid and ask? I am using symbolselect() and refreshrates() but sometimes I cannot retrieve data
backtest a trailing stoploss and break even EA
Hello, I developed an EA that manages the stoploss using the ATR indicator. This EA uses some parameters. Is it possible to backtest my EA on previous trades in my MT4 history in order to find the best settings
why iATR sometimes returns 0?
Hello, Could you explain to me why this code sometimes return ATR=0? string orderSymbol = OrderSymbol(); double ATR = iATR (orderSymbol, PERIOD_M15 , 5 , 0 ); if (ATR == 0 ){ Print ( "ATR=0...FAILED...RETRY..." ); return false ; } orderSymbol can be different from graph than the one the
best ATR settings for driving a Trailing stop loss
Hello, I have coded an EA for automatic trailing stop loss . When a trade triggers a minimum profit value based on a percentage of my balance the EA compute the new stop loss based on the ATR indicator and if the new SL > current SL then the new SL is applied. The computed SL is always greater or
EA to modify multi currency pairs orders
Hello, I would like to develop an EA in order to call orderModify() for each open trade, but unfortunately it works only for the currency pair of the chart where the EA is attached. Is there a way to call orderModify() for several currency pairs? Regards Jérôme