[Archive] Learn how to make money villagers! - page 818

 
7Konstantin7:
Well, yes, in principle, it's all right.)
Soon you will go on vacation not on a moped but on a cool car. Good luck!
 
Roman.:
Limit owl operation by time and enter this into external variables - if interested, I can post the code here.

Post the code, interested, thanks in advance.

 
khorosh:
Soon you will go on vacation not on a moped but on a cool car. Good luck!

Thanks) I've got a moped like a car too :D It's not really a moped)

a car is good in winter)

 
BeerGod:
Post the code, interested, thanks in advance.

You can use Kim's function - there, specifically by time up to min. sec - start, up to min. sec - stop.

Mine is simpler (for rough analysis - suitable, IMHO).

From the owl on the previous report:

You can add external variables (you have your own indicators - this is an example):

extern int Filter.Hour=0;       //  Д-Фильтр: торговля по часам, вне этих часовых рамок новые сделки не открывать
extern int     Start=9;
extern int      End=20;

// Параметры используемых индикаторов
extern int    Fast            = 5;
extern int    Slow            = 39;
extern int    Signal          = 20;
extern int MagicNumber = 7;       // магик        


To start:

int start()    // -----------------------СТАРТ ЭКСПЕРТА--------------- 
{
  //---------------------расчет параметров индикатора ОСМА-----------------------------------------------   
  double OsMA_1 = iCustom(Symbol(), signal_period, "JQS iOsMA",Fast,Slow,Signal,1,3,3,3,0,1);
  double OsMA_2 = iCustom(Symbol(), signal_period, "JQS iOsMA",Fast,Slow,Signal,1,3,3,3,0,2); 
//------------------------------------------------------------------------------------------------------------------------
 
  // ---------------   СТАРТ   --------------------------------------------------------------------------              
  // Вход в рынок по индикатору ОСМА и времени
   if(OsMA_1>0 && OsMA_2<0)
      switch(Filter.Hour)  // торги по времени Да=1/Нет=0
        {
         case 0:  WmOrderSend(Symbol(), OP_BUY, Lots_New, Ask, 0, 0, "старт", MagicNumber); break; 
         case 1:  if (TimeHour(TimeCurrent()) >= Start && TimeHour(TimeCurrent()) <  End)WmOrderSend(Symbol(), OP_BUY, Lots_New, Ask, 0, 0, "старт", MagicNumber); break; 
        } 
   if(OsMA_1<0 && OsMA_2>0)  
       switch(Filter.Hour)  // торги по времени Да=1/Нет=0                    
        {
         case 0:  WmOrderSend(Symbol(), OP_SELL, Lots_New, Bid, 0, 0, "старт", MagicNumber); break;
         case 1:  if (TimeHour(TimeCurrent()) >= Start && TimeHour(TimeCurrent()) <  End)WmOrderSend(Symbol(), OP_SELL, Lots_New, Bid, 0, 0, "старт", MagicNumber); break;
        }      
   
   return(0);    //  ВЫХОД ИЗ СТАРТ
}

 
7Konstantin7:

Thanks) I've got a moped like a car too :D It's not really a moped)

car is good in winter)

The main thing is that it's safer in a car.
 

That picture is hilarious!

 
khorosh:
The main thing is that it is safer in a car.

I don't go over 100.

it's safer in a car, but that's not the main thing)

On the motorbike adrenaline, fun, travel is very interesting, as they say dance while young)

 

You're my advisory horses!

Summary:
Deposit/Withdrawal: 5 000.00 Credit Facility: 0.00
Closed Trade P/L: 937.20 Floating P/L: -62.00 Margin: 106.66
Balance: 5 937.20 Equity: 5 875.20 Free Margin: 5 768.54
Details:

Gross Profit: 1 508.64 Gross Loss: 571.44 Total Net Profit: 937.20
Profit Factor: 2.64 Expected Payoff: 10.65
Absolute Drawdown: 0.00 Maximal Drawdown: 126.32 (2.14%) Relative Drawdown: 2.14% (126.32)
Total Trades: 88 Short Positions (won %): 46 (67.39%) Long Positions (won %): 42 (73.81%)
Profit Trades (% of total): 62 (70.45%) Loss trades (% of total): 26 (29.55%)
Largest profit trade: 68.60 loss trade: -111.28
Average profit trade: 24.33 loss trade: -21.98
Maximum ($): 9 (203.72) consecutive losses ($): 3 (-79.50)
Maximal consecutive profit (count): 203.72 (9) consecutive loss (count): -126.32 (2)
Average consecutive wins: 3 consecutive losses: 2
 
vladds:

That picture is hilarious!

I can't get a move on like the link to it - it's even cooler!!!! :-(
 
Roman.:
Can't get any movement like on the link to it - it's even cooler there!!! :-(

and I wanted a move too, it doesn't seem to work here

just a dead avatar.