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

 
 

Does anyone use the Prorealtime platform? I am curious, as a beginner, what indicators are used there and can they be inserted into MT4?

Here is the link www.prorealtime.com

 
Alex5757000 >> :
I don't understand how I can calculate the actual opening price if we opened with different lots. e.g. with an averaging factor of N. // 0.1 lot and 0.2 and 0.4 - here N==2 at prices 1.8 and 1.6 and 1.4 . What will be the actual opening price?

The most interesting thing is that when we calculate with a coefficient we don't depend on the size of the initial lot.

Script:

double start_lot=0.01;               //стартовый лот, нафикк не нужен :)
double koeff=2;                     //коэфициент
double Price[4]={1.4,1.6,1.8,0,0};  //цены, в этом случае до пяти штук 
                                    //(от Price[0] до Price[4] 
int start()
   {
   double A=0;
   double B=0;
   for (int count=0; Price[ count]>0; count++)
      {
      A= A+( Price[ count]* MathPow( koeff, count));  
      B= B+(MathPow( koeff, count));  
      }   
   Alert ( A/ B);
return(0);
}
 

Hello.

Could you please tell me how to insert an indicator into an EA?

Or rather, how to build the code so that the buy and sell conditions are fulfilled.

Approx.

If(red histogram candle){sell=true;}

if(blue ...){buy=true;}


I want the EA to be in the market all the time and flip.

Files:
 
tmp.0, thank you very much!
 
olezya >> :

Does anyone use the Prorealtime platform? I am curious, as a beginner, what indicators are used there and can they be inserted into MT4?

Here is the link www.prorealtime.com

I don't think you will find any experts on that platform. I was a bit impressed with their tutorial.

They seem to try to find their place under the sun and therefore focus primarily on the "masses" - it looks like a handy

interface and various options in terms of graphics. They allow even the beginner to test strategies without any

any ideas in programming. I hope that MT5 will have such useful "gimmicks".

Standard indicators, there is no need to "put" them into MT, they are already there.

 

Guys! Professionals!

Please help, I'm losing dough!

Terminal log:

2009.09.08 00:44:50 '64766': order #11573500 sell 1.80 EURCHF at 1.51958 sl: 0.00000 tp: 0.00000 closed at price 1.51948
2009.09.08 00:44:48 '64766': request in process
2009.09.08 00:44:48 '64766': request was accepted by server
2009.09.08 00:44:47 '64766': close order #11573500 sell 1.80 EURCHF at 1.51958 sl: 0.00000 tp: 0.00000 at price 1.51948
2009.09.08 00:44:46 '64766': requote 1.51907 / 1.51947 for open buy 1.80 EURCHF at 1.51920 sl: 0.00000 tp: 0.00000
2009.09.08 00:44:43 '64766': request in process
2009.09.08 00:44:43 '64766': request was accepted by server
2009.09.08 00:44:42 '64766': instant order buy 1.80 EURCHF at 1.51920 sl: 0.00000 tp: 0.00000
2009.09.08 00:44:42 Expert stdlib EURCHF,M5: loaded successfully
2009.09.08 00:44:42 '64766': requote 1.51893 / 1.51933 for order #11573500 sell 1.80 EURCHF closing at 1.51914
2009.09.08 00:44:40 '64766': request in process
2009.09.08 00:44:40 '64766': request was accepted by server
2009.09.08 00:44:39 '64766': close order #11573500 sell 1.80 EURCHF at 1.51958 sl: 0.00000 tp: 0.00000 at price 1.51914
2009.09.08 00:31:04 '64766': order was opened : #11573500 sell 1.80 EURCHF at 1.51958 sl: 0.00000 tp: 0.00000
2009.09.08 00:31:02 '64766': request in process
2009.09.08 00:31:02 '64766': request was accepted by server
2009.09.08 00:31:01 '64766': instant order sell 1.80 EURCHF at 1.51958 sl: 0.00000 tp: 0.00000

On line 2009.09.08 00:44:42 '64766': requote 1.51893 / 1.51933 for order #11573500 sell 1.80 EURCHF closing at 1.51914

- The server offered to close the order at a better price than the robot tried to close (offered 1.51893, and wanted to close at 1.51914)

And according to my brokerage company's technical support, the terminal rejected this very profitable offer.

It turns out that my robot refused from higher profit!

Ahtung!

Question: How do I make it stop being so slow - accept more profitable offer and refuse to accept the less profitable one?

 

Is this possible? DoC offer to close an order at a better price???? This is the first time I've heard of a brokerage company getting so sloppy.

If you are a robot, you cannot be a fool, by definition it works strictly according to your program.

You should just correct the code, if you want you may put it here and they will help you.

 
Zdravstvyjte. podskagute pojgalysta est lu vozmognost vuklyuchat expert na grafuke uz evo ge sobstvennogo koda. Ulu ge skudat ego s grafuka.
Zaranne blagodaren. U pru vozmognostu eslu est prumer.
 
AndBar >> :
Zdravstvyjte . podskagute pojgalysta est lu vozmognost vuklyuchat expert na grafuke uz evo ge sobstvennogo koda. Ulu ge skudat ego s grafuka.
Zaranne blagodaren. U pru vozmognostu eslu est prumer.

Carry out a linguistic analysis:

1. Shutdown>>Beyond operation>>Do not perform operations

2. from own code>>Without operator's intervention>>The shutdown condition is generated by Expert Advisor's code

Analysis has shown that introducing an additional logical variable, say, bool ON, solves the problem.

The code provides for execution of trade operations only when ON=true, for example: if(buy=1 && ON) OrderSend(.....).

The Expert Advisor decides to trade and assigns ON=true to the variable; Expert Advisor status: Enabled.

Expert decides not to trade and assigns variable ON=false; Expert Advisor status: Off.

Reason: