• Welcome back! Thank you for being a part of this Traders Community. Let's discuss and share :)
    Selamat datang kembali! Trimakasih telah menjadi bagian dari Komunitas Trader ini. Mari berdiskusi dan berbagi :)

Suggestion I will make a Free EA with your Indicator

This is a modified version for Zaman martingale EA.
1. Remove unuse function from the menu
2. Add trade timer
3. Modified code for linear lot increment
4. Add trailing stop for buy/sell order (not for martingale order)
5. Change Magic# to a currency selection way.
Can you help to find the best setting and share? I have not tested yet.:cool::ok:

Its possible add trailing stop for buy/sell order only (not for martingale) in this EA?
 

Attachments

a grid EA open position with mega fx signal,if is hard ,take your long time, no problem make it after 1 week .
Sorry I don't understand grid EA. What is it? Please show picture and how to entry?
By the way why you don't use my templete. It is good enough.
 
hello mr TANAKA. i discover in most of yore e.a on my vps always stop working after all trade profit is close for all the on going trade of the day. and it will stop working on following day. pls what is the problem. can it be the magic number setting?
 
hello mr TANAKA. i discover in most of yore e.a on my vps always stop working after all trade profit is close for all the on going trade of the day. and it will stop working on following day. pls what is the problem. can it be the magic number setting?
 
Yes, Tanaka, exactly the same as in your above pictures but I want it separate standalone EA so it can be used on a blank chart.
Stand alone? How can you use it? Not combine EA??
Below is MT4 function.
upload_2019-3-15_19-8-50.png
 

Attachments

  • upload_2019-3-15_19-8-50.png
    upload_2019-3-15_19-8-50.png
    5.8 KB · Views: 769
hello mr TANAKA. i discover in most of yore e.a on my vps always stop working after all trade profit is close for all the on going trade of the day. and it will stop working on following day. pls what is the problem. can it be the magic number setting?
I have no idea, Anyone else has the same problem? Broker issue??
 
Its possible add trailing stop for buy/sell order only (not for martingale) in this EA?

yes ,

disable the option you have in MARTIN ATTACK EA and put "fixe lots" and set true to the trailing option without take profit equal to 0 and stop equal to 0 ok. this idea of Ea was me who chose and tanaka made my strategy.
 
this strategy:
413646a18ddbc00b4d9598e3473918d9.png

The nearest position 0.01 lot
second buy or sell stop 0.02 lot
and countinue orders for 10 order (if have max order is better)
also must have order distance.
Not enough...
You want to open BUY/SELL order every ** pips ,
Current price +30pips 0.01 LOT
Current price +60pips 0.02 LOT
Current price +90pips 0.04 LOT
More detail!!
 
Hi All, im a newbie to EAs, i have been testing so many EAs from Mr Tanaka and I myself am not sure what TF are to be used with the EAs.
Been trying so many sets but usually end up with huge drawdown.

Any tips for me?
Can the masters here shed some light on tested proven sets or pairs and the EA they use?
It would be of so much help for use newbies.
 

Attachments

This is a modified version for Zaman martingale EA.
1. Remove unuse function from the menu
2. Add trade timer
3. Modified code for linear lot increment
4. Add trailing stop for buy/sell order (not for martingale order)
5. Change Magic# to a currency selection way.
Can you help to find the best setting and share? I have not tested yet.:cool::ok:
Mr. Tanaka Love, your work !!!!:h::h::h:
i want to TF this ea :giggle::giggle:
 
