nikelodeon: Good day all!!! Let's assume there is a buffer in the indicator that I need to use in the calculation of other indicators. I want to use it in calculation of other indicators. How to make the indicator buffer be present but it doesn't show any icons on the chart? Thanks all!!!!
Here is an example for 2 drawn (b1, b2) and 2 calculated buffers (b3, b4), the calculated ones are not displayed in the terminal:
Here is an example for 2 drawing buffers (b1, b2) and 2 calculation buffers (b3, b4), calculation buffers are not shown in the terminal:
Yes and no way, they are not displayed because the number of buffers is specified as 2. And you cannot access buffers 3 and 4 from another indicator.... Which surprises me......
nikelodeon: You can't see them because the number of buffers is specified as 2. And there is no possibility to apply to buffer 3 and 4 from another indicator.... Which surprises me......
Well, only DRAW_NONE then.
I just don't understand why you need to put an indicator on a chart that is called via iCustom...
Good day all! After I placed my robot on several pairs, I faced a small problem, which probably everyone has already passed: if I have several open orders on different pairs, when CloseAllBuy() is triggered on one of them, all BAMs on all pairs are closed. How to avoid it, I don't know. Inserting magic check (see below), I get a message about wrong ticket. Who has a solution, please help. Thanks. void CloseAllBuy() { The bool fc; for (int i=OrdersTotal()-1; i>=0; i--) { if(OrderMagicNumber()!=magic || OrderSymbol()!=Symbol()) continue; if(OrderType()==OP_BUY && OrderMagicNumber()==magic) { fc=OrderClose (OrderTicket(),OrderLots(),MarketInfo(OrderSymbol(),MODE_BID),slip); buycloseprice=0.0; tc=OrderCloseTime(); } } }
Good day to all. Guys tell me how you can build an indicator from an indicator. e.g. a mask built on another mask, or Momentum built not on close prices, but on another Momentum???? So called building an indicator from an indicator....
Good day all!!! Let's assume there is a buffer in the indicator that I need to use in the calculation of other indicators. I want to use it in calculation of other indicators. How to make the indicator buffer be present but it doesn't show any icons on the chart? Thanks all!!!!
Look at SetIndexStyle() help and there are line drawing styles and DRAW_NONE
Look at the SetIndexStyle() help function and there are line drawing styles and DRAW_NONE
You can't see them because the number of buffers is specified as 2. And there is no possibility to apply to buffer 3 and 4 from another indicator.... Which surprises me......
Well, only DRAW_NONE then.
I just don't understand why you need to put an indicator on a chart that is called via iCustom...
Well only DRAW_NONE then.
{
The bool fc;
for (int i=OrdersTotal()-1; i>=0; i--)
{
if(OrderMagicNumber()!=magic || OrderSymbol()!=Symbol()) continue;
if(OrderType()==OP_BUY && OrderMagicNumber()==magic)
{
fc=OrderClose (OrderTicket(),OrderLots(),MarketInfo(OrderSymbol(),MODE_BID),slip);
buycloseprice=0.0;
tc=OrderCloseTime();
}
}
}
Vladimir! Add OrderSelect() to the beginning of the loop