Errors, bugs, questions - page 1482

 
Vasyl Nosal:
The only intelligible answer was that there is no standard function. You have to find out the price of 0-100% and calculate the other levels and direction.
What is there to calculate? Binding goes to a specific price and it all is calculated with a simple formula. You don't want me to write the whole code for you, and this is probably not the place to ask such a question.
 
coderex:
What is there to count? The link goes to a specific price, from which everything is counted by a simple formula. You don't want me to write all the code for you, and it's probably not the place to ask such a question.
Freelance is probably the best place to ask this question...
 

The requirement in the marketplace when placing the product is: "The product can only contain one EX4 file, no additional files are allowed".

My indicator consists of an EA which collects data from the internet and an indicator which shows the result of processing this data on a chart.

Can you advise me which way to place indicator (one EX4 file) and EA (second EX4 file)?

 
Igor Ramensky:

The requirement in the marketplace when placing the product is: "The product can only contain one EX4 file, no additional files are allowed".

My indicator consists of an EA that collects data from the internet and an indicator that shows the result of processing this data on a chart.

Can you advise me which way I should place the indicator (one EX4 file) and the Expert Advisor (second EX4 file)?

Place two products in the marketplace: one advisor that downloads data, and the second indicator itself. There are no other options.

It is true that we can also save the indicator in an Expert Advisor and distribute the indicator as an EA.

 
coderex:
You haven't even tried what they give you almost ready-made :) I have zones calculated by levels, I use a family of classes of standard library, everything is given as I need - the price of levels. MetaQuotes already did most of the work for you, and you are too lazy to create a class object and work with it. At the same time you are trying to re-invent the wheel of primitives. Doesn't make sense, because everything has already been created using the same primitives - just take it and use it :)
He doesn't have a clue about classes. It's all chinese to him.
 
Vasiliy Sokolov:

Place two products in the marketplace: one advisor to download the data and the other the indicator itself. There are no other options.

It is true, we can also save an indicator in an Expert Advisor and distribute the indicator as an Expert Advisor.

Thank you, I have also thought about the first variant, but I would like a nicer solution.

The second variant is not suitable because we need only one Expert Advisor that collects data; however, there can be many indicators that use this data on different charts in different terminals.

 
Igor Ramensky:

Thank you, I also thought about the first option, but I would like a nicer solution.

The second option is not suitable because I need only one EA that collects data, but there may be many indicators that use this data, on different charts in different terminals.

In this case, only the first variant is suitable. Moreover, WebRequest works only in Expert Advisors and scripts.
 

Afternoon

There is one broker with mt5.

and there is a CFD on oil

There is a support for this broker may be a bit inconsistent in setting this symbol

I can open a position with it and change stop-loss and profit and sometimes transfer stop to Boo and then I can do nothing at all - no manual closing, move stop/profit to chart or set a trailing stop and not to close an opposite position.

In one case, they acknowledged their error and corrected it - I have traded using this symbol until it has expired.

A new symbol has been added and the situation is similar.

The first time, these bugs led to the fact that I could not place a Buy and close the hand, as a result I got a stop on two accounts under -2k green.

The second time I failed to close a good profit and did not get to the profit 1 p to initialize it and work. (ended up being a BU).

Here's the response from the broker the first time

"Thank you very much for your chat request. Please be advised that we did now a modification on the symbol**G6 and it should work now. So you can place an order online. Please let us know if there should be any problem. We hope we have been of assistance to you."


The second time these logs were in the terminal.

