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

 

With what in the code to make a trend line correction? The lines are drawn from the fractal signals.

 

if (ObjecFind(name != -1){

ObjectSet(name, OBJPROP_PRICE1, price1);//priced left point

ObjectSet(name, OBJPROP_PRICE2, price2);//the price of the right point

ObjectSet(name, OBJPROP_TIME1, time1);//timer of the left point

ObjectSet(name, OBJPROP_TIME2, time2);//right point time

}

 

Hello, straight to the point:

1. How to make an advisor who trades 60 days of reduction began to trade 15 days, (the cycle from the beginning of the funds to end)? (If you can opechitelno step by step).

2. (Inaccurate, but I ask) How to make Expert Advisor during work did not open orders, and only worked with the open, and of course close?

Can I close all orders in the middle of the cycle of the EA without losing money?

4. This may be too much for me personally, but I would like to ask you for your time. I would like to ask my question if I have not yet received a response from the councillor, if I have not yet received a response from the broker, or if I have not received a response from the broker, please contact me first and ask how I can rectify the problem. Thanks in advance!

I don't know much about it, but I have no contact with the developer. I have no contact with the developer of the advisor.

 

How do you mute it? Drove to the white knees. There are many tool windows (33). There are no EAs. Just middle and Zup. I can't figure out where it sings from. I am begging you to help. Service, events have been. The crosses on the events don't help. It's still singing, the bastard.

 
VAM_:

How do you mute it? Drove to the white knees. There are many tool windows (33). There are no EAs. Just middle and Zup. I can't figure out where it sings from. I am begging you to help. Service, events have been. The crosses on the events don't help. It's still singing, the bastard.

starling can sit in the turkey )))
 

Hi all, I'm trying to make a program and I'm having

I can't figure out why it's not working.

I can explain it :-)

I would like to make a line that changes colour depending on the trend so to speak (primitive indicator)

It seems to change but there are gaps as if he misses a bar in the calculation

what is my mistake

//--------------------------------------------------------------------
#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Blue // Color of the first line
#property indicator_color2 Red // colour of the second line

double Buf_0[],Buf_1[]; //open indicator arrays
//--------------------------------------------------------------------
int init() // Special function init()
{
//--------------------------------------------------------------------
SetIndexBuffer(0,Buf_0); // Assignment of an array to the buffer
SetIndexStyle(0,DRAW_LINE,STYLE_SOLID,2);// Line style
//--------------------------------------------------------------------
SetIndexBuffer(1,Buf_1);
SetIndexStyle(1,DRAW_LINE,STYLE_SOLID,2);
//--------------------------------------------------------------------
return;
}
//--------------------------------------------------------------------
int start()
{
int i,counted_bars;
//--------------------------------------------------------------------
Counted_bars=IndicatorCounted(); // Number of calculated bars
i=Bars-Counted_bars-1; // Index of the first one not counted
while(i>=0) // Cycle through the uncounted bars
{
double a=(High[i]+Low[i])/2;
double b=(High[i+1]+Low[i+1])/2;
if (a=>b) Buf_0[i]=a; //change or not change colour
if (a<b) Buf_1[i]=a;
i--;
}
//--------------------------------------------------------------------
return;
}
//--------------------------------------------------------------------

 
FatyM:

Hello, straight to the point:

1. How to make an advisor who trades 60 days when reducing began to trade 15 days, (the cycle from the beginning of the funds to end)? (If you can opechitelno step by step). - There is no way without code.

2. (How to make my EA not open orders, and only work with open orders, and of course close them? - I would like to remove the code of opening orders and dependence on a magician.

Is it possible to close all orders in the middle of working cycle without losing money? - Probably not

4) This may be too much for me personally, but I would like to ask you for your time. I would like to ask you to update my EA, if I have not already done it, I will probably do it again in the next 60 days. Thanks in advance! - I did not see any screenshots.

Another factor: I do not know a little, but sobrazitelno. I have no contact with the developer.

 

1. Please describe how to work with gold in the DC, if possible?

2. Can you describe what to do to change the days of the adviser for example from 60 to 15?

3.Opeshite please remove the code to open orders and dependence on the magician, only note vastanavit it was possible.

Thank you in advance for your time and effort

 
FatyM:

1. Please describe how to work with gold in the DC, if possible?

2. Can you describe what to do to change the days of the adviser for example from 60 to 15?

3.Opeshite please remove the code to open orders and dependence on the magician, only note vastanavit it was possible.

Thank you in advance for your time and effort

1. All brokerage companies publish their specifications on their websites. Look for specific information there - it's different.

2. It is not possible to change the days of the sAvetnik from 60 to 15

3. to remove code, put a double slash at the beginning of the line - // or move the cursor to the unnecessary code and press the BackSpace key. In order to be able to inAstAnate, it is necessary to make a backup copy of the file before editing.

 

nikost 06.06.2010 22:12

Dimka-novitsek:

Good evening! My MQL4 indicators are not working, just drag them onto the chart, and absolutely nothing! Please help!
reply


The thing is, advisers work, and indicators do not, absolutely nothing!


help F1 - technical indicators section

I have been working on it for a long time. I have no idea what to do with it. I think I failed to tell it well. I can't work with indicators that were compiled and written by hand in MQL4 editor.