Help for build a trading system

 
Hello,
Sorry for my english
I'd like to build a trading system who buy's when stochastic (14,3,5) is at 10 and sell when stochastic is at 90.
It should also take profit by 10 pips and stop at 30pips
Could someone help me please.
My english needs to be better to understand the user guides and it would take many time to learn that's why i hope that someone could explain me how to build, download and install this TS.

Thank you very much
Michel
 
Michel,

which symbol do you consider to trade with those settings may i ask? I wonder from where you have those parameters.
 
Michel,

which symbol do you consider to trade with those settings may i ask? I wonder from where you have those parameters.


Hello, thank you for your answer.

The symbol should be usd/jpy.
Is something wrong with this parameters?
In fact I work on real account with this parameters on a Oanda plateforme since one year.
Michel
 
Seasons Greetings Michel,

Below is some code that will get you started.
It trades using 10% of acc bal as lot size. If you wish to use set lots change Levv to Lots in send order code.
It has the settings you required which are external doubles so you can optimize.

PLEASE people do not ask me to code anything else. I aready had this code in my files and it is XMAS...........
I am not a programmer so there maybe a better way to code this...

Merry Xmas to all.....................................


//+------------------------------------------------------------------+
//|                                                     STOCH V1.mq4 |
//|                                           Copyright © 2007, MPFX |
//|                                           http://www.stideas.com |
//+------------------------------------------------------------------+
#property copyright "mpfx"
#property link      "http://www.stideas.com"


extern double Lots = 1;
extern double TakeProfit = 10;
extern double Stoploss = 30;
extern double Perc = 10;
extern double stochK =14;
extern double stochD =3;
extern double stochS =5;
extern double stochlevelBUY = 10;
extern double stochlevelSELL = 90;


//+------------------------------------------------------------------+
//| expert start function |
//+------------------------------------------------------------------+

int start()
{
  double Levv,  equity, Lotss, trd ;
  int cnt=0, total ;
 //==================================================================
 
 //  STOCH
  double  stoch  ;
 
stoch = iStochastic(NULL,0,stochK,stochD,stochS,MODE_SMA,0,MODE_MAIN,0);
 
  
 //=============================================================

 {          
  if(Bars<2)
  {
    Print("bars less than 100");
    return(0); }
  //======================================================================   
  total=OrdersTotal();
   trd =0 ;
   
   for(cnt=0;cnt<total;cnt++)
{
OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);
if (OrderSymbol()==Symbol()) trd++;

}


 //======================================================================
  
    if(AccountFreeMargin()<(1*Lots))
    {
      Print("We have no money");
      return(0);}
      
  equity =AccountEquity();
   
  Lotss = MathAbs((equity*Perc/100/100)/10);
   
  Levv=NormalizeDouble(Lotss,1);
          
 //======================================================================
  
    // (BUY)
    
    if (trd != 1 && stoch <= stochlevelBUY  )
    {
      OrderSend(Symbol(),OP_BUY,Levv,Ask,3,Bid-Stoploss*Point,Ask+TakeProfit*Point,0,0,0,Blue);
       Print( "STOCH ", stoch);
      return(0);
    }
    
    
    // (SELL)
    if ( trd != 1 && stoch >= stochlevelSELL ) 
    {
      OrderSend(Symbol(),OP_SELL,Levv,Bid,3,Ask+Stoploss*Point,Bid-TakeProfit*Point,0,0,0,Red);
     Print( "STOCH ", stoch);
      return(0);
    } 
  
}}          
 //======================================================================     
 
//+------------------------------------------------------------------+