[ARCHIVE]Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Can't go anywhere without you - 5. - page 151
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
Does anybody know if there is a script that deletes pending orders with TP 0000 and SL 0000? The pending orders are placed by an EA, but apparently due to the proximity to the price these orders are placed without the TP and SL. I would like to delete them instantly as I once lost half of my profit.
Do you have such a handy thing?)
No, it's not like that, my friend and I were discussing)) the point was that the stop loss is moved to breakeven, and the trailing move follows the price. And it's all at the same time and at the same order! That's what I am asking if somebody can explain what I mean.
ask your not too smart friend not to set you up and make you look stupid.
There are commonly used concepts. if you and your friend are confused in the head, you better read the theory or at least listen to what you are told. and not make up problems for yourself.
int low_pos=iLowest(NULL, 0, MODE_LOW, 1000,0);
int time_low=Time[low_pos];
double va1=Low[low_pos];
string txx = TimeToStr(time_low,TIME_DATE );
double va2=High[iHighest(NULL,0,MODE_HIGH,1000,0)];
int High_pos=iHighest(NULL,0,MODE_HIGH,1000,0);
int time_High=Time[High_pos];
double va2=High[High_pos];
string txz = TimeToStr(time_High,TIME_DATE );
Vinin tell me why va2 prints that variable is already defined, but va1 works.
double val=Low[iLowest(NULL,0,MODE_LOW,1000,0)];
int low_pos=iLowest(NULL, 0, MODE_LOW, 1000,0);
int time_low=Time[low_pos];
double va1=Low[low_pos];
string txx = TimeToStr(time_low,TIME_DATE );
double va2=High[iHighest(NULL,0,MODE_HIGH,1000,0)];
int high_pos=iHighest(NULL,0,MODE_HIGH,1000,0);
int time_High=Time[High_pos];
double va2=High[High_pos];
string txz = TimeToStr(time_High,TIME_DATE );
Vinin tell me why va2 prints that variable is already defined, but va1 works.
I already know if there is a script that deletes pending orders with TP 0000 and SL 0000. The pending orders are placed by EA, but because of the proximity to the price they are placed without TP and SL. I would like to delete them instantly as I once lost half of my profit.
Do you have such a handy thing?)
I think someone will do it on Job for five bucks.
If you can not find anyone - write, I'll do for free, but under some conditions, not less stupid than the application :)
Good afternoon)
Don't take this as a tirade, but
How do I compare two consecutive ticks? For example, is the next tick bigger than the previous one or smaller?)
Thanks in advance
The timeframe in many technical indicators can be set by MQL regardless of which one you are on. Lookhere for the second parameter: int timeframe.