Forum

I want to I do not want to go back to the value of the day itself.

I want to make each day open, the ad is loops (Hedging style) The values ​​used to open orders on a daily basis are not equal, they are the values ​​of the day. Some days to order to go to another day. For example: Makes the next order opening time in the first day's loops take the value of Day 2. I

how to i++ when new day

int i= 0 ; if ( .... ) //"when new day" { i++; dPriceHighAll= High [ Highest ( NULL , 0 , MODE_HIGH ,( iBarShift ( NULL , 0 , StrToTime ( TimeToStr (dtTradeDate-( 86400 *i), TIME_DATE ) + " " + sTimeBegin)))-( iBarShift ( NULL , 0 , StrToTime ( TimeToStr (dtTradeDate-( 86400 *i)

about for()

want value "TimeOpenFirstOrder" to use how to fix int TimeOpenFirstOrder; for(int k=0;k<=OrdersHistoryTotal();k++) { if(OrderSelect(k,SELECT_BY_POS,MODE_HISTORY)) { if(OrderSymbol()==Symbol() && OrderMagicNumber()==MagicNumber) { if(OrderType()==OP_BUY

how to count When A bar closed in Bollinger bands, then B is closed out Bollinger bands

I want to count assume Give numbers as bars in sequence. A B C D E F G H I J K such as When A bar closed in Bollinger bands, then B is closed out Bollinger bands are counted as 1. When bar D is closed in Bollinger bands, the next bar is E, the closing price outside Bollinger bands is 2. This is

how to creat code Send only 1 Order in 1 day or 00.00-24.00

i need Send only 1 order code int OrderInOneDay(int type) { int Cnt=0; int totalHistory; for (int i = OrdersHistoryTotal()-1; i >=0; i--) { totalHistory=OrderSelect( i, SELECT_BY_POS, MODE_HISTORY ); if (OrderSymbol() == Symbol() && OrderMagicNumber()==MagicNumber )