Forum

[iCustom] Error message when file does not exist

Hi, is there a way to get a return value (other than 0, 0 could be a value of the indicator), if the file does not exist, if I call the file with iCustom? double val= iCustom ( NULL , 0 , "SampleInddoesnotexist" , 13 , 1 , 0 ); Warm Regards Burkhard

iCustom with ENUM_TIMEFRAMES

Hi, I am already trying to read the values of an indicator with iCustom, but always I get only 0 with this kind of indicator: test.mq4 extern ENUM_TIMEFRAMES MA_TF = PERIOD_M30; extern int MA_Period = 50; extern ENUM_MA_METHOD MA_method = MODE_SMA; test[i] = iCustom(Symbol()

Function to get information about account type (Demo/Live)

Hi, is there a function to get the information about the account type? I have to know, if the account is a demo or a live account. Thx

Best way to close a lot of positions?

Hi, I using this function to close all my position: for ( int i = OrdersTotal () - 1 ; i >= 0 ; i--) { OrderSelect (i, SELECT_BY_POS , MODE_TRADES ); if ( OrderSymbol () == Symbol ()) { if ( OrderSymbol () == Symbol () && OrderMagicNumber () == MagicNumber) { if (

Blue Target Arrow-Line in Strategy Tester

Hi, only on live/demo-Charts the target-price as small arrow-lines for the open position is in blue, but in strategy tester stop and target arrow-lines are both red. Confusing. Is there a fix solution? Warm Regards Burkhard

Tickgenerator for weekend with the latest MT4-build

Hi, I used for some months a Tickgenerator script, but it dont send now the tick to an indicator or an expert advisor. Only the comment in the scipt is refreshed and show me, the the script is running, but my indicator/expert advisor (include a test alert call ) dont refreshed for do the alert

Disable tradelines in Backtester

Hi, I draw with my EA the line between open and the close-price, but the Backtester draw the lines automaticly, so I have two line for each trade. How can I disable the automatic draw-lines? I tried already CLR_NONE in the OrderSend call

Hotkey-Function in EA for backtesting

Hi, I saw a usefull EA http://www.forexfactory.com/showthread.php?t=445367, unfortunately only as ex4-file, I am interesting in the code for creating interaction with hotkey_buy 'B' and hotkey_sell 'S' to open market positions in the tester during the visial mode. In the MetaEditor help I cant find

MT4 One Click-Trading Addon with same position-tracking like MT5

Hi, I'm looking for an MT4 One Click-Trading Addon, with which I can buy/sell positions by clicking a button (like the actually MT4 One Clicktrading) feature, but the positions from the click-trading should appears in the trading tab only as one position for each symbol (all position not created

[MT4-Bug] Problem with right aligned label created with an expert advisor and automaticly text change

Hi, to show me some information of my expert advisor variables, I created some label-elements in the right top corner. Until april all gone fine, but with some new updates of Metatrader the text isn't aligned right correctly. If I change the text with an EA, the text is aligned left now. :-X Is