I can't believe it! - page 10

 
khorosh >> :

Dear xnko ,don't engage in self-deception. And don't waste your time. Notice at the end of the test section you have no growth. And it is explained by the fact that this is the section. where there is a history of minutes. Upload the minutes to the whole testing section and the tester will show the deposit drain.

Yes, the Expert Advisor has some peculiarity: if the lot is fixed it stomps on the spot, but if the lot can be increased then the profits will be bigger. I can't explain why yet

 
xnko >> :

Yes, the EA has some peculiarity: if the lot is fixed it stomps on the spot, but if the lot can be increased, then the profits will be higher. I can't explain it yet.

It has nothing to do with the lot. The tester will not show the correct result if the minute history is not uploaded.

 
Gosh, on GPBJPY H1 in last 3 months turned 100 into 300,000,000 !!! The EA loves the Yen :). And pay attention to the last section, there is no plummet, just a rise
Files:
 

xnko Can you share the code for "virtual trailing" ?

As for "going nuts", the euphoria will pass... Try to test your system on a demo account... 1-2 weeks... I used to do this a lot... find a system... it seems to work... that's it... the euphoria sets in... I'm on my island somewhere with a bunch of hotties... and in the end... the system fails... the euphoria wears off... and I'm back at square one and it all starts all over again... from scratch... and after a few of these "euphoric grails", i've become more relaxed about another "miracle system"...

 
Shniperson >> :

xnko Can you share the code for "virtual trailing" ?

As for "going nuts", the euphoria will pass... Try to test your system on a demo account... 1-2 weeks... I used to do this a lot... find a system... it seems to work... that's it... the euphoria sets in... I'm on my island somewhere with a bunch of hotties... and in the end... the system fails... the euphoria wears off... and I'm back at square one and it all starts again... from scratch... and after a few such "euphoric grails", i've become more relaxed about another "miracle system"...

I agree with you, but I like the feeling :)

Now I'm going to post the virtual trailing technique

 
static double StopLoss;

bool SignalBuy()
{
StopLoss = Open[0];
return (...);
}

void CalculateStopForBuy()
{
if(...)
{
StopLoss = ...;
}
}

bool SignalCloseBuy()
{
return ( ... &&
Bid <= StopLoss /* Virtual Trailing */);
}
 

void start()

{

...

if(SignalBuy)

{

buy

}

else if(SignalCloseBuy())

{

CloseOrder();

}

else if(OrderOpened)

{

CalculateStopForBuy();

if(needed)

OrderModify();

}


}

 

Listen, xnko, you're boring me with your positivity :)

You have gone crazy yourself, but you are infecting people.

Come on, tell me the idea, or EA compiled for the demo at least three days and put it out, because I broke my brain already, how you do so.

If you don't want to do it publicly, write to kontrik(at)mail.ru or 111506211 in the inbox


 
xnko >> :
Gosh, on GPBJPY H1 in last 3 months turned 100 into 300,000,000 !!! Love the adviser for the Yen :). And pay attention to the last plot, no plumage, one increase

This is explained by the fact that the minutes in the last plot have not yet pumped up. Connect to the internet while testing the ticks and run the test a few times. And you will see that the EA will start to fail on the last segment.

 
I actually have a template like this
#property copyright "Copyright © 2008, Xnko"
#property link      "xnko@mail.ru"

#include "include/CloseOrder.mqh"
#include "include/FindOrder.mqh"

/*
static double   Lot;
static int      Magic;

static datetime OrderTime;
static double   StopLoss;
static double   TakeProfit;

bool SignalBuy() { return (false); }
bool SignalCloseBuy() { return (false); }
bool SignalSetStopForBuy() { return (false); }
bool SignalSetProfitForBuy() { return (false); }

bool SignalSell() { return (false); }
bool SignalCloseSell() { return (false); }
bool SignalSetStopForSell() { return (false); }
bool SignalSetProfitForSell() { return (false); }

bool OnStart() { return (false); }
*/

int start()
{
   if(! OnStart())
      return (0);

   int ticket = FindOrder( Magic);
   if( ticket != 0)
   {
      bool modify = false;
      double sl = 0.0;
      double tp = 0.0;
      int type = OrderType();
      if( type == OP_BUY)
      {
         if( SignalCloseBuy())
         {
            CloseOrder( ticket);
            ticket = 0;
         }
         else
         {
            if( SignalSetStopForBuy())
            {
               modify = true;
               sl = StopLoss;
            }
            else
               sl = OrderStopLoss();
               
            if( SignalSetProfitForBuy())
            {
               modify = true;
               tp = TakeProfit;
            }
            else
               tp = OrderTakeProfit();

            if( modify)
               OrderModify( ticket, OrderOpenPrice(), sl, tp, 0); 
         }
      }
      else
      if( type == OP_SELL)
      {
         if( SignalCloseSell())
         {
            CloseOrder( ticket);
            ticket = 0;
         }
         else
         {
            if( SignalSetStopForSell())
            {
               modify = true;
               sl = StopLoss;
            }
            else
               sl = OrderStopLoss();
               
            if( SignalSetProfitForSell())
            {
               modify = true;
               tp = TakeProfit;
            }
            else
               tp = OrderTakeProfit();

            if( modify)
               OrderModify( ticket, OrderOpenPrice(), sl, tp, 0); 
         }
      }
   }

   if( ticket == 0)
   {
      if( SignalBuy())
      {
         if(OrderSend(Symbol(), OP_BUY, Lot, Ask, 3, StopLoss, TakeProfit, "Buy", Magic, 0, CLR_NONE) != 0)
            OrderTime = Time[0];
      }
      else
      if( SignalSell())
      {
         if(OrderSend(Symbol(), OP_SELL, Lot, Bid, 3, StopLoss, TakeProfit, "Sell", Magic, 0, CLR_NONE) != 0)
            OrderTime = Time[0];
      }
   }

   return(0);
}