[Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2. - page 348
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
No, I just need
OrderSend("EURUSD", OP_BUY,0.1,Ask,0,Ask-400*Point,Ask+100*Point);
Stop has been written correctly only for Bai.
For Bays, they are in the other direction signs SL + up, TP - down.
and it is also recommended to normalize all calculated prices by Digits signs before passing them into OrderSend
NormalizeDouble(Ask-100*Point, Digits)
...an indicator that highlights certain time periods in colour...
You can do the following: declare a two-dimensional array, transfer the required amount of data from the series to it, then sort it by the first dimension. In the second dimension will be the bar numbers. To see how it works, see an example
I don't understand something.
Declare the dubs as:
Initialised them with volumes and inserted them into an array:
a1=Volume[1],
a2=Volume[2],
a3=Volume[3],
a4=Volume[4],
a5=Volume[5],
a6=Volume[6],
a7=Volume[7],
a8=Volume[8],
a9=Volume[9],
a10=Volume[10];
int mas1[10]={a1,a2,a3,a4,a5,a6,a7,a8,a9,a10}; //Вот здесь компилятор что-то хочет в конце строки
int mas2[10][2];
When compiling an error - comma or semicolon expected
Can you tell me what he wants?
No, I just need
OrderSend("EURUSD", OP_BUY,0.1,Ask,0,Ask-400*Point,Ask+100*Point);
You can't do that, in which case the Ask will take over from the timetable. It has to be
I don't understand something.
You can't declare arrays this way, and there's no need in your case, you already have a Volume array, so insert it in the loop with the appropriate index, somewhere like this:
mas2[i,0]=Volume[i];
You can't declare arrays this way, and there's no need in your case, you already have a Volume array, so insert it into the loop with the appropriate index, somewhere like this:
mas2[i,0]=Volume[i];
You can't declare arrays this way, and there's no need in your case, you already have a Volume array, so insert it into the loop with the appropriate index, somewhere like this:
mas2[i,0]=Volume[i];
Another question on the same subject.
After sorting, I display data from the arrays in the alert:
min_2=mas2[2,0];
min_V2=mas2[2,1];
Alert(min_2," ",min_V2," ", High[min_V2]);
Everything displays fine.
BUT, if I try to output to a chart - no reaction! :
min_1=mas2[1,0];
min_V1=mas2[1,1];
min_2=mas2[2,0];
min_V2=mas2[2,1];
ObjectCreate("", OBJ_HLINE,0,0,High[min_V2]);
ObjectSet("", OBJPROP_COLOR,Ex_col_1);
ObjectSet("", OBJPROP_STYLE, 0);
ObjectSet("", OBJPROP_WIDTH , 2);
What should I do?
Another question on the same subject. What should be done?
Tried it this way too, it doesn't want to draw. For some reason, the terminal doesn't recognize PRICE coordinate of my kind - High[min_V2], where min_V2 is an array element. I cannot understand how to display an array element not as Print, Message or Alert, but as some object on a chart. And this is not the first example I've encountered - I have a problem with arrays...