RP 0 17:50:25.982 Experts Automated Trading is enabled
PL 0 18:00:00.198 Trades '****': exchange sell 1.00 **H6 at market
NS 0 18:00:00.198 Trades '****': exchange sell 1.00 **H6 at market
OG 0 18:00:00.198 Trades '****': exchange buy 1.00 USDCAD at market
ER 0 18:00:00.226 Trades '****': order #154*** buy 1.00 / 1.00 USDCAD at 1.43383 done in 27 ms
EH 0 18:00:00.226 Trades '****': deal #147*** buy 1.00 USDCAD at 1.43383 done (based on order #154***)
OJ 0 18:00:00.248 Trades '****': modify buy 1.00 USDCAD sl: 0.00000, tp: 0.00000 -> sl: 1.43083, tp: 1.43583
DE 0 18:00:00.271 Trades '****': modify buy 1.00 USDCAD sl: 0.00000, tp: 0.00000 -> sl: 1.43083, tp: 1.43583 done in 22 ms
DD 0 18:00:01.298 Trades '****': order #154*** sell 1.00 / 1.00 **H6 at 28.45 done in 1099 ms
HI 0 18:00:01.298 Trades '****': deal #147*** sell 1.00 **H6 at 28.45 done (based on order #154***)
FO 0 18:00:01.312 Trades '****': modify sell 1.00 **H6 sl: 0.00, tp: 0.00 -> sl: 28.95, tp: 28.20
PL 0 18:00:01.328 Trades '****': order #154*** sell 1.00 / 1.00 **H6 at 28.45 done in 1129 ms
IQ 0 18:00:01.328 Trades '****': deal #147***1 sell 1.00 **H6 at 28.45 done (based on order #154***)
JD 0 18:00:01.328 Trades '****': modify sell 2.00 **H6 sl: 0.00, tp: 0.00 -> sl: 28.95, tp: 28.20
IK 0 18:00:01.351 Trades '****': modify sell 2.00 **H6 sl: 0.00, tp: 0.00 -> sl: 28.95, tp: 28.20 done in 39 ms
CH 2 18:00:01.379 Trades '****': failed modify sell 2.00 **H6 sl: 28.95, tp: 28.20 -> sl: 28.95, tp: 28.20 [Modification failed due to order or position being close to market]
GP 0 18:00:11.500 Trades '****': modify sell 2.00 **H6 sl: 28.95, tp: 28.20 -> sl: 28.44, tp: 28.20
QD 2 18:00:11.521 Trades '****': failed modify sell 2.00 **H6 sl: 28.95, tp: 28.20 -> sl: 28.44, tp: 28.20 [Modification failed due to order or position being close to market]
QL 0 18:00:11.531 Trades '****': modify sell 2.00 **H6 sl: 28.95, tp: 28.20 -> sl: 28.44, tp: 28.20
DQ 2 18:00:11.551 Trades '****': failed modify sell 2.00 **H6 sl: 28.95, tp: 28.20 -> sl: 28.44, tp: 28.20 [Modification failed due to order or position being close to market]
NK 0 18:00:11.578 Trades '****': modify sell 2.00 **H6 sl: 28.95, tp: 28.20 -> sl: 28.44, tp: 28.20
RM 2 18:00:11.601 Trades '****': failed modify sell 2.00 **H6 sl: 28.95, tp: 28.20 -> sl: 28.44, tp: 28.20 [Modification failed due to order or position being close to market]
QG 0 18:00:11.610 Trades '****': modify sell 2.00 **H6 sl: 28.95, tp: 28.20 -> sl: 28.44, tp: 28.20
HF 2 18:00:11.630 Trades '****': failed modify sell 2.00 **H6 sl: 28.95, tp: 28.20 -> sl: 28.44, tp: 28.20 [Modification failed due to order or position being close to market]
GR 0 18:00:11.656 Trades '****': modify sell 2.00 **H6 sl: 28.95, tp: 28.20 -> sl: 28.44, tp: 28.20
RQ 0 18:00:11.688 Trades '****': modify sell 2.00 **H6 sl: 28.95, tp: 28.20 -> sl: 28.44, tp: 28.20
......
IG 0 18:01:56.613 Trades '****': exchange buy 2.00 **H6 at market
LR 2 18:01:56.633 Trades '****': failed exchange buy 2.00 **H6 at market [Modification failed due to order or position being close to market]
DQ 0 18:04:42.430 Trades '****': deal #147*** buy 2.00 **H6 at 28.94 done (based on order #154***)
OR 0 18:05:39.968 Experts Automated Trading is disabled

Sent to support - are silent, went through a chat to them - said they had received and for some reason have forwarded the letter to my personal manager

I wrote to him and he did not care.

As a result, I got a loss because of the negligence of the support, and they have not want to admit anything this time and stupid stupid are silent.

Can I somehow modify the server part to the crooked and negligent support teams were not so crooked to configure the characters.



 
Karputov Vladimir:
Exactly. Finobacci lines build percentage levels, not prices. Therefore, if you want prices of levels, you have to do some calculating.

I asked if there's a built-in object get for that (there isn't, but there should be).

And this is a real tambourine dance.

string name_fibo="Fibo";
//////////////
void OnStart()
{
  int levels=int(ObjectGetInteger(0,name_fibo,OBJPROP_LEVELS));
  double fib_prices[]; ArrayResize(fib_prices,levels);
   double price_lev0=ObjectGetDouble(0,name_fibo,OBJPROP_PRICE,1);
  double price_lev100=ObjectGetDouble(0,name_fibo,OBJPROP_PRICE,0);
  bool wayUP=false; if(price_lev0<price_lev100) wayUP=true;
  double perc100_points=MathAbs(price_lev0-price_lev100);


   double level=0;
   for(int i=0;i<levels;i++)
     {
      level=ObjectGetDouble(0,name_fibo,OBJPROP_LEVELVALUE,i);
      if(wayUP) fib_prices[i]=price_lev0+perc100_points*level;
      else
      fib_prices[i]=price_lev0-perc100_points*level;
      
     }

}
 
Vasyl Nosal:

I asked if there's a built-in object get for that (there isn't, but there should be).

And this is a real tambourine dance.

I don't understand everything that has to do with reading data from graphical objects. Well, of course it is necessary but... If we create an EA based, for example, on Fibo levels, then what prevents us from once and for all creating a function that will calculate all other prices based on two known ones and store them, for example, in an array. In this case, the Expert Advisor can be tested and optimized, instead of running it through the visualizer, which of course is necessary... And if you always know only two prices - the upper and lower anchor points, you always know the prices of all levels - of both standard fib and your own...