[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 138

 
BARS >> :

take the turkey and do the ticks calculation... >> it's not gonna work on history. You got a boiler, so you can do it.)

I don't know how to set different timeframes on ticks... (I can't decide between two ticks ? .... but it's not the same...)

 
MaxV42 писал(а) >>

Can a broker forbid the use of EAs by a particular user? Or impose restrictions on the trading account?

If it is written in the trading conditions that trading with Expert Advisors is allowed?

Yes, it can.

For example, if on the client's side there is an obviously erroneous script that generates a lot of trade orders.

Or if the user is "misbehaving" - some brokerage companies do not accept scalping.

Disabling the Expert Advisor looks as follows: the program works as it did before, but the volume orders do not go to the server. The broker has disabled it and does not care. The client does not know. Then, when the client understands what is going on, he calls brokerage companies, and they argue about something. As a result the client either tells to the brokerage company (there are some variants) or agrees with brokerage company's demands and the possibility to use Expert Advisors is (just so) turned on.

 
SK. >> :

Yes, it can.

For example, if there is an obviously faulty script running on the client side, generating a lot of trade orders.

Or if the user "misbehaves" - some brokerage companies do not tolerate pipsing.

Disabling the Expert Advisor looks as follows: the program works as it did before, but the volume orders do not go to the server. The broker has disabled it and does not care. The client does not know. Then, when the client understands what is going on, he calls brokerage companies, and they argue about something. As a result the client either tells to the brokerage company to go somewhere else (there are variants of this) or agrees with brokerage company's demands and the possibility to use the Expert Advisors is (just so) turned on.

IN ONE PHRASE - A CASINO AND A COMPETENT GAMBLER ...

 
OrderSend(Symbol(), OP_BUY, Lots, Ask, 0, 0, 0, "buy", magic, 0, CLR_NONE);

the tester gives error 4107. why? and how can i fix it?

thanks in advance!

 
dmmikl86 >> :

the tester generates error 4107. why? and how can I fix it?

thanks in advance!

4107 Wrong price parameter for trade function. Try slippage parameter at least 3, I'm not greedy, I usually put 10.

OrderSend(Symbol(), OP_BUY, Lots, Ask, 3, 0, 0, "buy", magic, 0, CLR_NONE);
It is also advisable to RefreshRates(); before opening an order to have the most recent data.
 
Urain >> :

4107 Incorrect price parameter for the trading function. Try slippage parameter at least 3, I'm not greedy, I usually put 10.

It would also be better to RefreshRates(); before opening an order to have the latest data.


fixed it, but still there is an error.

2009.07.04 10:11:38 2009.04.28 03:00 MACD_&_Alligator GBPUSD,H1: invalid price 1.46234000 for OrderSend function

2009.07.04 10:11:38 2009.04.28 03:00 MACD_&_Alligator GBPUSD,H1: OrderSend error 4107


 
dmmikl86 писал(а) >>

Fixed it, but there's still an error.

2009.07.04 10:11:38 2009.04.28 03:00 MACD_&_Alligator GBPUSD,H1: invalid price 1.46234000 for OrderSend function

2009.07.04 10:11:38 2009.04.28 03:00 MACD_&_Alligator GBPUSD,H1: OrderSend error 4107

It is a silly suggestion, but worth a try.

 
is it like NormalizeDouble(Ask,Digits); is that how it works?
 
JavaDev >> :

>> Thank you. I had a feeling one line wouldn't do.

 

The question is simple - are the graphical objects stored in the Profile?

I know they can be stored in Templates, but then I would have to do this for each currency pair.

Will it be possible to save objects to a file using a command in version 5?