[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 124
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
Good afternoon,
Could you please tell me how to put a marker on the chart? For example, the order did not open, but at least to see on the chart, at which point it should have opened.
I would like to place a marker on a chart.
Like this
Yeah sorry got confused, first time writing on the forum. Copypasted first, then decided to handwrite and got confused... But the example above is correct...
MA1>MA2 and MA1<MA3 and MA3<MA4
Read the following thread
There's something strange here.
MA1>MA2 and MA2>MA3 and then MA1<MA3
All the more so because it is sufficient to
The question is this. This is not the first time I've encountered this situation:
If the traal or breakeven function is called on every tick, for example, an error 1 will pop up. Which means, according to the documentation:
ERR_NO_RESULT 1 Нет ошибки, но результат неизвестен
If not called openly in start function, i.e. not just entered function with parameters directly in start, but call it on every bar, i.e. not by tick, then error - no...
I mean like this:
Why like this?
And in general, how is it more intelligently implemented? Will it be resource intensive on every tick?
Всем добрый день.
I need your help. I don't understand what's going on.
if (OrderStopLoss() != NormalizeDouble(t6,5))
{
a=10;
}
TheOrderStopLoss()=1.3017 andNormalizeDouble(t6,5)=1.3017 condition still holds, i.e. a=10. But it should not be satisfied.
What may be the reason for this?
The question is this. This is not the first time I've encountered this situation:
If the traal or breakeven function is called on every tick, for example, an error 1 will pop up. Which means, according to the documentation:
If not called openly in start function, i.e. not just entered function with parameters directly in start, but call it on every bar, i.e. not by tick, then error - no...
I mean like this:
Why like this?
And in general, how is it implemented more intelligently? Will it be resource intensive on every tick?
The question is this. This is not the first time I've encountered this situation:
If the traal or breakeven function is called on every tick, for example, an error 1 will pop up. Which means, according to the documentation:
If not called openly in start function, i.e. not just entered function with parameters directly in start, but call it on every bar, i.e. not by tick, then error - no...
I mean like this:
Why like this?
And in general, how is it implemented more intelligently? Is it going to be resource intensive on every tick?
Trawl tries to move SL to the same level. We need to add a check, trawl level should be different from current SL.
Trawl attempts to move the SL to the same level. A check should be added, trawl level must be different from current SL.
If stop - new stop (in b.u.) is not zero... then we modify... If not, we don't modify. That's why it's not clear to me how this happens. After all, I understand that I need to check for equality of past and new stop and I have done it.I have a check for that:
Hello ! please advise how can I modify my initial and final order to 1 T/P thank you
gi_304 = CountTrades();
g_price_212 = 0;
double ld_24 = 0;
for (g_pos_300 = OrdersTotal() - 1; g_pos_300 >= 0; g_pos_300--) {
OrderSelect(g_pos_300, SELECT_BY_POS, MODE_TRADES);
if (OrderSymbol() != Symbol() || OrderMagicNumber() != g_magic_176) continue;
if (OrderSymbol() == Symbol() && OrderMagicNumber() == g_magic_176) {
if (OrderType() == OP_BUY || OrderType() == OP_SELL) {
g_price_212 += OrderOpenPrice() * OrderLots();
ld_24 += OrderLots();
}
}
}
if (gi_304 > 0) g_price_212 = NormalizeDouble(g_price_212 / ld_24, Digits);
if (gi_332) {
for (g_pos_300 = OrdersTotal() - 1; g_pos_300 >= 0; g_pos_300--) {
OrderSelect(g_pos_300, SELECT_BY_POS, MODE_TRADES);
if (OrderSymbol() != Symbol() || OrderMagicNumber() != g_magic_176) continue;
if (OrderSymbol() == Symbol() && OrderMagicNumber() == g_magic_176) {
if (OrderType() == OP_BUY) {
g_price_180 = g_price_212 + TakeProfit2 * Point;
gd_unused_196 = g_price_180;
gd_308 = g_price_212 - Stoploss * Point;
gi_268 = TRUE;
}
}
if (OrderSymbol() == Symbol() && OrderMagicNumber() == g_magic_176) {
if (OrderType() == OP_SELL) {
g_price_180 = g_price_212 - TakeProfit2 * Point;
gd_unused_204 = g_price_180;
gd_308 = g_price_212 + Stoploss * Point;
gi_268 = TRUE;
}
}
}
}
if (gi_332) {
if (gi_268 == TRUE) {
for (g_pos_300 = OrdersTotal() - 1; g_pos_300 >= 0; g_pos_300--) {
OrderSelect(g_pos_300, SELECT_BY_POS, MODE_TRADES);
if (OrderSymbol() != Symbol() || OrderMagicNumber() != g_magic_176) continue;
if (OrderSymbol() == Symbol() && OrderMagicNumber() == g_magic_176) OrderModify(OrderTicket(), g_price_212, OrderStopLoss(), g_price_180, 0, Yellow);
gi_332 = FALSE;
}
}
}
return (0);
Hello ! please advise how can I modify my initial and final order to 1 T/P thank you
Edit this code so it doesn't look like a hack