[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 48
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
Victor, thank you for your succinct reply :-P (it took me several days to get it...:-P) - should have immediately used the search on this request. I read that it is not a trade conducted from the client terminal, so it is not documented ... - here.
For those interested in a similar issue (adjustments (additions) to position volumes when depositing/withdrawing funds to a trading account), people have laid out a whole library in codebase here.
The freely available Expert Advisor is here.
P.S. Information on the accepted value of trading f-fi
0 Buy
1 Sell
2 Pending BUY LIMIT order
3 Pending SELL LIMIT order
4 Pending BUY STOP order
5 Pending SELL STOP order
6 Additional information - deposit, withdrawal, bonuses
Hello.
Could you tell me what type==4 means?
and type==5
in the following snippet:
double ma=iMA(Symbol(),PERIOD_D1,21,0,MODE_SMA,PRICE_CLOSE,0);
for(int k=1; k<=OrdersTotal(); k++)
bool select=OrderSelect(k-1,SELECT_BY_POS);
if(select)
{
int type=OrderType();
int ticket=OrderTicket();
if (Bid<ma && type==4)
OrderDelete(ticket);
if (Bid>ma && type==5)
OrderDelete(ticket);
}
I understand the conditions for deleting orders, by ma is clear, but together how ?
Thank you.
nothing...
I would have killed without waiting a minute.
You don't look at the code before you put something somewhere...
... and an inquisitive experimenter... :)
... Hanging the author of the code by the tomatoes... :)
Try it this way, there are no parameters
Although the indicator makes full recalculation on every tick.
Try it this way, there are no parameters
Although the indicator makes full recalculation on every tick.
Victor, good day.
I tried to do it and printed it. The indicator shows some ten-digit numbers.
Try it this way, there are no parameters, I think.
Although the indicator does a full recalculation on every tick.
Victor, good afternoon.
I tried to do it, I printed it. The indicator shows some ten-digit numbers.
I dare say (I won't put the indicator on the chart anymore, and I don't want to finalize it), it outputs the EMPTY_VALUE constant - an empty value. But at certain times, when data appears in the buffer, it will print the normal values. Do a check, for example:
People, help me with code: Why this EA doesn't put a delay when MA is crossed.
and which block does the EA reach? do Print / Alert at different places in the code.
Are there any errors ?