[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 931

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Good day !
Comrades, please tell me what's the trick ?
From Tutorial :
"ObjectCreate() function... The function returns TRUE if the object was created successfully, otherwise it returns FALSE. To get more information about the error, call GetLastError()."
I get "ObjectCreate=0, ObjectSetText=1" in Alert on all graphics creation. It doesn't matter if GetLastError() generates an error or not. The image is created, but why "ObjectCreate=0...? If it must be 1 ? Here is the code:
This is correct. The function returns the number of the chart sub-window in which the object is found. And the main window of the terminal has the number 0. It is returned. To check the presence of the object, you need to check <0. If the object was built in the indicator window, the function would return the number of indicator subwindow: from 1 onwards...
Help, advice!
What does it say in the logs?
I'm sorry, where is that in the logs?
Your terminal/experts/logs
Look carefully at http://www.alpari.ru/ru/school/textbook/autotrading/expert_advisors/, in this case the order-send fie is the opening of an order.
The function returns the ticker number (not to be confused with the magic number) of an open position or a placed pending order. In case of failure, the OrderSend() function returns number -1.
Each open or pending order is identified by a unique number.
I'm still not following you, I don't understand where the unique order number comes from, the examples show different things,
If I'm not mistaken, it's not me who creates it, for example
02:26:22 USDCHF,H1: uninit reason 4
02:26:22 USDCHF,H1: removed
02:26:22 Dimon's Boundaries EURUSD,Daily: deinitialized
02:26:22 Dimon's boundaries EURUSD,Daily: uninit reason 4
02:26:22 Boundaries of Dimon EURUSD,Daily: removed
12:53:16 USDCHF,H1: loaded successfully
12:53:16 Dimon's USDCHF,H1 inputs: BandsPeriod=20; i=1; BandsShift=0; BandsDeviations=2; Lots=0.1; TakeProfit=50; stoploss=10;
12:53:16 GMT Borders EURUSD,Daily: loaded successfully
12:53:16 Dimon's Boundaries EURUSD,Daily inputs: BandsPeriod=20; i=1; BandsShift=0; BandsDeviations=2; Lots=0.1; TakeProfit=50; stoploss=10;
12:53:20 Dimon Borders EURUSD,Daily: initialized
12:53:20 USDCHF,H1: initialized
12:54:11 Dimon's boundaries EURUSD,Daily: deinitialized
12:54:11 Dimon's boundaries EURUSD,Daily: uninitialised reason 3
12:54:11 Dimon's Boundaries EURUSD,H4: initialized
17:26:00 USDCHF,H1: deinitialized
17:26:00 USDCHF,H1: uninit reason 4
17:26:00 USDCHF,H1: removed
17:26:00 Dimon Boundaries EURUSD,H4: deinitialized
17:26:00 Dimon Boundaries EURUSD,H4: uninit reason 4
17:26:00 Boundaries of Dimon EURUSD,H4: removed
18:13:01 USDCHF,H1: loaded successfully
18:13:01 USDCHF,H1: BandsPeriod=20; i=1; BandsShift=0; BandsDeviations=2; Lots=0.1; TakeProfit=50; stoploss=10;
18:13:01 Dimon Borders EURUSD,H4: loaded successfully
18:13:01 Dimon's Boundaries EURUSD,H4 inputs: BandsPeriod=20; i=1; BandsShift=0; BandsDeviations=2; Lots=0.1; TakeProfit=50; stoploss=10;
18:13:02 Dimon Borders EURUSD,H4: initialized
18:13:02 Dimon USDCHF,H1: initialized
02:26:22 Borders USDCHF,H1: deinitialized
02:26:22 USDCHF,H1: uninit reason 4
02:26:22 USDCHF,H1: removed
02:26:22 Dimon's Boundaries EURUSD,Daily: deinitialized
02:26:22 Dimon's boundaries EURUSD,Daily: uninit reason 4
02:26:22 Boundaries of Dimon EURUSD,Daily: removed
12:53:16 USDCHF,H1: loaded successfully
12:53:16 Dimon's USDCHF,H1 inputs: BandsPeriod=20; i=1; BandsShift=0; BandsDeviations=2; Lots=0.1; TakeProfit=50; stoploss=10;
12:53:16 GMT Borders EURUSD,Daily: loaded successfully
12:53:16 Dimon's Boundaries EURUSD,Daily inputs: BandsPeriod=20; i=1; BandsShift=0; BandsDeviations=2; Lots=0.1; TakeProfit=50; stoploss=10;
12:53:20 Dimon Borders EURUSD,Daily: initialized
12:53:20 USDCHF,H1: initialized
12:54:11 Dimon's boundaries EURUSD,Daily: deinitialized
12:54:11 Dimon's boundaries EURUSD,Daily: uninitialised reason 3
12:54:11 Dimon's Boundaries EURUSD,H4: initialized
17:26:00 USDCHF,H1: deinitialized
17:26:00 USDCHF,H1: uninit reason 4
17:26:00 USDCHF,H1: removed
17:26:00 Dimon's Boundaries EURUSD,H4: deinitialized
17:26:00 Dimon Boundaries EURUSD,H4: uninit reason 4
17:26:00 Boundaries of Dimon EURUSD,H4: removed
18:13:01 USDCHF,H1: loaded successfully
18:13:01 USDCHF,H1: BandsPeriod=20; i=1; BandsShift=0; BandsDeviations=2; Lots=0.1; TakeProfit=50; stoploss=10;
18:13:01 Dimon Borders EURUSD,H4: loaded successfully
18:13:01 Dimon's Boundaries EURUSD,H4 inputs: BandsPeriod=20; i=1; BandsShift=0; BandsDeviations=2; Lots=0.1; TakeProfit=50; stoploss=10;
18:13:02 Dimon Borders EURUSD,H4: initialized
18:13:02 Dimon USDCHF,H1: initialized
You have to look at the EA. But maybe you have not activated autotrading. Is your EA's face smiling?