Euro Rat - page 10

 
Vladimir Karputov:

No fish here yet.

EURUSD symbol, M15 timeframe.


Same problem: Hanging positions with losses



I tested your creation - and look - even your hastily made robot made money ....

Ava

 
elmucon:

I tested your creation - and look - even your hastily made-up robot made money ....



I have added Stop loss and Take profit levels in version 1.001:

  • period of ma
  • shift
  • type of smoothing
  • type of price
  • Stop Loss (in pips)
  • ake Profit (in pips)

But the condition for entering has not changed and is called only for the current symbol (the current symbol is "EUSUSD")

//+------------------------------------------------------------------+
//| Determination of trade direction                                 |
//+------------------------------------------------------------------+
int CheckDirection(const string symbol)
  {
   bool avers=false;
   int  down=0,up=0;

   if(StringFind(symbol,"USD",0)==3)
      avers=false;
   else
      avers=true;
//---
   double close_1_AUDUSD=iClose(1,"AUDUSD",Period());
   double close_1_NZDUSD=iClose(1,"NZDUSD",Period());
   double close_1_USDCAD=iClose(1,"USDCAD",Period());
   double close_1_USDJPY=iClose(1,"USDJPY",Period());
//--- protection: if the data is not yet ready
   if(close_1_AUDUSD==0.0 || close_1_NZDUSD==0.0 || close_1_USDCAD==0.0 || close_1_USDJPY==0.0)
      return(0);
   double iMA_1_AUDUSD=iMAGet(handle_iMA_AUDUSD,1);
   double iMA_1_NZDUSD=iMAGet(handle_iMA_NZDUSD,1);
   double iMA_1_USDCAD=iMAGet(handle_iMA_USDCAD,1);
   double iMA_1_USDJPY=iMAGet(handle_iMA_USDJPY,1);
//--- protection: if the data is not yet ready
   if(iMA_1_AUDUSD==0.0 || iMA_1_NZDUSD==0.0 || iMA_1_USDCAD==0.0 || iMA_1_USDJPY==0.0)
      return(0);

   if(close_1_AUDUSD>iMA_1_AUDUSD)
     {
      if(!avers)
         up++;
      else
         down++;
     }
   if(close_1_AUDUSD<iMA_1_AUDUSD)
     {
      if(!avers)
         down++;
      else
         up++;
     }
   if(close_1_NZDUSD>iMA_1_NZDUSD)
     {
      if(!avers)
         up++;
      else
         down++;
     }
   if(close_1_NZDUSD<iMA_1_NZDUSD)
     {
      if(!avers)
         down++;
      else
         up++;
     }
   if(close_1_USDCAD<iMA_1_USDCAD)
     {
      if(!avers)
         up++;
      else
         down++;
     }
   if(close_1_USDCAD>iMA_1_USDCAD)
     {
      if(!avers)
         down++;
      else
         up++;
     }
   if(close_1_USDJPY<iMA_1_USDJPY)
     {
      if(!avers)
         up++;
      else
         down++;
     }
   if(close_1_USDJPY>iMA_1_USDJPY)
     {
      if(!avers)
         down++;
      else
         up++;
     }
   if(up==4)
      return(1);
   else if(down==4)
      return(-1);
//---
   return(0);
  }

ds

Files:
Euro_Rat.mq5  28 kb
 

In version 1.002 I have introduced a new parameter: minimum price indent from iMA indicator values. It probably makes sense to stop taking profit and stop loss...

 

So, the symbol "EURUSD",M15, received a signal to open "Sell":


EURUSD" symbol,M15, signal to open "Sell" received

So far the description is correct: AUDUSD and NZDUSD above the iMA and USDCAD and USDJPY below the iMA. Let's see what happens with this position, let's say after 10-30 bars ...

 

Slight pullback + new:

1.002: Separate objects are now declared for "EURUSD", "GBPUSD" and "CHFUSD". SL and TP levels and minimum price indent from iMA removed (now gone). The opening remains the same: if there is a signal and time from the last entry is more than seconds in the current period.

Plans: To change the opening - not by time, but by step from the last entry for this symbol.

Files:
Euro_Rat.mq5  28 kb
 

Version 1.004:

  • Trade on three symbols at once:"EURUSD", "GBPUSD" and "CHFUSD".
  • Each symbol is checked individually upon the receipt of a signal:
    • step back from the last closed position (if the step is less than the"step between positions" - do not open in this symbol)
    • a profit of all positions for this symbol (if the profit is less than 0.0, we open in the opposite direction and triple the lot)
  • If the funds are more than the balance by the "minimum profit" parameter - then close all positions of this EA for all symbols
  • If funds have less than half of the balance - c'est la vie - unload the Expert Advisor.

Files:
Euro_Rat.mq5  39 kb
 

Euro Rat 1.005

Euro Rat 1.005

parameters:

Euro Rat 1.005 parameters

 

Euro Rat 1.007

Closing: reverse only and only if there is total profit. Minimun profit deactivated.

Euro Rat 1.007

Files:
Euro_Rat.mq5  49 kb
 

It's all bullshit. Risking everything for a penny profit...... The question is why????

As a rule, all such tactics lead to one thing. Once a year and a stick shoots....

 
Mihail Marchukajtes:

It's all bullshit. Risking everything for a penny profit...... The question is why????

As a rule, all such tactics lead to one thing. Once a year and a stick shoots....


Yes, and the signal is unavailable, and we had a lot of pathos and teachings))