Last edited:
The default MT4 function does not have the option to insert a custom magic number, OK if standalone is not possible just share the one you showed in your previous post #10186. I think you miss to upload it
Your idea is making EA with manual buy/sell button instead of indicator, just that this one need Martin attack and close order using Tanaka template. am I right?
manual.png
maybe this can help.. Just an example..Taken from (https://www.forexfactory.com/showthread.php?p=8776270#post8776270)
Code:
#property copyright "Keith Watford"
#property link      "none"
#property version   "1.00"
#property strict
//--- input parameters
input int         MagicNumber=99;
input double      LotSize=1;
//+------------------------------------------------------------------+
//| Expert initialization function                                   |
//+------------------------------------------------------------------+
int OnInit()
  {
   //if(IsTesting())
     {
      string name;
      string heading[4]={"Buy","Sell","Stop","TP"};
      int xc=5;
      int yc=30;
      for(int i=0;i<2;i++)
        {
         name=heading[i];
         ObjectCreate(0,name,OBJ_BUTTON,0,0,0);
         ObjectSetText(name,name,10,"Arial",clrBlue);
         ObjectSetInteger(0,name,OBJPROP_XDISTANCE,xc);
         ObjectSetInteger(0,name,OBJPROP_YDISTANCE,yc);
         yc+=20;
        }
      for(int i=2;i<4;i++)
        {
         name=heading[i];
         ObjectCreate(0,name,OBJ_LABEL,0,0,0);
         ObjectSetText(name,name,10,"Arial",clrBlue);
         ObjectSetInteger(0,name,OBJPROP_XDISTANCE,xc);
         ObjectSetInteger(0,name,OBJPROP_YDISTANCE,yc);
         ObjectSetInteger(0,name,OBJPROP_SELECTED,false);
         yc+=20;
        }
      name="EditSL";
      ObjectCreate(0,name,OBJ_EDIT,0,0,0);
      ObjectSetText(name,DoubleToStr(0,Digits),10,"Arial",clrRed);
      ObjectSetInteger(0,name,OBJPROP_XDISTANCE,xc+50);
      ObjectSetInteger(0,name,OBJPROP_YDISTANCE,70);
      ObjectSetInteger(0,name,OBJPROP_XSIZE,60);
      ObjectSetInteger(0,name,OBJPROP_YSIZE,20);
      name="EditTP";
      ObjectCreate(0,name,OBJ_EDIT,0,0,0);
      ObjectSetText(name,DoubleToStr(0,Digits),10,"Arial",clrRed);
      ObjectSetInteger(0,name,OBJPROP_XDISTANCE,xc+50);
      ObjectSetInteger(0,name,OBJPROP_YDISTANCE,90);
      ObjectSetInteger(0,name,OBJPROP_XSIZE,60);
      ObjectSetInteger(0,name,OBJPROP_YSIZE,20);
     }
//---
   return(INIT_SUCCEEDED);
  }
//+------------------------------------------------------------------+
//| Expert deinitialization function                                 |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
  {
//---
  }
//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+
void OnTick()
  {
//---
  }
//+------------------------------------------------------------------+
//| ChartEvent function                                              |
//+------------------------------------------------------------------+
void OnChartEvent(const int id,
                  const long &lparam,
                  const double &dparam,
                  const string &sparam)
  {
   if(id==CHARTEVENT_OBJECT_CLICK)
     {
      string name="Buy";
      if(ObjectGetInteger(0,name,OBJPROP_STATE)==true)
        {
         ObjectSetInteger(0,name,OBJPROP_STATE,false);
         double sl=StrToDouble(ObjectGetString(0,"EditSL",OBJPROP_TEXT));
         double tp=StrToDouble(ObjectGetString(0,"EditTP",OBJPROP_TEXT));
         int ticket=OrderSend(Symbol(),OP_BUY,LotSize,Ask,50,sl,tp,NULL,MagicNumber,0,clrNONE);
        }
      name="Sell";
      if(ObjectGetInteger(0,name,OBJPROP_STATE)==true)
        {
         ObjectSetInteger(0,name,OBJPROP_STATE,false);
         double sl=StrToDouble(ObjectGetString(0,"EditSL",OBJPROP_TEXT));
         double tp=StrToDouble(ObjectGetString(0,"EditTP",OBJPROP_TEXT));
         int ticket=OrderSend(Symbol(),OP_SELL,LotSize,Ask,50,sl,tp,NULL,MagicNumber,0,clrNONE);
        }
     }
//---
  }
 

Attachments

  • manual.png
    manual.png
    15.5 KB · Views: 778
Wooooooooooowwwwwwww Tanaka San, great, arigato.

Let me do FT and then I will show you the results.

From the same settings, I am using previous version and believe me this time I slept without tension because floating loss was very low and account was safe. Now I will check this new version also.

Maido arigato gozaimasu. :ok::ok::ok::ok::ok::):):):):)
thank you sir very good set file
 
thank you sir very good set file
add one indicator name PBchannal , Ex: pbchannal top touch then zaman starts only sell orders , reverse PBchannal bottom touch then zaman Ea close sell order & take buy orders. sir plg modify this type pl
 
The default MT4 function does not have the option to insert a custom magic number, OK if standalone is not possible just share the one you showed in your previous post #10186. I think you miss to upload it
You want manual order with my templete without indicator trigger just like BBubai said?
If so, I will try next week. No problem.
 
Back
Top