Which prevents the advisor from making money. - page 8

 
FAQ:

So far, only pictures :)

And all this is served by ten lines of code:

And it all behaves like full-fledged windows, moving, overlaying, all the buttons work, but there's still quite a lot to do.

It's not a question of beauty. However, I always have to be careful: the goal is a stable profitable trading. But all these beautiful things suck us in and we start thinking: I am going to write this or that again. And only then - I will realize the main ideas. But may be it is not necessary? Maybe you may put away the secondary things?

Although, of course, this is a forum for programmers, not traders.

 

One last clarification, I'm a jackass.

So, if the order is not selected and there are no errors in the code, is it safe to deregister it, assuming it is closed? Or should I check the history?

 

Your logic is all wrong - it means the order has NOT been selected ???

if an order is selected in a trade flow, if its closing time is zero, then there is a 99% chance it is not yet closed.

 
FAQ:

Your logic is all wrong - it means the order has NOT been selected ???

if an order is selected in a trade flow, if its closing time is zero, then there is a 99% chance it is not yet closed.

If OrderSelect() == false;
 

As for the niceties: there is a different ideology here, because "chekcha not reader, chekcha writer" and you have to write a lot, so you need to have ready modules for everything, and pre-checked. In fact, the entire code of the Expert Advisor itself takes 300 lines, and the remaining 3000 are included from the pre-made inclusions. And when working with Expert Advisor or indicator, I don't have to puzzle over the reasons why it doesn't work.

Well, since the customers are simple traders and do not want to understand the specifics, that's why we need to make a user-friendly interface. Remove windows, install DOS and feel the difference :)))

 
valenok2003:
If OrderSelect() == false;


No words...

SZZ. sounds like a caterpillar song from a Soviet cartoon about a donkey wanting to become a butterfly: "My friend the hippo did everything the other way around, so he landed a moth without a hassle..." :)))

Sorry for being too cheeky, but I couldn't resist :)

 
FAQ:

As for the niceties: there is a different ideology here, because "chekcha not a reader, chekcha a writer" and you have to write a lot, so you need to have ready modules for everything, and tested beforehand. In fact, the entire code of the Expert Advisor itself takes 300 lines, and the remaining 3000 are included from the pre-made inclusions. And when working with Expert Advisor or indicator, I don't have to puzzle over the reasons why it doesn't work.

Well, since the customers are simple traders and do not want to understand the specifics, that's why we need to make a user-friendly interface. Tear down windows, install DOS - feel the difference :)))

Well, I still hope to make money on trading myself.

Although... my mother used to tell me it's bad to be stupid.

 

Hooray, the advisor has taken a profit after all.

Here's a piece of the state.

And here is the rest of the log

06:35:36 eBlueDream V2 2012 01 25 GBPUSD,M5: Время сервера: 4:35:30
06:35:36 eBlueDream V2 2012 01 25 GBPUSD,M5: превышен уровень прибыли5622.51
06:35:36 eBlueDream V2 2012 01 25 GBPUSD,M5: поступил приказ закрытия всех ордеров
06:35:36 eBlueDream V2 2012 01 25 GBPUSD,M5: закрытие всех рыночных ордеров
06:35:36 eBlueDream V2 2012 01 25 GBPUSD,M5: close #153636702 buy 0.06 GBPUSD at 1.57290 at price 1.57258
06:35:39 eBlueDream V2 2012 01 25 GBPUSD,M5: close #153636700 buy 0.05 GBPUSD at 1.57289 tp: 1.57369 at price 1.57261
06:35:39 eBlueDream V2 2012 01 25 GBPUSD,M5: все ордера закрыты
06:35:39 eBlueDream V2 2012 01 25 GBPUSD,M5: поступил приказ остановки торговли
06:35:39 eBlueDream V2 2012 01 25 GBPUSD,M5: ТОРГОВЛЯ ОСТАНОВЛЕНА
06:35:40 eBlueDream V2 2012 01 25 GBPUSD,M5: закрыт ордер OP_BUY тикет 153636702
06:35:40 eBlueDream V2 2012 01 25 GBPUSD,M5: закрыт ордер OP_BUY тикет 153636700
06:35:40 eBlueDream V2 2012 01 25 GBPUSD,M5: убыток = -101.00

I think everyone understands where the loss comes from when the profit is fixed.

Many thanks to FAQ, PopeEzh and everyone who took part in the discussion.

I will post the next report soon.

 

Here's what we have this morning

Continuation of the log in the trailer. I deleted the empty messages, like the number of orders exceeded the limit...

And this is for the evening.

Note that this is a fixed profit.

Files:
20120131.zip  2 kb
state.zip  8 kb
 
Files:
state_1.zip  8 kb
Reason: